From: Scott E. <sc...@ju...> - 2011-04-17 18:29:05
|
After frickin around with OE and Perl for awhile, it looks like Ubuntu 11.04 is the problem after all. libc and friends are no longer found in the old places, but in new multiarch directories. [Ubuntu 10.10] scott@quad:~$ dpkg -S libc.so libc6-dev: /usr/lib/libc.so libc6-i386: /lib32/libc.so.6 libc6: /lib/libc.so.6 [Ubuntu 11.04] scott@scott-dual:~/overo-oe$ dpkg -S libc.so libc6-dev: /usr/lib/x86_64-linux-gnu/libc.so libc6: /lib/x86_64-linux-gnu/libc.so.6 So when the perl-native configure step runs, instead of this [Ubuntu 10.10] ... Checking for optional libraries... What libraries to use? [-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc] ... You get this [Ubuntu 11.04] ... Checking for optional libraries... What libraries to use? [none] ... And later in the config results you get different compiler options like -fPIC for Ubuntu 10.10 and not for 11.04. I found patch in one of the OE dev trees for Perl 5.12 on Ubuntu 11.04. I suppose this is how they plan to address this. Basically adding "/usr/lib/`uname -m`-linux-gnu" to the library search path in the Perl Config script. I created a similar patch for 5.10, deleted OETMP and a new build is running now without the ASSUME_PROVIDED="perl-native" change. It's past the perl-native build. I'll try and build a full image this time. Sorry for the list noise if noone is interested. Scott On Sun, 2011-04-17 at 07:42 -0400, Scott Ellis wrote: > This is probably not a good hack fix. > > I was looking at the log from a beagleboard OE build for perl-native. > > There is an -fPIC option being passed to the compiler for the > beagleboard build of perl-native that is not getting passed in the > gumstix OE build. > > The -fPIC option is being passed to the build of libpthreads for both > systems. I think this might be the cause of the perl-native link error. > > I'm trying to figure out why the gumstix args are different. > > Scott > -- Sent from my Linux box |