Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-18 Thread Juergen Beisert
On Montag, 16. Februar 2009, Martin Hejnfelt wrote:
 Marc Kleine-Budde m...@... writes:
  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

Okay. Here we go:

 Ok, so the plot thickens... If I do a ptxdist clean, and then a ptxdist
 targetinstall util-linux the package compiles fine.

Please do it again (ptxdist clean; ptxdist prepare util-linux) and send us:
 - your ptxdist's logfile
 - the util-linux-2.13-pre7/config.log
 - the util-linux-2.13-pre7/config.h
 - the util-linux-2.13-pre7/text-utils/Makefile

Regards,
Juergen

-- 
Pengutronix e.K.  | Juergen Beisert |
Linux Solutions for Science and Industry  | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax:   +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de/  |

--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-18 Thread Juergen Beisert
Hi Martin,

On Montag, 16. Februar 2009, Martin Hejnfelt wrote:
 Marc Kleine-Budde m...@... writes:
  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

 Ok, so the plot thickens... If I do a ptxdist clean, and then a ptxdist
 targetinstall util-linux the package compiles fine. If I then clean do the
 ptxdist clean and then a ptxdist go it fails in this package with the
 error seen above. Now, if i choose one of the two options that specifically
 chooses ncurses, eg. setterm, it compiles correctly. So the question is why
 this is happening, when it compiles fine on another machine, without
 setterm enabled?

I guess now, it detects any kind of termcap by accident so its buildsystem 
decides to compile text-utils/more.c. Can you check with this patch applied 
on your ptxdist-trunk?

Index: rules/util-linux.make
===
--- rules/util-linux.make   (Revision 9792)
+++ rules/util-linux.make   (Arbeitskopie)
@@ -42,7 +42,8 @@
 #
 # autoconf
 #
-UTIL_LINUX_AUTOCONF := $(CROSS_AUTOCONF_USR)
+UTIL_LINUX_AUTOCONF := $(CROSS_AUTOCONF_USR) \
+   ac_cv_lib_termcap_tgetnum=no

 
# 
# Target-Install


Regards,
Juergen

-- 
Pengutronix e.K.  | Juergen Beisert |
Linux Solutions for Science and Industry  | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax:   +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de/  |

--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-13 Thread Martin Hejnfelt
Marc Kleine-Budde m...@... writes:
 it should! the config.log file of util-linux can help here. please send
 it to me in private, cause it tends to be quite big.
 
 cheers, Marc

I've sent you the log file. Thank you for your help :)

Kind regards,
Martin Hejnfelt



--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-13 Thread Marc Kleine-Budde
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


Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-12 Thread Marc Kleine-Budde
Martin Hejnfelt wrote:
 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... But, ncurses 
 is
 selected in menuconfig and is present in the sources directory
 (ncurses-5.6.tar.gz). So it should be able to use it?

it should! the config.log file of util-linux can help here. please send
it to me in private, cause it tends to be quite big.

cheers, 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


Re: [ptxdist] Problem compiling util-linux on another computer

2009-02-11 Thread Juergen Beisert
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

-- 
Pengutronix e.K.  | Juergen Beisert |
Linux Solutions for Science and Industry  | Phone: +49-8766-939 228 |
Vertretung Sued/Muenchen, Germany | Fax:   +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de/  |

--
ptxdist mailing list
ptxdist@pengutronix.de