php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70567 Undefined reference to any functions
Submitted: 2015-09-24 06:34 UTC Modified: 2015-10-04 04:22 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: wxmaper at gmail dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 7.0.0RC3 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wxmaper at gmail dot com
New email:
PHP Version: OS:

 

 [2015-09-24 06:34 UTC] wxmaper at gmail dot com
Description:
------------
I'm try to writing a php extension. In project file i'm added include paths, path to .dll and .lib-file:

INCLUDEPATH += C:/src/php-7.0.0RC3-src\
    C:/src/php-7.0.0RC3-src/main\
    C:/src/php-7.0.0RC3-src/Zend\
    C:/src/php-7.0.0RC3-src/TSRM\
    C:/src/php-7.0.0RC3-src/ext/standard\

LIBS += -LC:/src/php-7.0.0RC3-src/dev/ -lphp7ts
LIBS += "C:/src/php-7.0.0RC3-src/dev/php7ts.dll"

When i try to compile project i have next errors:
error: undefined reference to `@_emalloc@4'
error: undefined reference to `@_efree@4'
error: undefined reference to `@_zend_hash_update@12'
error: undefined reference to `@_efree_24@4'
error: undefined reference to `@zend_hash_internal_pointer_reset_ex@8'
error: undefined reference to `@zend_hash_get_current_data_ex@8'
error: undefined reference to `@_convert_to_string@4'
error: undefined reference to `@zend_hash_move_forward_ex@8'


This project was successful in version 5.6


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-25 06:47 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-09-25 06:47 UTC] ab@php.net
Thanks for the report. Please show your extension code and config.w32

Thanks.
 [2015-09-25 12:49 UTC] wxmaper at gmail dot com
-Status: Feedback +Status: Open
 [2015-09-25 12:49 UTC] wxmaper at gmail dot com
config.w32.h http://pastebin.com/rkRhpeM6
 [2015-09-26 15:30 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2015-09-26 15:30 UTC] ab@php.net
Hi,

thanks for the pastebin. But I was asking literally for config.w32 in your extension, not for the header file.

Thanks.
 [2015-10-04 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2016-02-13 13:34 UTC] wxmaper at gmail dot com
My extension has no have config.w32 file. I discovered that all undefined function have a "__vectorcall" convention, but i compile extension with MinGW (x32) for Windows. Not MSVC! mingw can't support for __vectorcall.
Because of this my extension can't compiled for PHP7.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC