Compilation of SAMP

I'm trying to compile a SAMP on a solaris10 sparc with studio 11 and the sun make_solaris scripts and I'm getting a lot of trouble with php.

It seems that some of them comes from the use of -lCrun and -lCstd in the LD_FLAGS (in the make_solaris.sh scripts).

What is the use of the C++ libraries when only C is used ?

When linking it happens that in some case, the linker complains about libCrun and libCstd not beeing found, even if -L/usr/lib is in the arguments.

ld: fatal: library -lCstd: not found

ld: fatal: library -lCrun: not found

ld: fatal: File processing errors. No output written to ext/openssl/.libs/openssl.so

gmake: *** [ext/openssl/openssl.la] Error 1

gmake: *** Waiting for unfinished jobs....

ld: fatal: library -lCstd: not found

ld: fatal: library -lCrun: not found

ld: fatal: File processing errors. No output written to ext/zlib/.libs/zlib.so

gmake: *** [ext/zlib/zlib.la] Error 1

ld: fatal: library -lCstd: not found

ld: fatal: library -lCrun: not found

ld: fatal: File processing errors. No output written to ext/bz2/.libs/bz2.so

gmake: *** [ext/bz2/bz2.la] Error 1

uuu:/opt/src/php-5.2.2.mod# ld: fatal: library -lCstd: not found

ld: fatal: library -lCrun: not found

ld: fatal: File processing errors. No output written to ext/curl/.libs/curl.so

ld: fatal: library -lCstd: not found

ld: fatal: library -lCrun: not found

ld: fatal: File processing errors. No output written to ext/dba/.libs/dba.so

The line which cause error :

/bin/sh /opt/src/php-5.2.2.mod/libtool --silent --preserve-dup-deps --mode=link cc -DPHP\_ATOM_INC -I/opt/src/php-5.2.2.mod/include -I/opt/src/php-5.2.2.mod/main -I/opt/src/php-5.2.2.mod -I/opt/coolstack/i\nclude/libxml2 -I/usr/sfw/include -I/opt/coolstack/include -I/opt/src/php-5.2.2.mod/ext/date/lib -I/usr/openwin/incl\ude -I/opt/coolstack/include/freetype2 -I/opt/coolstack/imap/include -I/opt/src/php-5.2.2.mod/ext/mbstring/oniguruma\ -I/opt/src/php-5.2.2.mod/ext/mbstring/libmbfl -I/opt/src/php-5.2.2.mod/ext/mbstring/libmbfl/mbfl -I/opt/coolstack/m\ysql_32bit/include/mysql -I/opt/coolstack/include/ncurses -I/usr/include/pgsql -I/usr/include/pspell -I/opt/local/in\clude/libxml2 -I/opt/src/php-5.2.2.mod/TSRM -I/opt/src/php-5.2.2.mod/Zend -D_POSIX_PTHREAD_SEMANTICS -xO5 -W2,-Ain\line:mi -xbuiltin -xipo=1 -xjobs=24 -xprofile=use:/opt/src/php-5.2.2.mod/fdo -xalias_level=basic -xtarget=generic\-o ext/dba/dba.la -export-dynamic -avoid-version -prefer-pic -module -rpath /opt/src/php-5.2.2.mod/modules -L/opt/co\olstack/mysql_32bit/lib/mysql -L/opt/coolstack/lib -L/usr/lib -lmysqlclient -liconv -lreadline -lcurses -lCstd -lCru\n -avoid-version -module -L/usr/ucblib -L/opt/coolstack/lib -L/usr/sfw/lib ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba\/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db1.lo ext/dba/dba_db2.lo ext/dba/dba_db3.lo ext/dba\/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/\cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dba/libinifile/inifile.lo -R/opt/coolstack/\lib -L/opt/coolstack/lib -lgdbm

Btw there is a symbol conflit with /usr/lib/libpspell.so and libCrun or lib Cstd which appears while compiling.

As exemple :

(file /opt/jumble/lib/libCstd.so value=0x18; file /usr/lib/libaspell.so value=0x10);

/opt/jumble/lib/libCstd.so definition taken

ld: warning: symbol `__1cDstdHnum_put4Cwn0ATostreambuf_iterator4Cwn0ALchar_traits4Cw__G__vtbl_' has differing siz\es

(Btw the /opt/jumble/lib/... is just an alias to /opt/SUNWspro/lib/...)

It seems to cause even the Sun compiled php to core dump when adding spell extension.

I hope the post is not so messy.

f.g.

[3863 byte] By [goudala] at [2007-11-27 4:04:30]
# 1

These libraries are left-over from some previous incarnations.

I have posted revised make scripts which you can grab from http://cooltools.sunsource.net/coolstack//make_php5.2.0_sparc.tar. Download these into your php-5.2.0 source directory and try the new make_solaris.sh. Let me know how it goes.

Shanti

shantiSa at 2007-7-12 9:09:22 > top of Java-index,Open Source Technologies,OpenSPARC...