[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] Problems with libraries that depend on other libraries
From: |
Ned Konz |
Subject: |
Re: [Ltib] Problems with libraries that depend on other libraries |
Date: |
Mon, 17 Nov 2008 13:37:25 -0800 |
On Mon, 2008-11-17 at 10:08 +0000, Stuart Hughes wrote:
> The first thing to check is that your SDL library did not install
> any .la files. Do a find rootfs -name \*.la
>
> If it did then you need to add this to the end of your %install
> section
> in the spec file:
>
> find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
>
> The re-build/install SDL and try again.
OK, that helped SDL_gfx.
Now I am trying another library, and I'm getting complaints when it's
reading libraries in /usr/lib (which of course it shouldn't be):
+ make
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -I/usr/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -o libSDL_image.la -rpath /usr/lib
-no-undefined -release 1.2 -version-info 1:5:1 IMG.lo IMG_bmp.lo
IMG_gif.lo IMG_jpg.lo IMG_lbm.lo IMG_pcx.lo IMG_png.lo IMG_pnm.lo
IMG_tga.lo IMG_tif.lo IMG_xcf.lo IMG_xpm.lo IMG_xv.lo -lpng -lz
-L/usr/lib -lSDL
gcc
-shared .libs/IMG.o .libs/IMG_bmp.o .libs/IMG_gif.o .libs/IMG_jpg.o
.libs/IMG_lbm.o .libs/IMG_pcx.o .libs/IMG_png.o .libs/IMG_pnm.o .libs/IMG_tga.o
.libs/IMG_tif.o .libs/IMG_xcf.o .libs/IMG_xpm.o .libs/IMG_xv.o -lpng -lz
-L/usr/lib /usr/lib/libSDL.so -Wl,-soname -Wl,libSDL_image-1.2.so.0 -o
.libs/libSDL_image-1.2.so.0.1.5
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible /usr/lib/libpng.so when searching for -lpng
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible /usr/lib/libpng.a when searching for -lpng
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible /usr/lib/libz.so when searching for -lz
/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/lib/gcc/arm-none-linux-gnueabi/4.1.2/../../../../arm-none-linux-gnueabi/bin/ld:
skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/lib/libSDL.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [libSDL_image.la] Error 1
error: Bad exit status from /home/ned/src/ltib/tmp/rpm-tmp.61065 (%
build)
Attached is the verbose log and spec file.
sdlimage.log.gz
Description: GNU Zip compressed data
SDL_image.spec
Description: Text Data