Jessy.Wen@QMITW.COM
2006-Jul-22 23:44 UTC
[Speex-dev] build speex-1.0.5 problem (undefined reference to `__strtol_internal')
Skipped content of type multipart/alternative-------------- next part -------------- pending configuration tag "CXX" to libtool checking for ld used by /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++... /home/jessy/proce ss_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-ld checking if the linker (/home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-ld) is GNU ld... yes checking whether the /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++ linker (/home/jessy/pro cess_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-ld) supports shared libraries... no checking for /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++ option to produce PIC... -fPIC checking if /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++ PIC flag -fPIC works... yes checking if /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++ supports -c -o file.o... yes checking whether the /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-g++ linker (/home/jessy/pro cess_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-ld) supports shared libraries... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking for g77 option to produce PIC... -fPIC checking if g77 PIC flag -fPIC works... yes checking if g77 supports -c -o file.o... yes checking whether the g77 linker (/home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-ld) supports sh ared libraries... yes checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking whether byte ordering is bigendian... no checking sys/soundcard.h usability... yes checking sys/soundcard.h presence... yes checking for sys/soundcard.h... yes checking sys/audioio.h usability... no checking sys/audioio.h presence... no checking for sys/audioio.h... no checking for libogg... Ogg includes in /usr/include Ogg libraries in /usr/lib checking for sin in -lm... yes checking for getopt_long in -lgnugetopt... no configure: creating ./config.status config.status: creating Makefile config.status: creating libspeex/Makefile config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating Speex.spec config.status: creating include/Makefile config.status: creating include/speex/Makefile config.status: creating speex.pc config.status: creating win32/Makefile config.status: creating win32/libspeex/Makefile config.status: creating win32/speexenc/Makefile config.status: creating win32/speexdec/Makefile config.status: executing depfiles commands Type "make; make install" to compile and install Speex make make[2]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5' Making all in libspeex make[3]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/libspeex' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/libspeex' Making all in include make[3]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include' Making all in speex make[4]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include/speex' make[4]: Nothing to be done for `all'. make[4]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include/speex' make[4]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include' make[4]: Nothing to be done for `all-am'. make[4]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include' make[3]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/include' Making all in src make[3]: Entering directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/src' /bin/sh ../libtool --mode=link /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-gcc -Wall -Wstri ct-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -o speexenc speexenc.o wav_io. o ../libspeex/libspeex.la -L/usr/lib -logg -lm /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin/arm-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -o speexenc speexenc.o wav_io.o ../libspeex/.libs/libspeex.a -L/ usr/lib -logg -lm /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libogg.so when searching for -logg /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libogg.a when searching for -logg /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc /home/jessy/process_ctrl_7_21/toolChains/cross_arm/bin-ccache/../lib/gcc/arm-linux-uclibc/3.4.3/../../../../arm-linux-uc libc/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc speexenc.o(.text+0x15b4): In function `main': speexenc.c: undefined reference to `__strtol_internal' speexenc.o(.text+0x1ac0):speexenc.c: undefined reference to `__strtol_internal' speexenc.o(.text+0x1ad8):speexenc.c: undefined reference to `__strtod_internal' speexenc.o(.text+0x1afc):speexenc.c: undefined reference to `__strtol_internal' speexenc.o(.text+0x1b20):speexenc.c: undefined reference to `__strtol_internal' speexenc.o(.text+0x1b44):speexenc.c: undefined reference to `__strtol_internal' speexenc.o(.text+0x1bf4):speexenc.c: undefined reference to `__strtol_internal' collect2: ld returned 1 exit status make[3]: *** [speexenc] Error 1 make[3]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5' make[1]: *** [build] Error 2 make[1]: Leaving directory `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5' make: *** [speech] Error 2 [jessy@FedoraJessy process_ctrl_7_21]$ [jessy@FedoraJessy process_ctrl_7_21]$ strtol
Benjamin
2006-Jul-23 01:34 UTC
[Speex-dev] build speex-1.0.5 problem (undefined reference to `__strtol_internal')
Jessy.Wen@QMITW.COM wrote:> > Dear: > > I use uclibc to do arm linux cross compiler then build speex-1.0.5 >I'm using uClibc as well for cross-compiling and development, that shouldn't be the problem. Can you post what you did before, e.g. how did you run the ./configure script?> > . > > In build encounter problem: > > speexenc.o(.text+0x15b4): In function `main': > > speexenc.c: undefined reference to `__strtol_internal' > > speexenc.o(.text+0x1ac0):speexenc.c: undefined reference to > `__strtol_internal' > > speexenc.o(.text+0x1ad8):speexenc.c: undefined reference to > `__strtod_internal' > > speexenc.o(.text+0x1afc):speexenc.c: undefined reference to > `__strtol_internal' > > speexenc.o(.text+0x1b20):speexenc.c: undefined reference to > `__strtol_internal' > > speexenc.o(.text+0x1b44):speexenc.c: undefined reference to > `__strtol_internal' > > speexenc.o(.text+0x1bf4):speexenc.c: undefined reference to > `__strtol_internal' > > collect2: ld returned 1 exit status > > make[3]: *** [speexenc] Error 1 > > make[3]: Leaving directory > `/home/jessy/process_ctrl_7_21/apps_src/opensource/speex-1.0.5/src' > > Do I lost what steps ? Please,give me suggestion to slove the problem. > > Thanks >That looks like your linker didn't find the standard C-libraries. Benjamin> > System Engneering/R&D (Hsin Chu) > Quanta Microsystems, Inc. > Tel: +886-3-5715996 Ext: 5212 > E-Mail: jessy.wen@qmitw.com <mailto:jessy.wen@qmitw.com> > > ------------------------------------------------------------------------ > > _______________________________________________ > Speex-dev mailing list > Speex-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/speex-dev >