Now: Tutorial for Web and Software Design > PHP > QA > PHP Content
> PHPFAQ - Im trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors. [Bookmark it]
PHPFAQ - Im trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.


Question :

I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8), I get loads of errors.

Answer :I'm trying to compile PHP 4.1.1 on a SunOS 5.8 box as a DSO module with a
number of options, including mcrypt 2.4.18 (i.e. libmcrypt.so.4.2.8)

Configuration seems to go fine; among all the output, it prints:
checking for mcrypt support... yes
checking for mcrypt_module_open in -lmcrypt... (cached) yes

and "make" goes along just fine until the very end, when I get this:

> /bin/sh /opt/src/david/php-4.1.1/libtool --silent --mode=link
gcc -I. -I/opt/src/david/php-4.1.1/ -I/opt/src/david/php-4.1.1/main -I/opt/
src/david/php-4.1.1 -I/opt/apache/include -I/opt/src/david/php-4.1.1/Zend -I
/usr/local/include -I/opt/mysql/include/mysql -I/usr/local/include/ucd-snmp
-I/opt/src/david/php-4.1.1/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -DSOLAR
IS2=280 -DMOD_SSL=208105 -DEAPI -DEAPI_MM -DUSE_EXPAT -I/opt/src/david/php-4
.1.1/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath
/opt/src/david/php-4.1.1/libs -avoid-version -L/usr/ucblib -L/usr/local/lib
-L/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/opt/mysql/lib/mysql -L
/opt/postgres/lib -R /usr/ucblib -R /usr/local/lib -R
/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -R /opt/mysql/lib/mysql -R
/opt/postgres/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la
main/libmain.la regex/libregex.la ext/zlib/libzlib.la ext/ftp/libftp.la
ext/gd/libgd.la ext/imap/libimap.la ext/ldap/libldap.la
ext/mcrypt/libmcrypt.la ext/mhash/libmhash.la ext/mysql/libmysql.la
ext/openssl/libopenssl.la ext/pcre/libpcre.la ext/pdf/libpdf.la
ext/pgsql/libpgsql.la ext/posix/libposix.la ext/session/libsession.la
ext/snmp/libsnmp.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lpam -lc-client -ldl -lsnmp -lkstat -lpq -lmysqlclient -lz
-lmhash -lmcrypt -lltdl -lldap -lcrypt -lpam -lgd -lpng -lz -ljpeg -lz -lcry
pt -lssl -lcrypto -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lgcc -
lcrypt

ld: fatal: symbol `lt_dlcaller_set_data' is multiply defined:
(file Zend/.libs/libZend.al(ltdl.o) and file
/usr/local/lib/libltdl.a(ltdl.o));
ld: fatal: symbol `lt_dlloader_data' is multiply defined:
(file Zend/.libs/libZend.al(ltdl.o) and file
/usr/local/lib/libltdl.a(ltdl.o));
ld: fatal: symbol `lt_dlforeachfile' is multiply defined:
(file Zend/.libs/libZend.al(ltdl.o) and file
/usr/local/lib/libltdl.a(ltdl.o));
ld: fatal: symbol `lt_dlloader_add' is multiply defined:
(file Zend/.libs/libZend.al(ltdl.o) and file
/usr/local/lib/libltdl.a(ltdl.o));
...
etc. etc.

------
try it again manually but this time remove -lltdl


[Bookmark][Print] [Close][To Top]
  • Prev Article-PHP:

  • Next Article-PHP:
  • Related Materias
    PHPFAQ - How google is you
    PHPFAQ - Are there any web
    PHPFAQ - How can I accept 
    PHPFAQ - How can I finance
    PHPFAQ - Where can I get P
    PHPFAQ - Where can I host 
    PHPFAQ - Where can I find 
    PHPFAQ - I am trying to cr
    PHPFAQ - Is there a librar
    PHPFAQ - How can I manage 
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial