Open AshleyPinner opened 8 years ago
I experience the same error on Solaris 9
gcc 3.3.2
libmcrypt 2.5.7
error:
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
Error code 1
make: Fatal error: Command failed for target ciphertest' Current working directory /export/home/chriss/upd/libmcrypt- 2.5.7/src *** Error code 1 make: Fatal error: Command failed for targetall-recursive'
Current working directory /export/home/chriss/upd/libmcrypt-
2.5.7 Error code 1
make: Fatal error: Command failed for target `all'```
I am also getting the same error with Sol9, GCC 3.2.2, and all the requisite GNU utils.
Under Solaris 2.8, using Sun's cc (Forte 6.2) I have no
problems.
I ran configure with these environment vars:
CC=cc CFLAGS="-xO2 -xlibmil -xarch=v8plusa"
and with just the --prefix option.
Same case here under Solaris 9 and gcc 3.3.2.
./configure ; make
stops on ld errors (multiple pages).
another shot on
./configure ; make
and the compilations succeeds! But
make check
fails miserably and the compiled library does not indeed
contain any cryptographic algorithm.
The solution is hidden in the details.
Try to set /usr/xpg4/bin before /bin in your path.
Apparently, 2.5.7 contains in the Changelog some information
for "mcrypt_symb.c" created only when needed using sed; an
older post somewhere in the lists suggested that (obviously)
/bin/sed is kind of broken in Solaris (or does not work as
expected).
To verify the correctness of my hypothesis ... Removed all
sources of libmcrypt-2.5.7 (dir and .tar.gz), re-downloaded
the files, changed my path as /usr/xpg4/bin to be before
/bin and everything worked just fine, including
./configure ; make
make checks
I think it should be referenced somewhere or else the
./configure script should do a much better work as to verify
that detected sed works as expected.
This is under investigation and, yes, there is significant
bit-rot in the build system. I am working on replacing the
entire build engine, as the current one has so may problems.
cd /var/tmp
rm -rf libmcrypt-2.5.7
gunzip -c /ul/src/crypto/libmcrypt-2.5.7.tar.gz | tar -xvf -
cd libmcrypt-2.5.7
./configure --prefix=/usr/local
gmake
cd lib
gmake clean
gmake
cd ..
gmake
gmake install
Port of issue #11 from Sourceforge - http://sourceforge.net/p/mcrypt/bugs/11/