AGGGG Its all my fault.
I linked /usr/bin/kgcc to /bin/gcc when building a kernel, and wouldn't you
know libgcc.a for THAT gcc doesn't have __rethrow in it!

Back to normal now!

AGGGGGG

SAm




This first section includes "-lgcc" to link libphp4.la with libgcc.a

/bin/sh /tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/libtool --silent
--mode=link gcc  -I. -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/main
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/Zend
-I/usr/local/empower/include
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/mysql/libmysql
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmltok
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmlparse
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/TSRM  -DXML_BYTE_ORDER=12 -g -O2
-o libphp4.la -rpath /tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/libs
-L/usr/local/empower/libs  -R /usr/local/empower/libs stub.lo
Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la  ext/muscat/libmuscat.la
ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lpam -ldl -lgcc -lPowerQuery -lhdmuscat3.6 -lstdc++
-lresolv -lm -ldl -lcrypt -lnsl -lresolv

This second section to output php itself in the end does NOT link against
libgcc.a (no -lgcc)

/bin/sh /tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/libtool --silent
--mode=link gcc  -I. -I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/main
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/Zend
-I/usr/local/empower/include
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/mysql/libmysql
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmltok
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/ext/xml/expat/xmlparse
-I/tmp/muscat-php.1.1/1.1.C010/10/php-4.0.4/TSRM  -DXML_BYTE_ORDER=12 -g -O2
-o php -export-dynamic         stub.lo libphp4.la

Why is this - is it a libtool bug? or an autoconf bug?


> -----Original Message-----
> From: Sam Liddicott 
> Sent: Tuesday, January 23, 2001 01:11
> To: Sam Liddicott
> Cc: '[EMAIL PROTECTED]'
> Subject: fixed now, RE: linux c++ __rethrow link error 
> 
> 
> I avoid the __rethrow error by adding:
> 
>   
> AC_ADD_LIBRARY_WITH_PATH(gcc,/usr/lib/gcc-lib/i386-redhat-linux/2.96)
> 
> to my config.m4 so that libgcc.a which contains __rethrow 
> gets linked in.
> 
> Of course I should only add this line for the relavent 
> platforms and I don't know what they will be.
> 
> Should I
> a) be using some gcc option to get this effect (fix autoconf)
> b) perhaps provide a --with-libgcc option to config.m4 so 
> this can be specified where neccessary?
> 
> I'll go for option b as it makes more sense now, unless there 
> are better ideas.
> 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to