Juergen Beisert wrote:
Martin,
On Donnerstag, 12. Februar 2009, Martin Hejnfelt wrote:
Juergen Beisert j...@... writes:
Bo,
On Mittwoch, 11. Februar 2009, Bo Hansen wrote:
I have a strange problem with a ptx project using 1.99-trunk. On my
machine it works fine, but when I copy the project to another computer
I get an error when util-linux is compiled in the final stages.
I have tried ptxdist target install util-linx first and then ptxdist
go. In this way the error does not occur, but from what I can see the
target system is missing a lot of library files and it stops when
booting missing libdl.so.2.
Did you copy the toolchain? Or using some kind of archives for the
transfer? Copying removes many links and replace them by the real file.
And thats why the targetinstall-stage for the glibc will forget many
required files.
Refer the FAQ at
http://www.pengutronix.de/software/ptxdist/ptxdist_faq_en.html -- Q: To
avoid building the OSELAS toolchain on each development host,...
I'm using the same toolchain on both machines, both
Ubuntu. According to the FAQ I have changed /bin/sh to link to bash
also, but it did not solve the problem.
Any ideas?
Best regards,
Bo Hansen
I have pasted the error messege below:
[...]
more.c:174:51: error: term.h: No such file or directory
more.c: In function 'my_putstring':
more.c:178: warning: implicit declaration of function 'tputs'
more.c: In function 'my_setupterm':
more.c:183: warning: implicit declaration of function 'setupterm'
more.c: In function 'my_tgetnum':
more.c:188: warning: implicit declaration of function 'tigetnum'
more.c: In function 'my_tgetflag':
more.c:193: warning: implicit declaration of function 'tigetflag'
more.c: In function 'my_tgetstr':
more.c:198: warning: implicit declaration of function 'tigetstr'
more.c:198: warning: return makes pointer from integer without a cast
more.c: In function 'my_tgoto':
more.c:203: warning: implicit declaration of function 'tparm'
more.c:203: warning: return makes pointer from integer without a cast
Sounds like the util-linux searches for the ncurses library. Can you send
the output of the prepare-stage of util-linux?
Regards,
Juergen
I guess the output you want to see is this:
...
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
...
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking ncurses/ncurses.h usability... no
checking ncurses/ncurses.h presence... no
checking for ncurses/ncurses.h... no
configure: you do not have ncurses
checking for crc32 in -lz... yes
...
So it gives that it wont compile since it can't find ncurses...
From your fist mail:
more.c:174:51: error: term.h: No such file or directory
more.c: In function 'my_putstring':
more.c:178: warning: implicit declaration of function 'tputs'
more.c: In function 'my_setupterm':
more.c:183: warning: implicit declaration of function 'setupterm'
In this case on my host util-linux's build system decide to *not*
compile more.c. On your host it decide to build more.c even if ncurses is
not available. Strange.
But as Marc stated: Send him your logfile.
But, ncurses is selected in menuconfig and is present in the sources
directory (ncurses-5.6.tar.gz).
Yes, but not already built when ptxdist is going to build util-linux.
Regards,
Juergen
When we look at rules/util-linux.in, we see that NCURSES is not always
enabled, perhaps we should enable ncurses unconditionally, or least for
more.
menuconfig UTIL_LINUX
tristate
prompt util-linux
select NCURSES if UTIL_LINUX_CFDISK
select NCURSES if UTIL_LINUX_SETTERM
regarding you logfile, ncurses.h isn't found.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
--
ptxdist mailing list
ptxdist@pengutronix.de