From: John C. <jrp...@ya...> - 2007-10-13 15:07:20
|
I can compile player on my desktop and scp it to gumstix but when I try to run it on gumstix I get # ./player create.cfg ./player: can't load library 'libstdc++.so.6' # excerpts from config.log It was created by player configure 2.0.4, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --build=x86-linux --host=arm-linux --disable-shared --disable-alldrivers --enable-roomba ## --------- ## ## Platform. ## ## --------- ## hostname = john-desktop uname -m = i686 uname -r = 2.6.20-16-generic uname -s = Linux uname -v = #2 SMP Sun Sep 23 19:50:39 UTC 2007 and later it says configure:9952: checking if libtool supports shared libraries configure:9954: result: yes configure:9957: checking whether to build shared libraries configure:9978: result: no configure:9981: checking whether to build static libraries configure:9985: result: yes Reading specs from /home/john/gumstix-buildroot/build_arm_nofpu/staging_dir/lib/gcc/arm-linux-uclibc/3.4.5/specs Configured with: /home/john/gumstix-buildroot/toolchain_build_arm_nofpu/gcc-3.4.5/configure --prefix=/home/john/gumstix-buildroot/build_arm_nofpu/staging_dir --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --with-float=soft : (reconfigured) /home/john/gumstix-buildroot/toolchain_build_arm_nofpu/gcc-3.4.5/configure --prefix=/home/john/gumstix-buildroot/build_arm_nofpu/staging_dir --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=arm-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --with-float=soft Thread model: single Which looks like although Player is not using shared library's the gumstix buildroot is supplying them anyway. I have found no way in menuconfig to change this parameter in gumstix-buildroot. Questions 1) can anyone confirm/disprove my diagnosis? 2) Is there a way to turn off shared in buildroot? I would prefer to use static library's and avoid the complications of shared on gumstix. Chad George reports that some one has fixed shared libs on gumstix. I have not been able to find this. so 3)Could someone give a pointer to getting shared libs running on gumstix 4)gumstix reboots often when i'm scp ing files to it, any ideas? John Cummins --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. |
From: Dave H. <dhy...@gm...> - 2007-10-13 16:16:00
|
Hi John, On 10/13/07, John Cummins <jrp...@ya...> wrote: > I can compile player on my desktop and scp it to gumstix but when I try to > run it > on gumstix I get > > # ./player create.cfg > ./player: can't load library 'libstdc++.so.6' > Questions > 1) can anyone confirm/disprove my diagnosis? I can't tell from a configure parameters whether a given library will be shared or not, only from looking at the compiler command line. I know that if you pass in -static to g++/gcc when compiling and when linking, then you'll get a statically linked executable. The C++ hello world program went from a measly 7K to 2.9Mb. > 2) Is there a way to turn off shared in buildroot? buildroot supports both shared and dynamic. You just need to pass in the correct flags. > I would prefer to use static library's and avoid the complications of > shared on > gumstix. Chad George reports that some one has fixed shared libs on > gumstix. > I have not been able to find this. so > 3)Could someone give a pointer to getting shared libs running on gumstix Just make sure that -static is passed to both the compiler and linker portions and you should be good to go. > 4)gumstix reboots often when i'm scp ing files to it, any ideas? This is usually a power issue. What boards do you have? and what are you using as a power supply? -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Chad G. <ch...@mg...> - 2007-10-13 18:34:22
|
John, here is a link to the relevant discussion about fixing shared libraries. http://www.nabble.com/is-ldd-working--t4466702.html I haven't duplicated this myself (yet) and I haven't seen anyone say they have submitted a patch to fix it. But they claim to have done it and my own research on the problem was heading in the same direction. -Chad On 10/13/07, Dave Hylands <dhy...@gm...> wrote: > Hi John, > > On 10/13/07, John Cummins <jrp...@ya...> wrote: > > I can compile player on my desktop and scp it to gumstix but when I try to > > run it > > on gumstix I get > > > > # ./player create.cfg > > ./player: can't load library 'libstdc++.so.6' > > > Questions > > 1) can anyone confirm/disprove my diagnosis? > > I can't tell from a configure parameters whether a given library will > be shared or not, only from looking at the compiler command line. I > know that if you pass in -static to g++/gcc when compiling and when > linking, then you'll get a statically linked executable. > > The C++ hello world program went from a measly 7K to 2.9Mb. > > > 2) Is there a way to turn off shared in buildroot? > > buildroot supports both shared and dynamic. You just need to pass in > the correct flags. > > > I would prefer to use static library's and avoid the complications of > > shared on > > gumstix. Chad George reports that some one has fixed shared libs on > > gumstix. > > I have not been able to find this. so > > > 3)Could someone give a pointer to getting shared libs running on gumstix > > Just make sure that -static is passed to both the compiler and linker > portions and you should be good to go. > > > 4)gumstix reboots often when i'm scp ing files to it, any ideas? > > This is usually a power issue. What boards do you have? and what are > you using as a power supply? > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |