[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Ltib] Trying to link libtecla
From: |
Bart Bogaerts |
Subject: |
RE: [Ltib] Trying to link libtecla |
Date: |
Thu, 22 Oct 2009 11:36:33 +0200 |
Hi Stuart,
Thanks for the quick answer.
I changed the configure statement to get the extra LDFLAGS into the Makefile.
Regards,
Bart
-----Original Message-----
From: Stuart Hughes [mailto:address@hidden
Sent: Thursday, October 22, 2009 10:27 AM
To: Bart Bogaerts
Cc: address@hidden
Subject: Re: [Ltib] Trying to link libtecla
Hi Bart,
It looks like the package is directly calling 'ld', this is unusual and
the cause of not finding libncurses as only a few paths are wired into
ld by default.
If possible you should change the build rule in the Makefile to call out
$(CC), which is more conventional when linking libraries.
Alternatively you'll have to include a option and the make command line
(usually LDFLAG or LD_EXTRAFLAGS or similar, look in the Makefile).
Then you could say for example: 'make LDFLAGS="-L$DEV_IMAGE/usr/lib"
Regards, Stuart
Bart Bogaerts wrote:
> Hello,
>
>
>
> I'm trying to compile and linking the Libtecla opensource package.
>
> Compiling no problem but it fails on the linking stap it needs -lcurses
> and tell me it couldn't find the libcurses.
>
>
>
> But the libcurses is available into the rootfs/usr/lib directory ! Can
> someone tell me what is going wrong?
>
> LD is used for linking and not gcc. It seems that LD is not searching
> into the library directories of the rootfs ?
>
>
>
> Processing: libtecla
>
> ======================
>
> Build path taken because: build key set, no prebuilt rpm,
>
>
>
> rpmbuild --dbpath
> /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/rootfs//var/lib/rpm
> --target ppc --define '_unpackaged_files_terminate_build 0' --define
> '_target_cpu ppc' --define '__strip strip' --define '_topdir
> /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/rpm' --define
> '_prefix /usr' --define '_tmppath
> /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/tmp' --define
> '_mandir /usr/share/man' --define '_sysconfdir /etc' --define
> '_localstatedir /var' -bc --short-circuit
> /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/dist/lfs-5.1/libtecla/libtecla.spec
>
> Building target platforms: ppc
>
> Building for target ppc
>
> Executing(%build): /bin/sh -e
> /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/tmp/rpm-tmp.2373
>
> + umask 022
>
> + cd /home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/rpm/BUILD
>
> + cd libtecla-1.6.1
>
> + ./configure --prefix=/usr --host=powerpc-linux
> --build=x86_64-unknown-linux-gnu --without-man-pages
>
> checking for powerpc-linux-gcc... gcc
>
> checking for C compiler default output... a.out
>
> checking whether the C compiler works... yes
>
> checking whether we are cross compiling... yes
>
> checking for suffix of executables...
>
> checking for suffix of object files... o
>
> checking whether we are using the GNU C compiler... yes
>
> checking whether gcc accepts -g... yes
>
> checking for gcc option to accept ANSI C... none needed
>
> checking whether make sets $(MAKE)... yes
>
> checking whether ln -s works... yes
>
> checking for gawk... gawk
>
> checking for powerpc-linux-ranlib... no
>
> checking for ranlib... ranlib
>
> checking for powerpc-linux-ld... ld
>
> checking build system type... x86_64-unknown-linux-gnu
>
> checking host system type... powerpc-unknown-linux-gnu
>
> checking target system type... powerpc-unknown-linux-gnu
>
> checking how to run the C preprocessor... gcc -E
>
> checking for egrep... grep -E
>
> checking for ANSI C header files... yes
>
> checking for sys/types.h... yes
>
> checking for sys/stat.h... yes
>
> checking for stdlib.h... yes
>
> checking for string.h... yes
>
> checking for memory.h... yes
>
> checking for strings.h... yes
>
> checking for inttypes.h... yes
>
> checking for stdint.h... yes
>
> checking for unistd.h... yes
>
> checking for tigetstr in -lcurses... yes
>
> checking curses.h usability... yes
>
> checking curses.h presence... yes
>
> checking for curses.h... yes
>
> checking for term.h... yes
>
> checking for reentrant functions... yes
>
> checking sys/select.h usability... yes
>
> checking sys/select.h presence... yes
>
> checking for sys/select.h... yes
>
> checking for select system call... yes
>
> checking for SysV pseudo-terminals... yes
>
> checking for --version-script in GNU ld... yes
>
> configure: creating ./config.status
>
> config.status: creating Makefile
>
> + make
>
> make[1]: Entering directory
> `/home/bart_b/otne_components_fw/trunk/LTIB_BuildEnv4Nx0xx/rpm/BUILD/libtecla-1.6.1'
>
> ld -o libtecla.so.1.6.1 -soname libtecla.so.1 -shared
> --version-script=./libtecla.map normal_obj/getline.o normal_obj/keytab.o
> normal_obj/freelist.o normal_obj/strngmem.o normal_obj/hash.o
> normal_obj/history.o normal_obj/direader.o normal_obj/homedir.o
> normal_obj/pathutil.o normal_obj/expand.o normal_obj/stringrp.o
> normal_obj/cplfile.o normal_obj/cplmatch.o normal_obj/pcache.o
> normal_obj/version.o normal_obj/chrqueue.o normal_obj/ioutil.o
> normal_obj/errmsg.o -lcurses -lc
> /opt/freescale/usr/local/gcc-4.2.171-eglibc-2.5.171-dp-1/powerpc-none-linux-gnuspe/lib/gcc/powerpc-none-linux-gnuspe/4.2.3/libgcc.a
>
> powerpc-none-linux-gnuspe-ld: cannot find -lcurses
>
> make[1]: *** [libtecla.so.1.6.1] Error 1
>
>
>
>
>
> Regards,
>
> Bart Bogaerts
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> LTIB home page: http://ltib.org
>
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib