Re: Why is libtool hardcoding /usr/lib/ibjpeg.so?
Ralf Wildenhues wrote: Hello Yan, * Yan Seiner wrote on Mon, Aug 07, 2006 at 05:16:52AM CEST: I am trying to compile konqueror embedded. It needs libjpeg. For some reason, libtool is hardcoding /usr/lib/libjpeg.so rather than using -ljpeg. As I am cross-compiling, this means the build fails. I have no idea where to look; I am not telling it to treat libjpeg any different from any other lib. Please show ../../libtool --tag=CXX --config grepping for libjpeg.so returns no results, so I have no idea where libtool gets its dependencies from: Probably an installed libtool library. Any ideas on where to look? grep doesn't find any reference to /usr/lib/libjpeg.so anywere, so I have no idea where to begin Please look at the list of installed .la files, especially: `/home/local/src/qt-embedded-free-3.3.4-ys/lib/libqte-mt.la' Ralf: Thanks for your help. I have to confess that the root of my problem is my own stupidity, and has nothing to do with libtool. At some point while I was setting up my dev box, I installed gcc 4.1. This was the cause of all my troubles; I have now reverted back to a system with gcc 3.4 and all is well. As is typical, the problem was between the chair and the keyboard. :-) --Yan ___ http://lists.gnu.org/mailman/listinfo/libtool
Re: Why is libtool hardcoding /usr/lib/ibjpeg.so?
Ralf Wildenhues wrote: Hello Yan, * Yan Seiner wrote on Mon, Aug 07, 2006 at 05:16:52AM CEST: I am trying to compile konqueror embedded. It needs libjpeg. For some reason, libtool is hardcoding /usr/lib/libjpeg.so rather than using -ljpeg. As I am cross-compiling, this means the build fails. I have no idea where to look; I am not telling it to treat libjpeg any different from any other lib. Please show ../../libtool --tag=CXX --config Attached. grepping for libjpeg.so returns no results, so I have no idea where libtool gets its dependencies from: Probably an installed libtool library. Any ideas on where to look? grep doesn't find any reference to /usr/lib/libjpeg.so anywere, so I have no idea where to begin Please look at the list of installed .la files, especially: `/home/local/src/qt-embedded-free-3.3.4-ys/lib/libqte-mt.la' What am I looking for? There doesn't seem anything there that jumps out at me... I have no idea why it's complaining that it has moved... It's there from the default qt build. All of this points to a broken build process, but I am completely stumped as to why --Yan # Libtool was configured on host intrepid: # Shell to use when invoking shell scripts. SHELL=/bin/sh # Whether or not to build shared libraries. build_libtool_libs=yes # Whether or not to build static libraries. build_old_libs=yes # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=no # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=no # Whether or not to optimize for fast installation. fast_install=yes # The host system. host_alias= host=i486-pc-linux-gnu host_os=linux-gnu # The build system. build_alias=i486-linux-gnu build=i486-pc-linux-gnu build_os=linux-gnu # An echo program that does not interpret backslashes. echo=echo # The archiver. AR=ar AR_FLAGS=cru # A C compiler. LTCC=gcc # LTCC compiler flags. LTCFLAGS=-Wall -g -O2 # A language-specific compiler. CC=gcc # Is the compiler the GNU C compiler? with_gcc=yes # An ERE matcher. EGREP=grep -E # The linker used to build libraries. LD=/usr/bin/ld # Whether we need hard or soft links. LN_S=ln -s # A BSD-compatible nm program. NM=/usr/bin/nm -B # A symbol stripping program STRIP=strip # Used to examine libraries when file_magic_cmd begins file MAGIC_CMD=file # Used on cygwin: DLL creation program. DLLTOOL=dlltool # Used on cygwin: object dumper. OBJDUMP=objdump # Used on cygwin: assembler. AS=as # The name of the directory that contains temporary libtool files. objdir=.libs # How to create reloadable object files. reload_flag= -r reload_cmds=\$LD\$reload_flag -o \$output\$reload_objs # How to pass a linker flag through the compiler. wl=-Wl, # Object file suffix (normally o). objext=o # Old archive suffix (normally a). libext=a # Shared library suffix (normally .so). shrext_cmds='.so' # Executable file suffix (normally ). exeext= # Additional compiler flags for building library objects. pic_flag= -fPIC -DPIC pic_mode=default # What is the maximum length of a command? max_cmd_len=32768 # Does compiler simultaneously support -c and -o options? compiler_c_o=yes # Must we lock files when doing compilation? need_locks=no # Do we need the lib prefix for modules? need_lib_prefix=no # Do we need a version for libraries? need_version=no # Whether dlopen is supported. dlopen_support=yes # Whether dlopen of programs is supported. dlopen_self=yes # Whether dlopen of statically linked programs is supported. dlopen_self_static=no # Compiler flag to prevent dynamic linking. link_static_flag=-static # Compiler flag to turn off builtin functions. no_builtin_flag= -fno-builtin # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=\${wl}--export-dynamic # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=\${wl}--whole-archive\$convenience \${wl}--no-whole-archive # Compiler flag to generate thread-safe objects. thread_safe_flag_spec= # Library versioning type. version_type=linux # Format of library name prefix. libname_spec=lib\$name # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext} # The coded name of the library, if different from the real name. soname_spec=\${libname}\${release}\${shared_ext}\$major # Commands used to build and install an old-style archive. RANLIB=ranlib old_archive_cmds=\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib old_postinstall_cmds=chmod 644 \$oldlib~\$RANLIB \$oldlib old_postuninstall_cmds= # Create an old-style archive from a shared archive. old_archive_from_new_cmds= # Create a temporary old-style archive to link instead of a shared archive
Re: Why is libtool hardcoding /usr/lib/ibjpeg.so?
Ralf Wildenhues wrote: * Yan Seiner wrote on Mon, Aug 07, 2006 at 10:59:02AM CEST: Ralf Wildenhues wrote: Please show ../../libtool --tag=CXX --config Attached. Hmm, that didn't turn up anything obvious. So please send the output of the link in debug mode (please pack): ../../libtool --debug --tag=CXX --mode=link ... OK, I may have goofed... That last libtool config was from the qt build; here's one from the konqueror build. If that doesn't reveal anything useful, I'll send the debug dump. --Yan # Libtool was configured on host craywb: # Shell to use when invoking shell scripts. SHELL=/bin/sh # Whether or not to build shared libraries. build_libtool_libs=yes # Whether or not to build static libraries. build_old_libs=no # Whether or not to add -lc for building shared libraries. build_libtool_need_lc=no # Whether or not to disallow shared libs when runtime libs are static allow_libtool_libs_with_static_runtimes=no # Whether or not to optimize for fast installation. fast_install=yes # The host system. host_alias=arm-linux host=arm-unknown-linux-gnu # An echo program that does not interpret backslashes. echo=echo # The archiver. AR=arm-linux-ar AR_FLAGS=cru # A C compiler. LTCC=arm-linux-gcc # A language-specific compiler. CC=arm-linux-gcc # Is the compiler the GNU C compiler? with_gcc=yes # An ERE matcher. EGREP=grep -E # The linker used to build libraries. LD=/home/local/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/arm-linux/bin/ld # Whether we need hard or soft links. LN_S=ln -s # A BSD-compatible nm program. NM=/home/local/crosstool/gcc-3.4.4-glibc-2.3.2/arm-linux/bin/arm-linux-nm -B # A symbol stripping program STRIP=arm-linux-strip # Used to examine libraries when file_magic_cmd begins file MAGIC_CMD=file # Used on cygwin: DLL creation program. DLLTOOL=dlltool # Used on cygwin: object dumper. OBJDUMP=objdump # Used on cygwin: assembler. AS=as # The name of the directory that contains temporary libtool files. objdir=.libs # How to create reloadable object files. reload_flag= -r reload_cmds=\$LD\$reload_flag -o \$output\$reload_objs # How to pass a linker flag through the compiler. wl=-Wl, # Object file suffix (normally o). objext=o # Old archive suffix (normally a). libext=a # Shared library suffix (normally .so). shrext='.so' # Executable file suffix (normally ). exeext= # Additional compiler flags for building library objects. pic_flag= -fPIC -DPIC pic_mode=default # What is the maximum length of a command? max_cmd_len=32768 # Does compiler simultaneously support -c and -o options? compiler_c_o=yes # Must we lock files when doing compilation ? need_locks=no # Do we need the lib prefix for modules? need_lib_prefix=no # Do we need a version for libraries? need_version=no # Whether dlopen is supported. dlopen_support=yes # Whether dlopen of programs is supported. dlopen_self=unknown # Whether dlopen of statically linked programs is supported. dlopen_self_static=unknown # Compiler flag to prevent dynamic linking. link_static_flag=-static # Compiler flag to turn off builtin functions. no_builtin_flag= -fno-builtin # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=\${wl}--export-dynamic # Compiler flag to generate shared objects directly from archives. whole_archive_flag_spec=\${wl}--whole-archive\$convenience \${wl}--no-whole-archive # Compiler flag to generate thread-safe objects. thread_safe_flag_spec= # Library versioning type. version_type=linux # Format of library name prefix. libname_spec=lib\$name # List of archive names. First name is the real one, the rest are links. # The last name is the one that the linker finds with -lNAME. library_names_spec=\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext} # The coded name of the library, if different from the real name. soname_spec=\${libname}\${release}\${shared_ext}\$major # Commands used to build and install an old-style archive. RANLIB=arm-linux-ranlib old_archive_cmds=\$AR \$AR_FLAGS \$oldlib\$oldobjs\$old_deplibs~\$RANLIB \$oldlib old_postinstall_cmds=\$RANLIB \$oldlib~chmod 644 \$oldlib old_postuninstall_cmds= # Create an old-style archive from a shared archive. old_archive_from_new_cmds= # Create a temporary old-style archive to link instead of a shared archive. old_archive_from_expsyms_cmds= # Commands used to build and install a shared archive. archive_cmds=\$CC -shared \$compiler_flags \$libobjs \$deplibs \${wl}-soname \$wl\$soname -o \$lib archive_expsym_cmds=\$CC -shared \$compiler_flags \$libobjs \$deplibs \${wl}-soname \$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib postinstall_cmds= postuninstall_cmds= # Commands used to build a loadable module (assumed same as above if empty) module_cmds= module_expsym_cmds= # Commands to strip libraries. old_striplib=arm-linux-strip --strip-debug striplib=arm-linux-strip --strip-unneeded # Dependencies
Re: Why is libtool hardcoding /usr/lib/ibjpeg.so?
Ralf Wildenhues wrote: Yes, please send the dump (packed, on-list). I'm better at reading that. OK, as requested /bin/sh ../../libtool --debug --tag=CXX --mode=link arm-linux-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -msoft-float -nostdlib -nodefaultlibs -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-rpath,/usr/local/arm/ -Wl,-rpath,/usr/local/arm/lib -nostdlib -L/usr/local/arm/lib -o konqueror -L/konq/lib -L/home/local/src/qt-embedded-free-3.3.4-ys/lib -export-dynamic main.o mainwindowbase.o mainwindebug.o htmlview.o popuphandler.o view.o run.o browseriface.o bookmarks.o preferences.o preferencesimpl.o mainwindow_qpe.o mainwindow_x11.o mainwindow_kiosk.o mainwindow_tv.o xmltree.o bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o bookmarkeditimpl.o ../../konq-embed/add-ons/kflashpart/libkflash_e.la ../../konq-embed/dropin/kio/libkiodropin.la ../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la ../../konq-embed/kdesrc/kjs/libkjs.la ../lib/libkonqe.la ../../konq-embed/kdesrc/kparts/libkparts.la ../../konq-embed/dropin/libdropin.la ../../konq-embed/dropin/kparts/libkpartsdropin.la ../../konq-embed/kdesrc/khtml/libkhtml_i.la ../../konq-embed/dropin/kssl/libkssldropin.la ../../konq-embed/kdesrc/kssl/libkssl.la konq.libtool.debug 21 gzipped. Thanks for all the help, --Yan konq.libtool.debug.gz Description: GNU Zip compressed data ___ http://lists.gnu.org/mailman/listinfo/libtool
Why is libtool hardcoding /usr/lib/ibjpeg.so?
I am trying to compile konqueror embedded. It needs libjpeg. For some reason, libtool is hardcoding /usr/lib/libjpeg.so rather than using -ljpeg. As I am cross-compiling, this means the build fails. I have no idea where to look; I am not telling it to treat libjpeg any different from any other lib. I know this is not much to go on, but I am stuck. grepping for libjpeg.so returns no results, so I have no idea where libtool gets its dependencies from: [EMAIL PROTECTED]:/home/local/src/konqueror3-embedded-0.2-20060121-ys$ grep -r libjpeg.so * [EMAIL PROTECTED]:/home/local/src/konqueror3-embedded-0.2-20060121-ys$ libtool says: /bin/sh ../../libtool --silent --tag=CXX --mode=link arm-linux-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -msoft-float -nostdlib -nodefaultlibs -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-rpath,/usr/local/arm/ -Wl,-rpath,/usr/local/arm/lib -nostdlib -L/usr/local/arm/lib -o konqueror -L/konq/lib -L/home/local/src/qt-embedded-free-3.3.4-ys/lib -export-dynamic main.o mainwindowbase.o mainwindebug.o htmlview.o popuphandler.o view.o run.o browseriface.o bookmarks.o preferences.o preferencesimpl.o mainwindow_qpe.o mainwindow_x11.o mainwindow_kiosk.o mainwindow_tv.o xmltree.o bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o bookmarkeditimpl.o ../../konq-embed/add-ons/kflashpart/libkflash_e.la ../../konq-embed/dropin/kio/libkiodropin.la ../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la ../../konq-embed/kdesrc/kjs/libkjs.la ../lib/libkonqe.la ../../konq-embed/kdesrc/kparts/libkparts.la ../../konq-embed/dropin/libdropin.la ../../konq-embed/dropin/kparts/libkpartsdropin.la ../../konq-embed/kdesrc/khtml/libkhtml_i.la ../../konq-embed/dropin/kssl/libkssldropin.la ../../konq-embed/kdesrc/kssl/libkssl.la libtool: link: warning: library `/home/local/src/qt-embedded-free-3.3.4-ys/lib/libqte-mt.la' was moved. libtool: link: warning: library `/home/local/src/qt-embedded-free-3.3.4-ys/lib/libqte-mt.la' was moved. arm-linux-g++: /usr/lib/libjpeg.so: No such file or directory which, on taking out the --silent, eays: arm-linux-g++ -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -msoft-float -nostdlib -nodefaultlibs -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -Wl,-rpath -Wl,/usr/local/arm/ -Wl,-rpath -Wl,/usr/local/arm/lib -nostdlib -o .libs/konqueror main.o mainwindowbase.o mainwindebug.o htmlview.o popuphandler.o view.o run.o browseriface.o bookmarks.o preferences.o preferencesimpl.o mainwindow_qpe.o mainwindow_x11.o mainwindow_kiosk.o mainwindow_tv.o xmltree.o bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o bookmarkeditimpl.o -Wl,--export-dynamic -L/usr/local/arm/lib -L/konq/lib -L/home/local/src/qt-embedded-free-3.3.4-ys/lib ../../konq-embed/add-ons/kflashpart/.libs/libkflash_e.a ../../konq-embed/dropin/kio/.libs/libkiodropin.a ../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a ../../konq-embed/kdesrc/kjs/.libs/libkjs.a ../lib/.libs/libkonqe.so ../../konq-embed/kdesrc/kparts/.libs/libkparts.a ../../konq-embed/dropin/.libs/libdropin.a ../../konq-embed/dropin/kparts/.libs/libkpartsdropin.a ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a /home/local/src/qt-embedded-free-3.3.4-ys/lib/libqte-mt.so -lpng -lz -lpthread -ldl -lm /usr/lib/libjpeg.so ../../konq-embed/dropin/kssl/.libs/libkssldropin.a ../../konq-embed/kdesrc/kssl/.libs/libkssl.a -Wl,--rpath -Wl,/konq/lib -Wl,--rpath -Wl,/home/local/src/qt-embedded-free-3.3.4-ys/lib arm-linux-g++: /usr/lib/libjpeg.so: No such file or directory Any ideas on where to look? grep doesn't find any reference to /usr/lib/libjpeg.so anywere, so I have no idea where to begin --Yan ___ http://lists.gnu.org/mailman/listinfo/libtool
cross-compiling and libtool
I am trying to cross-complie gphoto2 gphoto.sf.net , which uses ltdl I have everything compiled, but on execution it tries to find its drivers in the build tree, and not in the target tree See below How do I configure libtool in a cross-compile environment to correctly find the stuff it is looking for? Thanks, --Yan [EMAIL PROTECTED]:~# gphoto2 --debug --list-ports 0.51 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000483 main(2): gphoto2 2.1.99 0.000811 main(2): gphoto2 has been compiled with the following options: 0.001058 main(2): + /home/nfs/yan/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc (C compiler used) 0.001442 main(2): + popt (for handling command-line parameters) 0.001702 main(2): + exif (for displaying EXIF information) 0.001937 main(2): + no cdk (for accessing configuration options) 0.002175 main(2): + no aa (for displaying live previews) 0.002413 main(2): + no jpeg (for displaying live previews in JPEG format) 0.002656 main(2): + no readline (for easy navigation in the shell) 0.002974 main(2): libgphoto2 2.1.99 0.003287 main(2): libgphoto2 has been compiled with the following options: 0.003525 main(2): + /home/nfs/yan/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc (C compiler used) 0.003908 main(2): + no EXIF (for special handling of EXIF files) 0.004169 main(2): + no /proc/meminfo (adapts cache size to memory available) 0.004414 main(2): libgphoto2_port 0.5.2 0.004771 main(2): libgphoto2_port has been compiled with the following options: 0.005016 main(2): + /home/nfs/yan/whiterussian/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/mipsel-linux-uclibc-gcc (C compiler used) 0.005273 main(2): + USB (libusb, for USB cameras) 0.005512 main(2): + serial (for serial cameras) 0.005748 main(2): + no resmgr (serial port access and locking) 0.005985 main(2): + no baudboy (serial port locking) 0.006219 main(2): + no ttylock (serial port locking) 0.006457 main(2): + no lockdev (serial port locking) 0.009253 gphoto2-port-info-list(2): Using ltdl to load io-drivers from '/home/nfs/yan/whiterussian/OpenWrt-SDK-Linux-i686-1/build_mipsel/libgphoto2-2.1.99/ipkg-install/usr/lib/libgphoto2_port/0.5.2'... 0.009828 gphoto2-port-info-list(2): Counting entries (0 available)... 0.010133 gphoto2-port-info-list(2): 0 regular entries available. Devices found: 0 Path Description -- 0.010707 gp-camera(2): Freeing camera... 0.010954 gphoto2-port(2): Freeing port... 0.011335 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 0.011558 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 0.011771 gphoto2-filesystem(2): Internally deleting all folders from '/'... ___ http://lists.gnu.org/mailman/listinfo/libtool