Opened 8 years ago

Closed 8 years ago

#50068 closed defect (worksforme)

php70-apache2handler (or RC8) giving zend_qsort.h file not found

Reported by: vikas@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc:
Port: php70-apache2handler

Description

Have been trying to build RC8 and now final too but getting same build error when installing php70-apache2handler

Attachments (1)

main.log (44.1 KB) - added by vikas@… 8 years ago.
build log

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by vikas@…

Attachment: main.log added

build log

comment:1 Changed 8 years ago by vikas@…

After I copied the header and c file from php56 build dir into php70, the next build error was

:info:build fatal error/opt/local/include/php.h: :10402 'tsrm_virtual_cwd.h' file not foundfatal error
568 :info:build : :'tsrm_virtual_cwd.h' file not found

comment:2 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: php70 apache removed
Owner: changed from macports-tickets@… to ryandesign@…

It builds fine for me. You shouldn't copy any files from php56.

The log says:

:info:build /opt/local/include/php.h:35:10: fatal error: 'zend_qsort.h' file not found

Where did this file /opt/local/include/php.h come from? I'm not aware of any modern MacPorts port providing that file. (You can use "port provides /opt/local/include/php.h" to check.)

comment:3 in reply to:  2 Changed 8 years ago by vikas@…

Replying to ryandesign@…:

It builds fine for me. You shouldn't copy any files from php56.

I only copied to check if the problem was just zend files, but i found the problem continues much longer. What do you suggest to solve this?

The log says:

:info:build /opt/local/include/php.h:35:10: fatal error: 'zend_qsort.h' file not found

Where did this file /opt/local/include/php.h come from? I'm not aware of any modern MacPorts port providing that file. (You can use "port provides /opt/local/include/php.h" to check.)

comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

I suspect that the file /opt/local/include/php.h is from an older version of PHP and is therefore the problem. However, I don't know how this file got on your system. Did you copy it there? If so, remove it, anything else you copied, then clean and try again.

comment:5 in reply to:  4 Changed 8 years ago by vikas@…

Replying to ryandesign@…:

I suspect that the file /opt/local/include/php.h is from an older version of PHP and is therefore the problem. However, I don't know how this file got on your system. Did you copy it there? If so, remove it, anything else you copied, then clean and try again.

I have php55, 56 and php70 installed in my ports. The /opt/local/include/php.h says "PHP Version 5". all cli including php70 also runs (though starts with a strange ~10 sec delay). the build of php7 should use its own context.

comment:6 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Please remove the file /opt/local/include/php.h, clean php70-apache2handler and try again.

comment:7 Changed 8 years ago by vikas@…

It build! but now apache refuses to start with this mod,

/usr/bin/apachectl: line 78: 95503 Segmentation fault: 11  $HTTPD -k $ARGV
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:8 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

/usr/bin/apachectl is not part of MacPorts. php70-apache2handler works with MacPorts apache2. To control MacPorts apache2, use /opt/local/apache2/bin/apachectl.

comment:9 Changed 8 years ago by vikas@…

still same from error_log,

[notice] child pid 66440 exit signal Segmentation fault (11)
Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:10 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Are you sure you're running MacPorts apache2 and not the one that comes with OS X? Which error log are you looking at? Which httpd.conf do you edit?

comment:11 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.