Skip Menu |

This queue is for tickets about the PHP CPAN distribution.

Report information
The Basics
Id: 65187
Status: rejected
Priority: 0/
Queue: PHP

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.12
Fixed in: (no value)



There is the --enable-embed and there is no any apxs on the PHP but PHP.so looks not working === # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..29 not ok 1 - use PHP; # Failed test 'use PHP;' # at test.pl line 6. # Tried to use 'PHP'. # Error: Can't load 'blib/arch/auto/PHP/PHP.so' for module PHP: blib/arch/auto/PHP/PHP.so: Undefined symbol "sapi_module" at /usr/local/lib/perl5/5.12.2/mach/DynaLoader.pm line 200. # at (eval 6) line 2 # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. not ok 2 - require PHP; # Failed test 'require PHP;' # at test.pl line 7. # Tried to require 'PHP'. # Error: Attempt to reload PHP.pm aborted. # Compilation failed in require at (eval 7) line 2. not ok 3 - eval # Failed test 'eval' # at test.pl line 38. Module PHP failed to load at blib/lib/PHP.pm line 36. Module PHP failed to load at blib/lib/PHP.pm line 36. END failed--call queue aborted at test.pl line 39. # Looks like you planned 29 tests but ran 3. # Looks like you failed 3 tests of 3 run. # Looks like your test exited with 22 just after 3. *** Error code 22 Stop in /tmp/PHP-0.12. [root@screwed /tmp/PHP-0.12]# php-config Usage: /usr/local/bin/php-config [OPTION] Options: --prefix [/usr/local] --includes [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib] --ldflags [ -L/usr/local/lib] --libs [-lcrypt -lpcre -lcrypt -lrt -lm -pthread -lcrypt -lxml2 -lz -liconv -lm -lcrypt ] --extension-dir [/usr/local/lib/php/20090626-debug] --include-dir [/usr/local/include/php] --php-binary [NONE] --php-sapis [embed] --configure-options [--with-layout=GNU --localstatedir=/var --with-config-file-scan-dir=/usr/local/etc/php --disable-all --enable-libxml --with-libxml-dir=/usr/local --with-pcre-regex=/usr/local --with-zlib-dir=/usr --enable-embed --program-prefix= --disable-cli --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-regex=php --with-zend-vm=CALL --enable-debug --enable-zend-multibyte --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd7.4] --version [5.3.5] --vernum [50305] === ldd shows ohnly libc dependency on blib/PHP.so There is something I forgot here. FreeBSD screwed.box 7.4-PRERELEASE FreeBSD 7.4-PRERELEASE #5: Tue Dec 28 07:23:20 MSK 2010 toor@screwed.box:/usr/local/obj/usr/local/src/sys/JUICY i386 # perl -V Summary of my perl5 (revision 5 version 12 subversion 2) configuration: Platform: osname=freebsd, osvers=7.3-stable, archname=i386-freebsd-multi-64int uname='freebsd screwed.box 7.3-stable freebsd 7.3-stable #2: tue oct 5 12:42:04 msd 2010 toor@screwed.box:usrlocalobjusrlocalsrcsysjuicy i386 ' config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.12.2/mach -Dprivlib=/usr/local/lib/perl5/5.12.2 -Dman3dir=/usr/local/lib/perl5/5.12.2/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.12.2/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.12.2 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.12.2/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Duseshrplib -Dinc_version_list=none -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.2/BSDPAN" -Doptimize=-g -DDEBUGGING -Di_gdbm -Dusethreads=n -Dusemymalloc=n -Duse64bitint -Dusemultiplicity=y -Dusesitecustomize' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.2/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include', optimize='-g', cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.12.2/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.1 20070719 [FreeBSD]', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -Wl,-E -fstack-protector -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lgdbm -lm -lcrypt -lutil perllibs=-lm -lcrypt -lutil libc=, so=so, useshrplib=true, libperl=libperl.so gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.12.2/mach/CORE' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP PERL_TRACK_MEMPOOL USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_SITECUSTOMIZE Built under freebsd Compiled at Oct 31 2010 17:52:12 @INC: /usr/local/lib/perl5/5.12.2/BSDPAN /usr/local/lib/perl5/site_perl/5.12.2/mach /usr/local/lib/perl5/site_perl/5.12.2 /usr/local/lib/perl5/5.12.2/mach /usr/local/lib/perl5/5.12.2 .
Can't reproduce. Just compiled fresh PHP with "./configure --enable-embed", and all works ok: $ ~/local/bin/php-config Usage: /home/dk/local/bin/php-config [OPTION] Options: --prefix [/home/dk/local] --includes [-I/home/dk/local/include/php -I/home/dk/local/include/php/main -I/home/dk/local/include/php/TSRM -I/home/dk/local/include/php/Zend -I/home/dk/local/include/php/ext -I/home/dk/local/include/php/ext/date/lib] --ldflags [ -L/usr/local/lib] --libs [-lcrypt -lcrypt -liconv -lrt -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt ] --extension-dir [/home/dk/local/lib/php/extensions/no-debug-non-zts-20090626] --include-dir [/home/dk/local/include/php] --php-binary [/home/dk/local/bin/php] --php-sapis [cli embed] --configure-options [--enable-embed --prefix=/home/dk/local] --version [5.3.5] --vernum [50305] $ ~/local/bin/perl -V Summary of my perl5 (revision 5 version 12 subversion 3) configuration: Platform: osname=freebsd, osvers=8.1-prerelease, archname=amd64-freebsd uname='freebsd tetsuo.karasik.eu.org 8.1-prerelease freebsd 8.1-prerelease #0: thu jun 10 18:33:24 cest 2010 root@calvin.catpipe.net:usrobjusrsrcsysgeneric amd64 ' config_args='' hint=recommended, useposix=true, d_sigaction=define useithreads=undef, usemultiplicity=undef useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef use64bitint=undef, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include', optimize='-O', cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include' ccversion='', gccversion='4.2.1 20070719 [FreeBSD]', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags ='-Wl,-E -fstack-protector -L/usr/local/lib' libpth=/usr/lib /usr/local/lib libs=-lgdbm -lm -lcrypt -lutil -lc perllibs=-lm -lcrypt -lutil -lc libc=, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib -fstack-protector' Characteristics of this binary (from libperl): Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF Built under freebsd Compiled at Jan 27 2011 17:33:44 @INC: /home/dk/local/lib/perl5/site_perl/5.12.3/amd64-freebsd /home/dk/local/lib/perl5/site_perl/5.12.3 /home/dk/local/lib/perl5/5.12.3/amd64-freebsd /home/dk/local/lib/perl5/5.12.3 .