[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Where is a mkspoof project?
From: |
Takeo Komiyama |
Subject: |
[Ltib] Where is a mkspoof project? |
Date: |
Wed, 22 Nov 2006 14:01:57 +0900 |
User-agent: |
Thunderbird 1.5.0.8 (X11/20061025) |
Hi,
Do you know where mkspooflinks ( I think this package is used by ltib )
maintained ?
I tried to build libpng package using ltib, and got following error.
/opt/mtwk/usr/local/m68k-linux/gcc-3.4.0-glibc-2.3.2-v4e/lib/gcc/m68k-linux/3.4.0/../../../../m68k-linux/bin/ld:
warning: libz.so.1, needed by ./libpng12.so, not found (try using -rpath
or -rpath-link)
./libpng12.so: undefined reference to `deflate'
This is happen because spoof wrapper called gcc as, (1)
m68k-linux-gcc -B /trash/ltib/ltib/rootfs/lib// -B
/trash/ltib/ltib/rootfs/usr/lib// -iwithprefix include -mcfv4e -o
pngtest -I/usr/include -Wall -O3 -funroll-loops pngtest.o -L.
-Wl,-rpath,. -L/usr/lib -Wl,-rpath,/usr/lib -lpng12
But due to libpng12.so which require to build executable also require
another library (libz.so.1) which has already installed under target
binary collection ( /trash/ltib/ltib/rootfs/usr/lib/ ).
According to ld manual, in such a situation, -rpath ( and -rpath-link
for cross compile)is require to tell linker (at host ) to correct
location of library. So above (1) should be
m68k-linux-gcc -B /trash/ltib/ltib/rootfs/lib// -B
/trash/ltib/ltib/rootfs/usr/lib// -Wl,-rpath,/usr/lib
-Wl,-rpath-link,/trash/ltib/ltib/rootfs/usr/lib/ -iwithprefix include
-mcfv4e -v -o pngtest -I/usr/include -Wall -O3 -funroll-loops pngtest.o
-L. -Wl,-rpath,. -L/usr/lib -Wl,-rpath,/usr/lib -lpng12
( add -rpath and -rpath-link )
To do this, spoof_wrapper should be ( This is patch for mkspoof 2.1 ,
but current latest (2.4) has same issue ) should be
26c26,29
< @srch = ('-B', "$ENV{DEV_IMAGE}/lib//", '-
B', "$ENV{DEV_IMAGE}/usr/lib//",
---
> @srch = ('-B', "$ENV{DEV_IMAGE}/lib//",
> '-B', "$ENV{DEV_IMAGE}/usr/lib//",
> "-Wl,-rpath,/usr/lib",
> "-Wl,-rpath-link,$ENV{DEV_IMAGE}/usr/lib/",
Regards,
Takeo Komiyama
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ltib] Where is a mkspoof project?,
Takeo Komiyama <=