Compiling perl package for PHP

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Compiling perl package for PHP

Postby insatiabledev » 29. August 2008 19:59

For the life of me I cannot get this package to compile via PECL CLI or manually via the terminal. I have the XAMPP devel files in place.

http://pecl.php.net/package/perl

Via PECL CLI I get:
Code: Select all
deirdra-hendrickss-macbook-pro:perl-1.0.0 dhendric$ pecl install perl
downloading perl-1.0.0.tgz ...
Starting to download perl-1.0.0.tgz (24,358 bytes)
........done: 24,358 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3526: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5464: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5463: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2943: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2923: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2886: AC_PROG_LIBTOOL is expanded from...
configure.in:77: the top level
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3481: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7591: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5577: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5576: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4612: _LT_AC_TAGCONFIG is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1973: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:1993: AC_CACHE_CHECK is expanded from...
aclocal.m4:3526: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:5464: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5463: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:2943: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:2923: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:2886: AC_PROG_LIBTOOL is expanded from...
configure.in:77: the top level
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:3481: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:7591: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
configure.in:77: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
aclocal.m4:5577: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5576: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:4612: _LT_AC_TAGCONFIG is expanded from...
ERROR: `phpize' failed


Via terminal I get:
Code: Select all
deirdra-hendrickss-macbook-pro:perl-1.0.0 dhendric$ make
/bin/sh /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/libtool --mode=compile gcc  -I. -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0 -DPHP_ATOM_INC -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/include -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/main -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0 -I/Applications/xampp/xamppfiles/include/php/php5/php -I/Applications/xampp/xamppfiles/include/php/php5/php/main -I/Applications/xampp/xamppfiles/include/php/php5/php/TSRM -I/Applications/xampp/xamppfiles/include/php/php5/php/Zend -I/Applications/xampp/xamppfiles/include/php/php5/php/ext -I/Applications/xampp/xamppfiles/include/php/php5/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE  -c /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c -o php_perl.lo
mkdir .libs
 gcc -I. -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0 -DPHP_ATOM_INC -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/include -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/main -I/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0 -I/Applications/xampp/xamppfiles/include/php/php5/php -I/Applications/xampp/xamppfiles/include/php/php5/php/main -I/Applications/xampp/xamppfiles/include/php/php5/php/TSRM -I/Applications/xampp/xamppfiles/include/php/php5/php/Zend -I/Applications/xampp/xamppfiles/include/php/php5/php/ext -I/Applications/xampp/xamppfiles/include/php/php5/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -I/System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -c /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c  -fno-common -DPIC -o .libs/php_perl.o
In file included from /Applications/xampp/xamppfiles/include/php/php5/php/main/php.h:34,
                 from /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:49:
/Applications/xampp/xamppfiles/include/php/php5/php/Zend/zend.h:72:19: error: unix.h: No such file or directory
In file included from /Applications/xampp/xamppfiles/include/php/php5/php/main/php.h:34,
                 from /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:49:
/Applications/xampp/xamppfiles/include/php/php5/php/Zend/zend.h:72:19: error: unix.h: No such file or directory
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_zval_to_sv_noref':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:405: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_sv_to_zval_noref':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:511: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_zval_to_sv_noref':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:405: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_call_method':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:651: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_sv_to_zval_noref':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:511: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_call':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:714: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_call_method':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:651: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_call':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:714: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_write_property':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1165: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'php_perl_write_property':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1165: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'zm_startup_perl':/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'zm_startup_perl':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1779: warning: assignment from incompatible pointer type

/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1779: warning: assignment from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'zim_Perl_eval':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1867: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c: In function 'zim_Perl_eval':
/Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:1867: warning: passing argument 3 of 'Perl_sv_2pv_flags' from incompatible pointer type
lipo: can't open input file: /var/folders/33/33xbcfS-EH42tB5vmDhGgE+++TI/-Tmp-//ccIeMz8T.out (No such file or directory)
make: *** [php_perl.lo] Error 1


--------------------
Does any one have a compiled perl.so for mac OSX 10.5.x for PHP 5.2 and perl 5.8
insatiabledev
 
Posts: 5
Joined: 29. August 2008 19:52

Postby jmdirc » 31. August 2008 03:15

Have you setup this directory:

/Applications/xampp/xamppfiles/include/php/php5/php/Zend/

it looks like it can't find it
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby insatiabledev » 01. September 2008 23:24

I have added that directory and all the Devel directories and files. I do not see the unix.h file in that directory though.

Is this to do with the package or the mac version of the files included with XAMPP Devel?
insatiabledev
 
Posts: 5
Joined: 29. August 2008 19:52

Postby jmdirc » 02. September 2008 03:24

User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby jmdirc » 02. September 2008 03:25

User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby insatiabledev » 02. September 2008 18:54

:(

I am still getting the following error on make using activestates' perl distro:

Code: Select all
...
from /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:49:
/Applications/xampp/xamppfiles/include/php/php5/php/Zend/zend.h:72:19: error: unix.h: No such file or directory
,
from /Users/dhendric/Desktop/perl-1.0.0/perl-1.0.0/php_perl.c:49:
/Applications/xampp/xamppfiles/include/php/php5/php/Zend/zend.h:72:19: error: unix.h: No such file or directory
...


I double checked and I do have his directory and file:
/Applications/xampp/xamppfiles/include/php/php5/php/Zend/zend.h

And unix.h is here:
/Applications/xampp/xamppfiles/include/unix.h

So I'm just kind of confused :(
insatiabledev
 
Posts: 5
Joined: 29. August 2008 19:52

Postby jmdirc » 02. September 2008 22:30

this coming up while your trying to install

put them both in the same folder
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby insatiabledev » 02. September 2008 22:41

OMG I LOVE YOU!

I was thinking about it but didn't want to muck anything up.

Thanks again!
insatiabledev
 
Posts: 5
Joined: 29. August 2008 19:52

Postby jmdirc » 03. September 2008 03:08

And they told me I would never find love on the internet. :)

Glad to have been of help.
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests