ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Problems with libraries that depend on other libraries


From: Stuart Hughes
Subject: Re: [Ltib] Problems with libraries that depend on other libraries
Date: Tue, 18 Nov 2008 11:17:43 +0000

Hi Ned,

Is this a new package you're adding?  if so, and you're sure there are
now no .la files under rootfs/... then you may need to patch the sources
of the package you're building.

Without looking (and I don't have time unfortunately to look), all I can
suggest is that you look at these spec file that have had similar
problems (see below).  They may not be the same as you're, but they
might.  Unfortunately it's a question of working through the problem.

gtk2.spec, php.spec: look at the sections that do:

perl -pi -e 's,^sys_lib_search_path_spec=.*,sys_lib_search_path_spec=,' libtool

Sometimes you need to do this, or similar. The way to find it is to
figure out where the absolute paths are getting injected.

Regards, Stuart

On Mon, 2008-11-17 at 13:37 -0800, Ned Konz wrote:
> 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.
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]