[CMake] Sun GCC builds (cooltools)

Bill Hoffman bill.hoffman at kitware.com
Fri Mar 21 10:26:36 EDT 2008


George Neill wrote:

> 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"
> 

Sounds like the pre-installed gcc is broken. That path should be in some 
sort of system path.  Thanks for looking into this.

-Bill


More information about the CMake mailing list