开发者

sun cc doesn't find some libraries when instructed to compile in 64 bit

开发者 https://www.devze.com 2023-04-11 03:08 出处:网络
To illustrate: # CC -xO3 -lssl Undefinedfirst referenced symbolin file main/opt/sunstudio12.1/prod/lib/crt1.o

To illustrate:

# CC -xO3 -lssl
Undefined                       first referenced
 symbol                             in file
main                                /opt/sunstudio12.1/prod/lib/crt1.o
__udivdi3                           /usr/lib/libcrypto.so.0.9.8
__umoddi3                           /usr/lib/libcrypto.so.0.9.8
ld: fatal: Symbol referencing errors. No output written to a.out
# CC -xO3 -m64 -lssl
ld: fatal: library -lssl: not found
ld: fatal: File processing errors. No output written to a.out

I also note that:

# echo $LD_LIBRARY_PATH
/opt/csw/gcc4/lib/64
# echo $LD_LIBRARY_PATH_64
<empty line>

Hence, acco开发者_Go百科rding to this page, ld's path lookup should be identical for both cases, which it most obviously isn't...

does anyone know how to get around this issue? Thanks in advance

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号