Building ncurses with uclibc toolchain fails

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Jun 4 08:36:31 UTC 2007


On Mon, 2007-06-04 at 15:56 +0800, sumit.jain at nokia.com wrote:
> That's what. If these are not defined then how is ncurses referring to
> them. Some problem somewhere 

some of these functions are mentioned here:
http://refspecs.freestandards.org/LSB_3.0.0/LSB-Core-generic/LSB-Core-generic/baselib-xstat-1.html
Seems like a Linux thing and not POSIX. You could probably patch
ncursers easily or convince uClibc to add them. 

> 
> 
> Regards,
> Sumit
> 
> Sumit Kumar Jain
> Nokia India Pvt. Ltd.
> Bangalore.
> 
> -----Original Message-----
> From: ext Joakim Tjernlund [mailto:joakim.tjernlund at transmode.se] 
> Sent: Monday, June 04, 2007 10:52 AM
> To: Jain Sumit (Nokia-TP-MSW/Bangalore)
> Cc: uclibc at uclibc.org
> Subject: RE: Building ncurses with uclibc toolchain fails
> 
> On Mon, 2007-06-04 at 15:34 +0800, sumit.jain at nokia.com wrote:
> > The following is the output
> > 
> > Dynamic section at offset 0x3f240 contains 19 entries:
> >   Tag        Type                         Name/Value
> >  0x00000001 (NEEDED)                     Shared library: [libc.so.0]
> >  0x0000000e (SONAME)                     Library soname:
> > [libncurses.so.5]
> >  0x0000000c (INIT)                       0xcf1c
> >  0x0000000d (FINI)                       0x32e6c
> >  0x00000004 (HASH)                       0x94
> >  0x00000005 (STRTAB)                     0x3570
> >  0x00000006 (SYMTAB)                     0x11b0
> >  0x0000000a (STRSZ)                      5050 (bytes)
> >  0x0000000b (SYMENT)                     16 (bytes)
> >  0x00000003 (PLTGOT)                     0x472f8
> >  0x00000002 (PLTRELSZ)                   2272 (bytes)
> >  0x00000014 (PLTREL)                     REL
> >  0x00000017 (JMPREL)                     0xc63c
> >  0x00000011 (REL)                        0x492c
> >  0x00000012 (RELSZ)                      32016 (bytes)
> >  0x00000013 (RELENT)                     8 (bytes)
> >  0x00000016 (TEXTREL)                    0x0
> >  0x6ffffffa (RELCOUNT)                   3941
> >  0x00000000 (NULL)                       0x0 
> 
> OK, that wasn't it. Seems like these syms aren't defined in uClibc then.
> Don't know why
> 
> > 
> > 
> > Regards,
> > Sumit
> > 
> > Sumit Kumar Jain
> > Nokia India Pvt. Ltd.
> > Bangalore.
> > 
> > -----Original Message-----
> > From: ext Joakim Tjernlund [mailto:joakim.tjernlund at transmode.se]
> > Sent: Monday, June 04, 2007 10:31 AM
> > To: Jain Sumit (Nokia-TP-MSW/Bangalore)
> > Cc: uclibc at uclibc.org
> > Subject: RE: Building ncurses with uclibc toolchain fails
> > 
> > On Sat, 2007-06-02 at 17:21 +0800, sumit.jain at nokia.com wrote:
> > > Large file support is enabled.  "UCLIBC_HAS_LFS=y" is set in the 
> > > config file.
> > > 
> > > 
> > > Regards,
> > > Sumit
> > > 
> > > Sumit Kumar Jain
> > > Nokia India Pvt. Ltd.
> > > Bangalore.
> > > 
> > > -----Original Message-----
> > > From: ext Joakim Tjernlund [mailto:joakim.tjernlund at transmode.se]
> > > Sent: Friday, June 01, 2007 5:09 PM
> > > To: Jain Sumit (Nokia-TP-MSW/Bangalore)
> > > Cc: uclibc at uclibc.org; scratchbox-users at lists.scratchbox.org
> > > Subject: Re: Building ncurses with uclibc toolchain fails
> > > 
> > > On Fri, 2007-06-01 at 19:21 +0800, sumit.jain at nokia.com wrote:
> > > > Hi,
> > > > I am trying to build ncurses using a uclibc toolchain. I am using 
> > > > the debian way of build and am using
> > > > 
> > > > dpkg-buildpackage -rfakeroot -uc -us
> > > > 
> > > > to build. The ncurses version that I am using is 5.4. I am getting
> 
> > > > the
> > > 
> > > > following error. I have mentioned only the small error.
> > > > 
> > > > dlsym(__lxstat): Unable to resolve symbol
> > > > dlsym(__xstat): Unable to resolve symbol
> > > > dlsym(__fxstat): Unable to resolve symbol
> > > > dlsym(__lxstat64): Unable to resolve symbol
> > > > dlsym(__xstat64): Unable to resolve symbol
> > > > dlsym(__fxstat64): Unable to resolve symbol
> > > > dlsym(__xmknod): Unable to resolve symbol
> > > 
> > > missing large file support(UCLIBC_HAS_LFS)in uClibc?
> > > 
> > hmm, this actually looks like a run-time error. Are you sure ncurses 
> > has a dependency on libc? Post readelf -d ncurses.so to the list.
> > 
> > > > ? tic could not
> > > > build
> > > > /home/sumit/uclibc_disro/ncurses-5.4/debian/tmp/usr/share/terminfo
> > > > make[2]: *** [install.data] Error 1
> > > > make[2]: Leaving directory
> > > > `/home/sumit/uclibc_disro/ncurses-5.4/obj-debug/misc' 
> > > > make[1]: *** [install] Error 2
> > > > make[1]: Leaving directory
> > > > `/home/sumit/uclibc_disro/ncurses-5.4/obj-debug' 
> > > > make: *** [install] Error 2
> > > > 
> > > > I think the problem is because of some glibc extension in C
> library.
> > > > Any help as to how to build.
> > > > 
> > > > Regards,
> > > > Sumit
> > > > 
> > > > Sumit Kumar Jain
> > > > Nokia India Pvt. Ltd. 
> > > > Bangalore.
> > > > 
> > > > _______________________________________________
> > > > uClibc mailing list
> > > > uClibc at uclibc.org
> > > > http://busybox.net/cgi-bin/mailman/listinfo/uclibc
> > > 
> > > 
> > 
> > 
> 
> 



More information about the uClibc mailing list