This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Using cross tools with stripped shared libraries
- To: binutils at sources dot redhat dot com
- Subject: Using cross tools with stripped shared libraries
- From: Manfred Hollstein <manfredh at redhat dot com>
- Date: Mon, 12 Mar 2001 20:52:54 +0100 (CET)
- Reply-To: Manfred Hollstein <manfred dot h at gmx dot net>
Hi there,
I'm sorry to bother you with this if this is a FAQ.
I built a cross tool chain x86-linux-gnu x armv4l-linux-gnu based on recent
checkouts from binutils-2_11-branch and gcc-2_95-branch. To save time, I
copied pre-built libraries (and include files) to the proper location. The
problem I have now is, that whenever I'm using a stripped shared library to
link with, the cross linker is complaining:
$ armv4l-redhat-linux-gnu-gcc xsri.o -lImlib -ljpeg -ltiff -lungif -lpng -lz -lm -lXext -lSM -lICE -lXext -lX11
xsri.o: In function `parse_args':
xsri.o(.text+0x100): undefined reference to `XParseGeometry'
xsri.o(.text+0x180): undefined reference to `XParseGeometry'
xsri.o: In function `load_image':
xsri.o(.text+0x4f0): undefined reference to `Imlib_load_image'
xsri.o: In function `display_image_window':
xsri.o(.text+0x1200): undefined reference to `Imlib_paste_image'
xsri.o(.text+0x1210): undefined reference to `Imlib_kill_image'
xsri.o(.text+0x1220): undefined reference to `XSync'
xsri.o: In function `display_root':
xsri.o(.text+0x1274): undefined reference to `Imlib_render'
xsri.o(.text+0x12a4): undefined reference to `Imlib_move_image'
xsri.o(.text+0x12d4): undefined reference to `Imlib_move_image'
xsri.o(.text+0x1338): undefined reference to `XCreatePixmap'
xsri.o(.text+0x13a8): undefined reference to `XCreateGC'
xsri.o(.text+0x13e8): undefined reference to `XFillRectangle'
xsri.o(.text+0x13f8): undefined reference to `XFreeGC'
xsri.o(.text+0x1408): undefined reference to `Imlib_free_pixmap'
xsri.o(.text+0x1448): undefined reference to `XSetWindowBackgroundPixmap'
xsri.o(.text+0x1484): undefined reference to `XClearWindow'
xsri.o(.text+0x1494): undefined reference to `Imlib_free_pixmap'
xsri.o(.text+0x14a4): undefined reference to `Imlib_kill_image'
xsri.o(.text+0x14b4): undefined reference to `XSync'
xsri.o: In function `main':
xsri.o(.text+0x1514): undefined reference to `XOpenDisplay'
xsri.o(.text+0x152c): undefined reference to `Imlib_init'
collect2: ld returned 1 exit status
The libraries I referenced above are all located at
${exec_prefix}/${target}/lib
which is where ${target}-gcc looks for libs by default.
If I link statically, everything goes right.
Does anybody have an explanation to this, maybe even a fix?
TIA, cheers.
l8er
manfred