From: Robert W. <ro...@us...> - 2005-04-13 14:36:42
|
ltp...@li... wrote on 04/13/2005 08:04:14 AM: > Ben Krepp wrote: > > Hi colleagues, > Hi FSL colleague, ;o) > > > > > I'm trying to build the LTP, and am running into a problem when the > > top-level Makefile is trying to build the "pan" target. > > Here are the details: > > > > 1. I'm trying to build the 20050405 version of the LTP. > > 2. I'm cross-compiling/linking on a Sun/Solaris host for an embedded > > 32-bit PowerPC/Linux target. > which cross toolchain do you use? > > > 3. I've modified the top-level makefile to point to the appropriate > > version of gcc, ar, etc., and have set CROSS_FLAGS equal to nothing, as > > I'm cross-compiling for a 32-bit, not 64-bit, target. Otherwise the > > top-level makefile (and everything else) are unchanged. > > 4. The "lib" target builds successfully. > > 5. When the Makefile attempts to build the "pan" target, all the > > compiles succeed, but the link fails with ld complaining that it cannot > > find the library -lnss_dss. > Did you mean -lnss_dns? Do you have a seperate /lib directory for 32bit libraries? For Linux on ppc64, we compile 32bit by default. If we want to compile in 64bit mode, besides adding a "-m64" to both the CROSS_CFLAGS and LDFLAGS, we must also point LIB_DIR to /lib_64...where are 64bit libraries are stored. The gcc compiler is the same for us for both 32bit and 64bit compiles for the newer distro releases...but we must set the CC and AR for older distro releases, where a 64bit gcc cross-compiler is required. > > > > > I've never heard of libnss_dss before, and, after a bit of poking > > around, haven't been able to figure out either what it is or where it > > might be installed. (I note that the Makefile also attempts to link in > > -lnss_files, another library that's news to me.) > libnss_files ans libnss_dns are libs chipped with the GNU libc (which > should be part of your GNU toolchain). > > I think that on solaris the librariy names are different from GNU/Linux > (I'm not 100% sure), so i think that either: > 1: your toolchain is incomplete (you're missing libnss_dns and so...) > or > 2: it is a cross compile issue, is pan build with your cross toolchain? > > We're using LTP on a x86-linux host for a arm-linux target, and all work > fine. > > Regards, > Christian > > > > > > > > Any help you can provide with this problem (i.e., failure to link > > "pan" successfully) would be greatly appreciated. > > > > Best regards, > > Ben Krepp > > e-mail: r1...@fr... <mailto:r1...@fr...> or > > ben...@cp... > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Ltp-list mailing list > Ltp...@li... > https://lists.sourceforge.net/lists/listinfo/ltp-list (Embedded image moved to file: pic00920.jpg) |