pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cmake needs -ltinfo on Linux



On Wed, 10 Jun 2020, nia wrote:

Date: Wed, 10 Jun 2020 17:22:19 +0000
From: nia <nia%NetBSD.org@localhost>
To: adr <adr%SDF.ORG@localhost>
Cc: pkgsrc-users%NetBSD.org@localhost
Subject: Re: cmake needs -ltinfo on Linux

On Wed, Jun 10, 2020 at 11:13:58AM +0000, adr wrote:
Hello,

cmake needs

LDFLAGS.Linux+=         -ltinfo

/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.3.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: CMakeFiles/ccmake.dir/ccmake.cxx.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/9.3.0/../../../../armv7a-unknown-linux-gnueabihf/bin/ld: /lib/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

P.S. I'm using the mailing list because these errors are trivial, but if you want I will use the PR system.

Regards,
adr.

This isn't really trivial, it's worth investigating why the library
is not being added in the first place rather than hacking around it.


Hi nia,

that was a hint, not a solution (is not a patch...). I think that
you need to add code to detect tinfo on systems with split ncurses.
Maybe here?:  mk/curses.builtin.mk

I suppose the buildlink3 framework is not showing tinfo to cmake's
configuration process .

If that's the case you (the developers) need to have a conversation
on the best way to approach the problem (just test for the existence
of the lib and add it?).

Regards,
adr.


Home | Main Index | Thread Index | Old Index