We recently updated the server (server is a big word, it's really just a desktop with Ubuntu that we access with ssh) on which we compile our code. Since the update my code won't compile. The linker is complaining about missing references from almost all .so that I'm linking from. It compiles on my own pc so I don't think it's the problem . Additional info :
The raw g++ command (it's quite long, sorry!) :
Some of the weirdest error message I get to show that there are linker errors with both standard libraries (librt, libpthread) and libraries specific to my program.
Versions
Ubuntu version : 11.10 (Oneiric Ocelot) 64 bit
GCC version : 4.6.1 (tried with 4.5.4 too)
Things I tried
- Adding "-Wl,-rpath /lib/x86_64-linux-gnu/ -L/lib/x86_64-linux-gnu/" to the compile command (since it's where librt is located)
- Using g++ 4.5.4 instead of 4.6.1
Any ideas?
Philippe Van Kessel
Last edited by philippevk; 12-05-2011 at 11:08 PM..
Hi everyone I installed OpenSuse 12.3 and many development tools but when i propose build the kernel from the source (the first step make menuconfig) i saw this:
HOSTLD scripts/kconfig/mconf
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libdl.so.2,... (2 Replies)
Dear Unixians,
I have try to link my libraries with tuxedo
that showing following errors,
]
My make file few lines:
....
actual linking
Please help on this.
Thanks,KKL. (1 Reply)
I use Solaris 10, compiling with a custom g++ (3.4.6) and GNU binutils (2.17). Things have gone well on two different systems, but when I tried moving to a third, it all fell over. Basically, it is now using the CC linker, but I need to use options not available to it. I believe I have found the... (0 Replies)
hello,
Is the code compiled under Visual Age C++ Broker (a third party library) - can be used to link against a code compiled from gcc compiler.
I have a problem in building xerces in AIX
Please reply.
Regards,
Parthasarathy (1 Reply)
Hey guys,
i have written the folowing grep command to find an ip address from various files and now i have to find the reverse DNS for it.
I wanted to do it via nslookup or host
does someone have any clue about how to do it?
what i tried was
grep -o... (2 Replies)
at the end of the compilation in solaris 9. it is showing link error.
like.....
ld: fatal: library -lgthread-2.0 not found
failed to create the binary
the library is in /usr/lib and in /usr/local/lib the lib file is present
--->libgthread.2.0.so ......etc
if i remove... (3 Replies)
Hi
I have one libXYZ.a executable.
When i did ldd on that file, it gives me error like
"Cannot find /usr/ccs/lib//libpthread.a(shr_xpg5.o)".
The same library is loaded by the libABC.a executable.
The file location is added to "LIBPATH" variable.
And also libpthread.a is present... (4 Replies)
Hi
I'm getting
ld: fatal: option -h and building a dynamic executable are incompatible
ld: fatal: Flags processing errors
When I run
ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o
after running
gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c
I'm... (6 Replies)