Parallels H-Sphere Forum
> Parallels H-Sphere > Troubleshooting  
make error compiling php  
  

make error compiling php

06-17-04, 07:10
#1  

intel352
Registered User


Join: Mar 2004
Posts: 212
make error compiling php
Hey guys, i've been following the HSphere Configurator notes (html page of directions), the link was posted in another thread here.

i've finally gotten all the extra libraries and whatnot installed, compiled php with no errors, but now, running 'make -j4' returns an imap error

here's the output, starting from an inclusion of php_imap.
any ideas?

Code:
In file included from /root/compile/php-4.3.6/ext/imap/php_imap.h:39,
                 from /root/compile/php-4.3.6/ext/imap/php_imap.c:46:
/hsphere/shared/include/c-client/c-client.h:34:60: osdep.h: No such file or directory
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/mysql/ -I/root/compile/php-4.3.6/ext/mysql/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/mysql/php_mysql.c -o ext/mysql/php_mysql.lo
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/overload/ -I/root/compile/php-4.3.6/ext/overload/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/overload/overload.c -o ext/overload/overload.lo
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -I/root/compile/php-4.3.6/ext/pcre/pcrelib -Iext/pcre/ -I/root/compile/php-4.3.6/ext/pcre/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/pcre/pcrelib/maketables.c -o ext/pcre/pcrelib/maketables.lo
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -I/root/compile/php-4.3.6/ext/pcre/pcrelib -Iext/pcre/ -I/root/compile/php-4.3.6/ext/pcre/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/pcre/pcrelib/get.c -o ext/pcre/pcrelib/get.lo
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -I/root/compile/php-4.3.6/ext/pcre/pcrelib -Iext/pcre/ -I/root/compile/php-4.3.6/ext/pcre/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/pcre/pcrelib/study.c -o ext/pcre/pcrelib/study.lo
/bin/sh /root/compile/php-4.3.6/libtool --silent --preserve-dup-deps --mode=compile gcc -DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -I/root/compile/php-4.3.6/ext/pcre/pcrelib -Iext/pcre/ -I/root/compile/php-4.3.6/ext/pcre/ -DPHP_ATOM_INC -I/root/compile/php-4.3.6/include -I/root/compile/php-4.3.6/main -I/root/compile/php-4.3.6 -I/root/compile/php-4.3.6/Zend -I/usr/include/libxml2 -I/usr/local/include -I/usr/include/freetype2 -I/hsphere/shared/include/c-client -I/usr/kerberos/include -I/usr/include/mysql  -I/root/compile/php-4.3.6/TSRM  -g -O2  -prefer-pic -c /root/compile/php-4.3.6/ext/pcre/pcrelib/pcre.c -o ext/pcre/pcrelib/pcre.lo
make: *** [ext/imap/php_imap.lo] Error 1
make: *** Waiting for unfinished jobs....
06-17-04, 09:16
#2  

roj
Registered User


Join: Nov 2003
Posts: 189
Just create link:
# ln -s /hsphere/shared/include/c-client/os_slx.h
/hsphere/shared/include/c-client/osdep.h

and run make again.

Read :
http://www.root0.net/php/compilation_php.html
06-17-04, 22:11
#3  

intel352
Registered User


Join: Mar 2004
Posts: 212
that fixed the problem, i hadn't created the link since i figured it would've been created when the box was setup... stupid me, lol.. thanks


but okay, now for a new problem, sigh..:

Code:
 Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lc-client -lzzip -lsablot -lexpat -lxmlrpc -lexpat -lexpat -lcrypt -lpq -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lmcrypt -lltdl -lcrypt -lpam -lfreetype -lpng -lz -ljpeg -lfdftk -lexslt -lxml2 -lxslt -lz -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lssl -lcrypto -ldl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcrypt -lcrypt  -o sapi/cli/php
/hsphere/shared/lib/libc-client.a(osdep.o)(.text+0x871a): In function `ssl_server_init':
/tmp/build-hsphere-apache-webbox/imap-2002d/c-client/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/libsablot.so: undefined reference to `operator new[](unsigned)'
/usr/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/usr/lib/libsablot.so: undefined reference to `operator delete(void*)'
/usr/lib/libsablot.so: undefined reference to `__gxx_personality_v0'
/usr/lib/libsablot.so: undefined reference to `__cxa_pure_virtual'
/usr/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/lib/libsablot.so: undefined reference to `operator delete[](void*)'
/usr/lib/libsablot.so: undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
/usr/lib/libsablot.so: undefined reference to `operator new(unsigned)'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** Waiting for unfinished jobs....
[root@cp php-4.3.7]#
any idea what the problem is with that would be great :-)
06-17-04, 22:29
#4  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
collect2: ld returned 1 exit status
You know I can not resist ..

No .. Better not to say it ..

Question's

1. Platform ...

2. Rest can be helped with answer to question 1 :-)

Lady Linux
06-17-04, 22:48
#5  

intel352
Registered User


Join: Mar 2004
Posts: 212
Rhel 3 :-)
06-17-04, 22:50
#6  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
Rhel 3 :-)
Version Of

A: GCC

B: Make

C: CPP

Is this a all in one box .. Just a web box or ???

Lady Linux
06-17-04, 22:56
#7  

intel352
Registered User


Join: Mar 2004
Posts: 212
A.
Code:
[root@cp php-4.3.7]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
B.
Code:
[root@cp php-4.3.7]# make --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make@gnu.org>.

C.
Code:
[root@cp php-4.3.7]# gcc --version
gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This box is all in one, and a second box is dns + web
06-17-04, 23:05
#8  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
This box is all in one, and a second box is dns + web
Site Studio ???

[root@cp root]# cpp --version
cpp (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-34)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Lovely bug with earlier versions of Hsphere was mucking up ... Maybe Current

make, gcc etc with nodeps deletes ..

Oh yah .. leaving a mismatched cpp ...

Other than that .. would take me reproducing the steps ..

Lady Linux
06-17-04, 23:14
#9  

intel352
Registered User


Join: Mar 2004
Posts: 212
not sure how to check site studio version, but it *should* be the latest version released with HSphere 2.4 patch 3

so you're saying that hsphere (on an install or upgrade) replaces some system applications with mismatched applications?

hmm..

anyways, how much do you charge? :-P
06-17-04, 23:25
#10  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
so you're saying that hsphere (on an install or upgrade) replaces some system applications with mismatched applications?
There was a issue with GCC about a ver or two ago .. maybe more .. Now I dont know if this box has been updated a bunch or not .. so this link may or may not be useful ..

Fun With Compilers

Charge .. ???

I quit at 10:00pm EST these days .. So I dont post nasty crud after I have not had sleep ..

This type of help (Ok If You Solve The Issue Its Helpful :-) ) is always free and the point (I Hope) of this forum.

Something I seem to live and die over ..

Lady Linux
06-17-04, 23:48
#11  

intel352
Registered User


Join: Mar 2004
Posts: 212
hehe, you're 3 hours overdue then :-)


this box is a relatively new install, within last 4 months. only changes have really been initial install of hsphere and subsequent upgrades to 2.4 rc and 2.4 patch 3.

haven't touched Bind at all, nor GCC. i just wanted to get curl installed :'(
lol
06-18-04, 00:11
#12  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
hehe, you're 3 hours overdue then :-)
This is not work .. :-)

So you want PHP with curl ??? and ssl support .. ???

http://68.165.241.133/opt.php

Like that ??

Yah its 7.3 .. but trust me .. its 2.4 .. and hmmmm .. if thats your opts .. only thing I dont have is Zend ..

Lady Linux
06-18-04, 06:56
#13  

intel352
Registered User


Join: Mar 2004
Posts: 212
here's what i was compiling (based on the php-compilation notes that keep floating around):

Code:
./configure  --localstatedir=/var/hsphere/php  --with-apxs=/hsphere/shared/apache/bin/apxs  --with-openssl=/usr  --with-zlib=/usr  --with-zlib-dir=/usr  --with-bz2=/usr  --with-jpeg-dir=/usr  --enable-ftp  --with-gd  --with-ttf  --with-freetype-dir=/usr  --enable-gd-native-ttf  --with-png-dir=/usr  --with-gettext=/usr  --with-imap=/hsphere/shared  --with-mysql=/usr  --with-pgsql=/usr  --enable-sockets  --with-zip=/usr  --enable-versioning  --enable-track-vars  --enable-trans-sid  --disable-debug    --enable-bcmath  --enable-calendar  --enable-exif  --enable-xslt  --with-curl=/usr  --with-curlwrappers  --with-dom  --with-dom-exslt  --with-dom-xslt  --with-expat-dir=/usr  --with-fdftk=/usr  --with-gif-dir=/usr  --with-kerberos  --with-mcrypt=/usr  --with-pdflib=/usr  --with-tiff-dir=/usr  --with-xml  --with-xmlrpc=/usr  --with-xslt-sablot=/usr

i know it's more than i need, but i figured couldn't hurt, and some of those features are useful
06-18-04, 12:26
#14  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
i know it's more than i need
One lil trick here ..

Grab the curl source .. and the openssl-devel rpm ...

Build Curl from the source with ssl support ..

Lady Linux
06-18-04, 12:31
#15  

intel352
Registered User


Join: Mar 2004
Posts: 212
i built curl from source, along with other packages, following this walkthrough:
http://www.root0.net/php/compilation_php.html

would there be some conflict between compiling curl with ssl, apache with ssl, and php with ssl?

heh..
06-18-04, 12:37
#16  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
i built curl from source, along with other packages, following this walkthrough:
http://www.root0.net/php/compilation_php.html
Ok .. Step back

1. What are you trying to fix with this ??? (The Other Thread Was Over Broken OsCommerce)

2. You did not just blindly click on those packages I hope .. That doc is way out of date .. I dont even see RHES as a option for example ..

Answer the two above ..

Just who owns root0.net ??? .. good site .. I would love to help with updating ..

Lady Linux
06-18-04, 12:56
#17  

intel352
Registered User


Join: Mar 2004
Posts: 212
dunno who owns it, it's being referenced like crazy all over the forums tho, wherever recompiling php is mentioned :-)


as far as being out of date, can't be too bad, it is for php 4.3.6
most of the package download urls didn't work though, i had to manually search for them, usually installed latest package that i found.


as for what i was trying to 'fix'... i have been trying to find a good curl + php walkthrough, tho most that i find are outdated, and this one seems to cater specifically to hsphere. seemed to me that the other packages couldn't hurt to have installed, so i followed the steps fairly closely (except mnogo, don't need that)


and no, seems the only OS references is RH 7.3, but i rarely find anything for RHES as it is, due to the non-free nature, lol
06-18-04, 13:11
#18  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
but i rarely find anything for RHES as it is, due to the non-free nature, lol
Can you give me a few hrs to do this RHES walkthrough ..

Since someone I love to death referenced the root0.com .

You will get your answer via PM ..

Until the mysterious root0.com owner steps forwards .. :-)

Lady Linux
06-18-04, 13:13
#19  

intel352
Registered User


Join: Mar 2004
Posts: 212
lol, sure, thx LL ;-)
06-18-04, 13:18
#20  

intel352
Registered User


Join: Mar 2004
Posts: 212
btw, i installed some extra libraries that i might have needed (after reading http://forum.psoft.net/showthread.ph...7230#post27230)

recompiling php broke at sablotron, saying that sablotron >= 0.9.6 is needed (1.0.1 was installed..)

so i've removed dom, xslt, and sablotron references from the compile, compile was successful. ran 'make -j4', make was successful.

i'm about to install, but just letting you know where the process broke down, for me at least :-)


EDIT: w00t, install was successful ;-)

compile string:
Code:
'./configure' '--localstatedir=/var/hsphere/php' '--with-apxs=/hsphere/shared/apache/bin/apxs' '--with-openssl=/usr' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--with-bz2=/usr' '--with-jpeg-dir=/usr' '--enable-ftp' '--with-gd' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--with-png-dir=/usr' '--with-gettext=/usr' '--with-imap=/hsphere/shared' '--with-mysql=/usr' '--with-pgsql=/usr' '--enable-sockets' '--with-zip=/usr' '--enable-versioning' '--enable-track-vars' '--enable-trans-sid' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--with-curl=/usr' '--with-curlwrappers' '--with-expat-dir=/usr' '--with-fdftk=/usr' '--with-gif-dir=/usr' '--with-kerberos' '--with-mcrypt=/usr' '--with-pdflib=/usr' '--with-tiff-dir=/usr' '--with-xml' '--with-xmlrpc=/usr'

but that walkthrough would still be useful to others aside from myself. i would like to see what this sablotron is, and offer extra features that i had to cut from the compile. this is nice tho, i now have more features in a compiled 4.3.7, so it's not a total loss :-)
06-18-04, 13:41
#21  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
so i've removed dom, xslt, and sablotron references from the compile, compile was successful. ran 'make -j4', make was successful.
You know .. let me have your notes .. if any ..

I was gonna say about sablotron .. the others should be easy to add in .. but that one is a mystery ..

Good Work ..

LL
06-19-04, 15:24
#22  

intel352
Registered User


Join: Mar 2004
Posts: 212
i sent it to you via pm yesterday
06-19-04, 15:26
#23  

ladylinux
Registered User


Join: Jul 2003
Posts: 9,788
Quote:
i sent it to you via pm yesterday
I know .. Thank you

Lady Linux


Thread tools Rating Display modes
Excellent
Good
Average
Bad
Terrible
Linear Mode


Parallels is a worldwide leader in virtualization and automation software that optimizes computing for consumers, businesses, and service providers across all major hardware, operating system, and virtualization platforms. Founded in 1999, Parallels is a fast-growing company with 900 employees in North America, Europe, and Asia.