Re: compile error with apache
| From: | Jean-Michel Dault | Date: | Fri, 10 Nov 2000 11:39:16 +0000 |
| Subject: | Re: compile error with apache | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-37668@lists.php.net to get a copy of this message | ||
On Thu, 9 Nov 2000, Tim Winders wrote:
> I just grabbed the php4-cvs/Zend/TSRM files (11/9/2000, 11am CT). I was
> able to make/install php into apache as a static module, but when I tried
> to make apache, I received these unresolved:
> Unresolved:
> sapi_globals_id
> ts_resource
> __pthread_mutex_init
> __pthread_mutex_destroy
> __pthread_mutex_lock
> __pthread_mutex_unlock
It looks like your MySQL libs are linked with pthreads. Either re-compile
MySQL client without it, or add "-lpthread" to Apache like this:
LIBS="-lpthread" ./configure
Jean-Michel
>
> It looks like this has to do with TSRM, but I'm not sure. I may have done
> something wrong in the configure/make of php4, but I'm not sure. Any help
> would be appreciated.
>
> Here is the output from the make in Apache:
>
> <=== src/modules
> cc -c -I./../../mm-1.0.12 -I./os/unix -I./include -DOSF1
> - -DMOD_SSL=207101 -I/local/users/twinders/work/php4
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/TSRM
> - -I/local/users/twinders/work/php4/TSRM -I/local/users/twinders/work/php4
> - -DEAPI -DEAPI_MM -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
> - -DBIG_SECURITY_HOLE
./apaci modules.c
> cc -c -I./../../mm-1.0.12 -I./os/unix -I./include -DOSF1
> - -DMOD_SSL=207101 -I/local/users/twinders/work/php4
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/TSRM
> - -I/local/users/twinders/work/php4/TSRM -I/local/users/twinders/work/php4
> - -DEAPI -DEAPI_MM -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
> - -DBIG_SECURITY_HOLE ./apaci buildmark.c
> cc -DOSF1 -DMOD_SSL=207101 -I/local/users/twinders/work/php4
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/main
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/Zend
> - -I/local/users/twinders/work/php4/TSRM
> - -I/local/users/twinders/work/php4/TSRM -I/local/users/twinders/work/php4
> - -DEAPI -DEAPI_MM -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
> - -DBIG_SECURITY_HOLE ./apaci
> -L/local/users/twinders/work/openssl-0.9.6
> - -L./../../mm-1.0.12/.libs \
> -o httpd buildmark.o modules.o modules/extra/libextra.a
> modules/proxy/libproxy.a modules/ssl/libssl.a modules/php4/libphp4.a
> modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a
> lib/expat-lite/libexpat.a -Wl,-rpath,/usr/local/lib -L/usr/local/lib
> - -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4
> - -lc-client -lintl -lresolv -lm -lresolv -lm -ldbm -lssl -lcrypto -lmm
> ld:
> Unresolved:
> sapi_globals_id
> ts_resource
> __pthread_mutex_init
> __pthread_mutex_destroy
> __pthread_mutex_lock
> __pthread_mutex_unlock
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/local/users/twinders/work/apache_1.3.14/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/local/users/twinders/work/apache_1.3.14'
> make: *** [build] Error 2
>
>
> **********************************************
> Tim Winders, MCSE, CNE, CCNA
> Associate Dean of Information Technology
> South Plains College
> Levelland, TX 79336
>
> Phone: 806-894-9611 x 2369
> FAX: 806-894-1549
> Email: TWinders@SPC.cc.tx.us
> **********************************************
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.4 (OSF1)
> Comment: Made with pgp4pine 1.75-6
>
> iEYEARECAAYFAjoK3AgACgkQTPuHnIooYbwPpACfdsu/Klv8l8VoG8x+hjASHvV8
> agwAn1hdWTP7wWCjjzl0//IuVFCuZjEi
> =QlGS
> -----END PGP SIGNATURE-----
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
------------------------------------------------------------
Jean-Michel Dault <jmdault@mandrakesoft.com>
MandrakeSoft inc, Montreal (Canada)
HTCPCP/1.0 Developper (http://www.ietf.org/rfc/rfc2324.txt)