Menu

Error compiling mcrypt in Solaris 8

Help
bocchun
2004-04-27
2012-09-14
  • bocchun

    bocchun - 2004-04-27

    Hi,

    I keep getting the following error during the "make" with mcrypt 2.5.7 and I've been searching around but couldn't find any clues.. any assistance is greatly apprecated!

    tripledes_LTX__mcrypt_get_key_size  ../lib/.libs/libmcrypt.so
    rijndael_192_LTX__mcrypt_self_test  ../lib/.libs/libmcrypt.so
    ld: fatal: Symbol referencing errors. No output written to .libs/ciphertest
    collect2: ld returned 1 exit status
    make[2]: *** [ciphertest] Error 1
    make[2]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/export/spare/local/src/libmcrypt-2.5.7'
    make: *** [all] Error 2

     
    • Florian Gleixner

      Same here:

      /bin/bash ../libtool --mode=link gcc  -g -O2   -o ciphertest  cipher_test.o ../lib/libmcrypt.la  
      gcc -g -O2 -o .libs/ciphertest cipher_test.o  ../lib/.libs/libmcrypt.so -R/usr/local/lib
      Undefined                       first referenced
      symbol                             in file
      nofb_LTX__mcrypt_get_state          ../lib/.libs/libmcrypt.so
      ecb_LTX__mcrypt                     ../lib/.libs/libmcrypt.so
      ...
      ...
      ...
      wake_LTX__mcrypt_decrypt            ../lib/.libs/libmcrypt.so
      ld: fatal: Symbol referencing errors. No output written to .libs/ciphertest
      collect2: ld returned 1 exit status
      make[2]: *** [ciphertest] Error 1

       
    • Florian Gleixner

      ok. got it:

      ./configure --enable-dynamic-loading

      works.

       
    • Artemios G. Voyiatzis

      We had the same problem on Solaris 9. Another solution we found (if you do not wish to enable dynamic loading), would be to set /usr/xpg4/bin before /bin in your PATH and then run ./configure in a clean source directory. Oddly enough, it worked (cf. comment on "mcrypt 2.5.7 oddities" bug report).

      Hope it helps.

       
    • Mathieu BOIS

      Mathieu BOIS - 2007-03-12

      I was able to compile and install, but it was unusable (libmcrypt-2.5.8 compiled with gcc under solaris 9).
      make check was failing.

      After having put the xpg4 path in first and recompiled everything, make check was successfull and php could use mcrypt too.

      This is weird!

      Thanks a lot for your solution.

       

Log in to post a comment.

MongoDB Logo MongoDB