hi guys :)

I've been struggling for a few days trying to get PHP::Interpreter compiled
and running. I'm using stock fedora core 3 with perl 5.8.7 (shown below).
I figure that I'm really just missing something over in my php compliation,
since I'm the least familiar with that, but who knows.

basically, I'm starting from php 5.0.5 like this

$ ./configure --with-apxs=/apache/1.3/dso/perl-5.8.7/bin/apxs --with-mysql
--enable-embed && make && sudo make install

then I move over to PHP::Interpreter and am met with some compile warnings.
I move on because, well, they're just warnings, right? :)

anyway, running 'make test' yields

Can't load ../PHP/Interpreter/Interpreter.so' for module PHP::Interpreter:
../PHP/Interpreter/Interpreter.so: undefined symbol: xmlFreeNode

I tried fiddling with a bunch of xml options when compiling php but none
seemed to make a difference. I also tried --enable-embed=static, using php
5.1 from a snapshot, using httpd 2.0 instead of 1.3, using --disable-xml
(and all the additional flags that requires)...

from the look of things the generated Makefile is picking up the right
includes, and those includes are current to my fresh install. nm shows me a
bunch of unresolved symbols, but some look "normal" (as in, most of my
other .so files have them too). but there are 137 xml ones and no php or
zend ones...

so, can anyone lend me a clue? the README is a bit vague for folks like me
that are php-clueless (and generally bad at building stuff :)

--Geoff

make output: http://people.apache.org/~geoff/make.out
test output: http://people.apache.org/~geoff/test.out

perl -V
Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
Platform:
osname=linux, osvers=2.6.9-1.667, archname=i686-linux-thread-multi
uname='linux jib.modperlcookbook.net 2.6.9-1.667 #1 tue nov 2 14:41:25
est 2004 i686 i686 i386 gnulinux '
config_args='-des -Dusethreads -Dprefix=/perl/perl-5.8.7 -Doptimize=-g
-Dusedevel -Uinstallusrbinperl -Uversiononly -DDEBUGGING'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.4.2 20041017 (Red Hat 3.4.2-6.fc3)',
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 =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.3.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.3'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Sep 1 2005 12:59:51
@INC:
/perl/perl-5.8.7/lib/5.8.7/i686-linux-thread-multi
/perl/perl-5.8.7/lib/5.8.7
/perl/perl-5.8.7/lib/site_perl/5.8.7/i686-linux-thread-multi
/perl/perl-5.8.7/lib/site_perl/5.8.7
/perl/perl-5.8.7/lib/site_perl
.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 10 | next ›
Discussion Overview
groupphp-sandwich-dev @
categoriesperl
postedNov 10, '05 at 2:18p
activeNov 11, '05 at 6:00a
posts10
users3
websiteperl.org

People

Translate

site design / logo © 2018 Grokbase