autoconf-patches
[Top][All Lists]
Advanced

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

Cannot set correct path for libltdl.so. How to run configure?


From: Gary Yang
Subject: Cannot set correct path for libltdl.so. How to run configure?
Date: Tue, 6 Jan 2009 13:41:48 -0800 (PST)

I got errors when I do the cross compile for powerpc. Below are the error 
messages. It looks for /usr/lib/libltdl.so instead of 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.so at link time. I set the path 
-L/tools/eldk/4.2/ppc_4xx/usr/lib. But, it is useless. Below are details.

Before running ./configure, I set the environment variables below

setenv LDFLAGS  -L/tools/eldk/4.2/ppc_4xx/usr/lib
setenv CPPFLAGS -I/tools/eldk/4.2/ppc_4xx/usr/include

setenv CROSS_COMPILE ppc_4xx-
setenv ARCH powerpc
setenv BUILD_CC gcc
setenv CC powerpc-linux-gcc
setenv AR powerpc-linux-ar
setenv RANLIB powerpc-linux-ranlib
set path=(/tools/eldk/4.2/bin /tools/eldk/4.2/usr/bin $path)

./configure --prefix=/tmp/safebox/install_libs --host=powerpc-linux 
--build=i686-pc-linux-gnu -target=powerpc-linux

./configure runs successfully with the following warnings

configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to address@hidden
Package libexif was not found in the pkg-config search path.
Perhaps you should add the directory containing `libexif.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libexif' found
config.status: WARNING:  po/Makefile.in.in seems to ignore the --datarootdir 
setting
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to address@hidden
Package libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb' found
./configure: line 26092: test: : integer expression expected
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-1' found
config.status: WARNING:  po/Makefile.in.in seems to ignore the --datarootdir 
setting


make errors:

/bin/sh ../libtool --tag=CC   --mode=link powerpc-linux-gcc -g -O2 -g -O2 
-no-undefined -export-symbols ./libgphoto2_port.sym -version-info 8:0:8 
-L/tools/eldk/4.2/ppc_4xx/usr/lib -o libgphoto2_port.la -rpath 
/tmp/safebox/install_libs/lib libgphoto2_port_la-gphoto2-port-info-list.lo 
libgphoto2_port_la-gphoto2-port-log.lo 
libgphoto2_port_la-gphoto2-port-version.lo libgphoto2_port_la-gphoto2-port.lo 
libgphoto2_port_la-gphoto2-port-portability.lo 
libgphoto2_port_la-gphoto2-port-result.lo -lltdl  
echo "{ global:" > .libs/libgphoto2_port.ver
 cat ./libgphoto2_port.sym | sed -e "s/\(.*\)/\1;/" >> .libs/libgphoto2_port.ver
 echo "local: *; };" >> .libs/libgphoto2_port.ver
 powerpc-linux-gcc -shared  .libs/libgphoto2_port_la-gphoto2-port-info-list.o 
.libs/libgphoto2_port_la-gphoto2-port-log.o 
.libs/libgphoto2_port_la-gphoto2-port-version.o 
.libs/libgphoto2_port_la-gphoto2-port.o 
.libs/libgphoto2_port_la-gphoto2-port-portability.o 
.libs/libgphoto2_port_la-gphoto2-port-result.o  
-L/tools/eldk/4.2/ppc_4xx/usr/lib /usr/lib/libltdl.so  -Wl,-soname 
-Wl,libgphoto2_port.so.0 -Wl,-version-script -Wl,.libs/libgphoto2_port.ver -o 
.libs/libgphoto2_port.so.0.8.0
/usr/lib/libltdl.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [libgphoto2_port.la] Error 1
make[4]: Leaving directory 
`/projects/svdc/P4wsIPCSW/buildsw_safebox/safebox/libs/libgphoto2-2.4.2/libgphoto2_port/libgphoto2_port'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory 
`/projects/svdc/P4wsIPCSW/buildsw_safebox/safebox/libs/libgphoto2-2.4.2/libgphoto2_port'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/projects/svdc/P4wsIPCSW/buildsw_safebox/safebox/libs/libgphoto2-2.4.2/libgphoto2_port'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/projects/svdc/P4wsIPCSW/buildsw_safebox/safebox/libs/libgphoto2-2.4.2'
make: *** [all] Error 2


svdclc313:[~][] (66)> ls -alF /tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.*
-rw-r--r--    1 tooladm  toolsup     29788 Apr  1  2008 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.a
-rwxr-xr-x    1 tooladm  toolsup       791 Apr  1  2008 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.la*
lrwxrwxrwx    1 tooladm  toolsup        16 Apr 15  2008 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.so -> libltdl.so.3.1.4*
lrwxrwxrwx    1 tooladm  toolsup        16 Apr 15  2008 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.so.3 -> libltdl.so.3.1.4*
-rwxr-xr-x    1 tooladm  toolsup     32136 Apr  1  2008 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.so.3.1.4*


Can someone tell me how to run configure so that it looks for 
/tools/eldk/4.2/ppc_4xx/usr/lib/libltdl.so instead of usr/lib/libltdl.so?

Thank you




      




reply via email to

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