mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: j.herbert@mikrolab.com
Cc: ptxdist@pengutronix.de
Subject: Re: [ptxdist] curses Fehler
Date: Thu, 6 Aug 2020 11:26:28 +0200	[thread overview]
Message-ID: <20200806092628.qduxsvkzwkuotz35@pengutronix.de> (raw)
In-Reply-To: <001001d66b50$490f6630$db2e3290$@mikrolab.com>

Hi j.herbert,

welcome to our English-speaking mailing list :-)

First: PTXdist 2016.04.0 is already a bit outdated, especially when you
try to build it on a shiny new Gentoo system. If you're not constrained
to exactly this version, you might be better off using a more recent
PTXdist version, and migrating your project to it.

ncurses is only needed for the kconfig system underneath PTXdist, and
there were multiple commits in PTXdist where kconfig was updated to a
newer version, which might solve your problem. So you might try to
backport the patches to your PTXdist version, which are, in order:

commit 5b6a5d0e4bf7f5ae494b (2016-05-11, Michael Olbrich: "kconfig: update to latest version")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=5b6a5d0e4bf7f5ae494b

commit 25f0c6af23e336b05454 (2017-03-17, Michael Olbrich: "kconfig: update to v4.11-rc2")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=25f0c6af23e336b05454

commit b8949549ff98b54cd390 (2017-11-06, Clemens Gruber: "ptxdist: Use pkg-config for ncurses detection")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=b8949549ff98b54cd390
(this might be the most interesting one.)

commit a49969a3cc4854e3c172 (2018-07-02, Michael Olbrich: "improve dependency handling")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=a49969a3cc4854e3c172

commit 1f6dbd39446b97f0188b (2018-12-12, Denis OSTERLAND: "kconfig: fix warnings on format")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=1f6dbd39446b97f0188b

commit 514dc2d160b72b9d1e4a (2019-05-10, Michael Olbrich: "kconfig: update to v5.1")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=514dc2d160b72b9d1e4a

Cheers,

 - Roland

On Wed, Aug 05, 2020 at 07:46:02PM +0200, j.herbert@mikrolab.com wrote:
> Sehr geehrte Damen und Herren,
> 
>  
> 
> ich versuchte vorhin ptxdist auf meiner frischen gentoo-Installation zu
> kompilieren und habe Probleme mit der Bibliothek curses, so wie es scheint.
> Am Ende von ./configure steht Ihre E-Mail-Adresse, weswegen ich mich an Sie
> wende.
> 
> Um dem Problem Herr zu werden, habe ich ins Makefile das Compilerflag
> -ltinfo aufgenommen. So konnte make weitere 2 Objektdateien erzeugen. Sie
> können dies nachvollziehen anhand des Logs der bash.
> 
> Ich frage mich nun, wie wir das Problem lösen können. Ein deutlich
> erfahrenerer gentoo-Nutzer aus dem freenode-IRC vermutet, dass das -ltinfo
> flag noch an einer weiteren Stelle fehlt. Stimmt das?
> 
> Über Ihre Hilfe freue ich mich sehr, vielen Dank dafür im Voraus!
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ ./configure
> 
> checking build system type... x86_64-unknown-linux-gnu
> 
> checking host system type... x86_64-unknown-linux-gnu
> 
> checking for ptxdist patches... yes
> 
> checking for gcc... gcc
> 
> checking whether the C compiler works... yes
> 
> checking for C compiler default output file name... a.out
> 
> checking for suffix of executables...
> 
> checking whether we are cross compiling... no
> 
> 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 ISO C89... none needed
> 
> checking for g++... g++
> 
> checking whether we are using the GNU C++ compiler... yes
> 
> checking whether g++ accepts -g... yes
> 
> checking how to run the C preprocessor... gcc -E
> 
> checking for grep that handles long lines and -e... /bin/grep
> 
> checking for egrep... /bin/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 regex.h usability... yes
> 
> checking regex.h presence... yes
> 
> checking for regex.h... yes
> 
> checking for library containing regcomp... none required
> 
> checking for library containing mvaddch... -lcurses
> 
> checking curses.h usability... yes
> 
> checking curses.h presence... yes
> 
> checking for curses.h... yes
> 
> checking menu.h usability... yes
> 
> checking menu.h presence... yes
> 
> checking for menu.h... yes
> 
> checking whether #! works in shell scripts... yes
> 
> checking for bash... /bin/bash
> 
> checking for gsed... no
> 
> checking for sed... /bin/sed
> 
> checking sed version... 4.8
> 
> checking for GNU cat... /bin/cat
> 
> checking for GNU chmod... /bin/chmod
> 
> checking for GNU chown... /bin/chown
> 
> checking for GNU cp... /bin/cp
> 
> checking for GNU dirname... /usr/bin/dirname
> 
> checking for GNU install... /usr/bin/install
> 
> checking for GNU ln... /bin/ln
> 
> checking for GNU md5sum... /usr/bin/md5sum
> 
> checking for GNU mkdir... /bin/mkdir
> 
> checking for GNU mknod... /bin/mknod
> 
> checking for GNU mktemp... /usr/bin/mktemp
> 
> checking for GNU mv... /bin/mv
> 
> checking for GNU readlink... /usr/bin/readlink
> 
> checking for GNU rm... /bin/rm
> 
> checking for GNU rmdir... /bin/rmdir
> 
> checking for GNU sort... /usr/bin/sort
> 
> checking for GNU stat... /usr/bin/stat
> 
> checking for GNU touch... /usr/bin/touch
> 
> checking for GNU tty... /usr/bin/tty
> 
> checking for GNU tar... /bin/tar
> 
> checking for GNU find... /usr/bin/find
> 
> checking for GNU xargs... /usr/bin/xargs
> 
> checking for egrep... (cached) /bin/grep -E
> 
> checking for gawk... gawk
> 
> checking for gawk... /usr/bin/gawk
> 
> checking awk version... 5.0.1, API: 2.0
> 
> checking for sysctl... /usr/sbin/sysctl
> 
> checking for flex... flex
> 
> checking lex output file root... lex.yy
> 
> checking lex library... -lfl
> 
> checking whether yytext is a pointer... yes
> 
> checking for flex... /usr/bin/flex
> 
> checking for bison... bison -y
> 
> checking for bison... /usr/bin/bison
> 
> checking whether yacc is bison++... no, this is good
> 
> checking yacc/bison version... 3.1
> 
> checking for makeinfo... /usr/bin/makeinfo
> 
> checking for bunzip2... /bin/bunzip2
> 
> checking for gunzip... /bin/gunzip
> 
> checking for gunzip... /bin/gunzip
> 
> checking for wget... /usr/bin/wget
> 
> checking find version... 4.7.0
> 
> checking for gmake... /usr/bin/gmake
> 
> ./configure: line 5596: test: 4.2: integer expression expected
> 
> checking for file... /usr/bin/file
> 
> checking for msgfmt... /usr/bin/msgfmt
> 
> checking for sphinx-build... no
> 
> configure: sphinx not found, required to build the documentation
> 
> checking for rst2man... no
> 
> checking for python2... /usr/bin/python2
> 
> checking Python version... 2.7.18
> 
> checking whether /usr/bin/python2 finds distutils... yes
> 
> checking whether Python development files are present... yes
> 
> checking for patch... /usr/bin/patch
> 
> checking whether /usr/bin/patch will work... yes
> 
>  
> 
> configure: creating ./config.status
> 
> config.status: creating Makefile
> 
>  
> 
> ptxdist version 2016.04.0 configured.
> 
> Using '/usr/local' for installation prefix.
> 
>  
> 
> Report bugs to ptxdist@pengutronix.de
> 
>  
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ make
> 
> building conf and mconf ...
> 
> make[1]: Entering directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make[1]: 'conf' is up to date.
> 
> gcc mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o
> lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o  -o
> mconf -lcurses
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: lxdialog/util.o: undefined reference to symbol 'nodelay'
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
> 
> collect2: error: ld returned 1 exit status
> 
> make[1]: *** [Makefile:58: mconf] Error 1
> 
> make[1]: Leaving directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make: *** [Makefile:29: kconfig] Error 2
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ vim Makefile
> 
> 
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ make
> 
> building conf and mconf ...
> 
> make[1]: Entering directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make[1]: 'conf' is up to date.
> 
> gcc mconf.o zconf.tab.o lxdialog/checklist.o lxdialog/inputbox.o
> lxdialog/menubox.o lxdialog/textbox.o lxdialog/util.o lxdialog/yesno.o  -o
> mconf -ltinfo -lcurses
> 
> gcc -g -O2  -DCURSES_LOC="<curses.h>" -DKBUILD_NO_NLS -DPACKAGE='"ptxdist"'
> -DCONFIG_='"PTXCONF_"' -c nconf.c -o nconf.o
> 
> gcc -g -O2  -DCURSES_LOC="<curses.h>" -DKBUILD_NO_NLS -DPACKAGE='"ptxdist"'
> -DCONFIG_='"PTXCONF_"' -c nconf.gui.c -o nconf.gui.o
> 
> gcc nconf.o zconf.tab.o nconf.gui.o  -o nconf -lncurses -lmenu -lpanel
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: nconf.o: undefined reference to symbol 'curs_set'
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
> 
> collect2: error: ld returned 1 exit status
> 
> make[1]: *** [Makefile:61: nconf] Error 1
> 
> make[1]: Leaving directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make: *** [Makefile:29: kconfig] Error 2
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ vim Makefile
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $ make
> 
> building conf and mconf ...
> 
> make[1]: Entering directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make[1]: 'conf' is up to date.
> 
> make[1]: 'mconf' is up to date.
> 
> gcc nconf.o zconf.tab.o nconf.gui.o  -o nconf -lncurses -lmenu -lpanel
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: nconf.o: undefined reference to symbol 'curs_set'
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/l
> d: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
> 
> collect2: error: ld returned 1 exit status
> 
> make[1]: *** [Makefile:61: nconf] Error 1
> 
> make[1]: Leaving directory '/home/j/ptxdist-2016.04.0/scripts/kconfig'
> 
> make: *** [Makefile:29: kconfig] Error 2
> 
> j@gentoo64 ~/ptxdist-2016.04.0 $
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> Mit freundlichen Grüßen
> 
> 
>  
> 
> 
> Jens Herbert
> 
> 
> Entwicklung
> 
> 
>  
> 
> 
> 
> Telefon
> 
> +49 911 37704 179
> 
> 
> Fax
> 
> +49 911 37704 150
> 
> 		
> 		
> 
> E-Mail
> 
>  <mailto:j.herbert@mikrolab.com> j.herbert@mikrolab.com
> 
> 
> Internet
> 
>  <http://www.mikrolab.com> www.mikrolab.com
> 
> 
>  
> 
> 
> 
> 
> 
>  
> 
> 
> mikrolab ENTWICKLUNGSGESELLSCHAFT FÜR ELEKTRONIKSYSTEME mbH
> Dieter-Streng-Str. 1 - 90766 Fürth - Germany
> Sitz: Fürth HRB 8192 - Ust.(VAT) IdNr. DE133529384
> Geschäftsführer: Dr. Christian Kägeler, Dr. Julia Koehl 
> 
> 
>  
> 
> 
> Die Informationspflicht gem. DS-GVO finden Sie unter: 
> 
> 
>  <http://www.mikrolab.com/home/unternehmen/datenschutzhinweise.html>
> www.mikrolab.com/home/unternehmen/datenschutzhinweise.html
> 
> 
>  
> 
> 
>  <http://www.mikrolab.com/public/vertraulichkeit.html>
> Vertraulichkeitshinweis / Confidentiality note 
> 
>  
> 




> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


-- 
Roland Hieber, Pengutronix e.K.          | r.hieber@pengutronix.de     |
Steuerwalder Str. 21                     | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686         | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

      reply	other threads:[~2020-08-06  9:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-05 17:46 j.herbert
2020-08-06  9:26 ` Roland Hieber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200806092628.qduxsvkzwkuotz35@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=j.herbert@mikrolab.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox