[CMake] Sun GCC builds (cooltools)
George Neill
georgen at neillnet.com
Fri Mar 21 08:56:52 EDT 2008
Brad,
> I will do some more digging ...
So this is why the CMake SS12 compile works,
-bash-3.00$ /opt/SUNWspro/bin/cc -lcrypto -lssl test.c
ld: fatal: library -lcrypto: not found
ld: fatal: library -lssl: not found
ld: fatal: File processing errors. No output written to a.out
and this is why the SUN GCC 4.2.0 (cooltools) compile fails.
-bash-3.00$ /opt/gcc/bin/gcc -lcrypto -lssl test.c
-bash-3.00$ ./a.out
ld.so.1: a.out: fatal: libcrypto.so.0.9.7: open failed: No such file
or directory
Killed
The pre-installed /usr/sfw/bin/gcc (3.4.3) compiles/runs just fine.
-bash-3.00$ /usr/sfw/bin/gcc -lcrypto -lssl test.c
-bash-3.00$ ./a.out
Hello there.
So I guess the temporary fix is to just ..
export LD_LIBRARY_PATH="/usr/sfw/lib:$LD_LIBRARY_PATH"
before the bootstrap.
Later,
George.
More information about the CMake
mailing list