mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Linker error on ArchLinux
@ 2017-10-26 17:09 Clemens Gruber
  2017-10-27 12:39 ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Gruber @ 2017-10-26 17:09 UTC (permalink / raw)
  To: ptxdist

Hi,

when building PTXdist 2017.10.0 on current ArchLinux, a linker error occurs:
/usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
/usr/lib/libtinfo.so.6: error adding symbols: DSO missing from commandline

This occured after ArchLinux updated binutils to 2.29.1-1 and ncurses to
6.0+20170902-2.

I could work around it by adding -ltinfo to LDFLAGS in the PTXdist
Makefile.

Cheers,
Clemens

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Linker error on ArchLinux
  2017-10-26 17:09 [ptxdist] Linker error on ArchLinux Clemens Gruber
@ 2017-10-27 12:39 ` Michael Olbrich
  2017-10-30 21:11   ` Clemens Gruber
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2017-10-27 12:39 UTC (permalink / raw)
  To: ptxdist

Hi,

On Thu, Oct 26, 2017 at 07:09:23PM +0200, Clemens Gruber wrote:
> when building PTXdist 2017.10.0 on current ArchLinux, a linker error occurs:
> /usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
> /usr/lib/libtinfo.so.6: error adding symbols: DSO missing from commandline
> 
> This occured after ArchLinux updated binutils to 2.29.1-1 and ncurses to
> 6.0+20170902-2.

Strange. I have binutils 2.29.1-6 and ncurses 6.0+20170902-1 here on Debian
and it works just fine :-/. But:

$ cat /usr/lib/x86_64-linux-gnu/libncurses.so
INPUT(libncurses.so.5 -ltinfo)

I guess this is different for you...

> I could work around it by adding -ltinfo to LDFLAGS in the PTXdist
> Makefile.

We have some complex stuff in configure.ac to detect the curses library.
Maybe we should just require ncurses and use pkg-config.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Linker error on ArchLinux
  2017-10-27 12:39 ` Michael Olbrich
@ 2017-10-30 21:11   ` Clemens Gruber
  2017-11-01 11:07     ` Michael Olbrich
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Gruber @ 2017-10-30 21:11 UTC (permalink / raw)
  To: ptxdist

Hi,

On Fri, Oct 27, 2017 at 02:39:19PM +0200, Michael Olbrich wrote:
> Hi,
> 
> On Thu, Oct 26, 2017 at 07:09:23PM +0200, Clemens Gruber wrote:
> > when building PTXdist 2017.10.0 on current ArchLinux, a linker error occurs:
> > /usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
> > /usr/lib/libtinfo.so.6: error adding symbols: DSO missing from commandline
> > 
> > This occured after ArchLinux updated binutils to 2.29.1-1 and ncurses to
> > 6.0+20170902-2.
> 
> Strange. I have binutils 2.29.1-6 and ncurses 6.0+20170902-1 here on Debian
> and it works just fine :-/. But:
> 
> $ cat /usr/lib/x86_64-linux-gnu/libncurses.so
> INPUT(libncurses.so.5 -ltinfo)
> 
> I guess this is different for you...

Yes:
$ cat /usr/lib/libncurses.so
INPUT(-lncursesw)

> 
> > I could work around it by adding -ltinfo to LDFLAGS in the PTXdist
> > Makefile.
> 
> We have some complex stuff in configure.ac to detect the curses library.
> Maybe we should just require ncurses and use pkg-config.

Yes, pkg-config would have caught it:
$ pkg-config --libs ncurses
-lncursesw -ltinfo

I noticed in the meantime, that the package maintainer made a commit, which
fixes the problem too:
https://git.archlinux.org/svntogit/packages.git/commit/?h=packages/ncurses&id=987faeb8442d44e76a7a58642e8e6432eb220c25

Thanks,
Clemens

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Linker error on ArchLinux
  2017-10-30 21:11   ` Clemens Gruber
@ 2017-11-01 11:07     ` Michael Olbrich
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Olbrich @ 2017-11-01 11:07 UTC (permalink / raw)
  To: ptxdist

Hi,

On Mon, Oct 30, 2017 at 10:11:25PM +0100, Clemens Gruber wrote:
> On Fri, Oct 27, 2017 at 02:39:19PM +0200, Michael Olbrich wrote:
> > On Thu, Oct 26, 2017 at 07:09:23PM +0200, Clemens Gruber wrote:
> > > when building PTXdist 2017.10.0 on current ArchLinux, a linker error occurs:
> > > /usr/bin/ld: lxdialog/checklist.o: undefined reference to symbol 'acs_map'
> > > /usr/lib/libtinfo.so.6: error adding symbols: DSO missing from commandline
> > > 
> > > This occured after ArchLinux updated binutils to 2.29.1-1 and ncurses to
> > > 6.0+20170902-2.
> > 
> > Strange. I have binutils 2.29.1-6 and ncurses 6.0+20170902-1 here on Debian
> > and it works just fine :-/. But:
> > 
> > $ cat /usr/lib/x86_64-linux-gnu/libncurses.so
> > INPUT(libncurses.so.5 -ltinfo)
> > 
> > I guess this is different for you...
> 
> Yes:
> $ cat /usr/lib/libncurses.so
> INPUT(-lncursesw)
> 
> > 
> > > I could work around it by adding -ltinfo to LDFLAGS in the PTXdist
> > > Makefile.
> > 
> > We have some complex stuff in configure.ac to detect the curses library.
> > Maybe we should just require ncurses and use pkg-config.
> 
> Yes, pkg-config would have caught it:
> $ pkg-config --libs ncurses
> -lncursesw -ltinfo
> 
> I noticed in the meantime, that the package maintainer made a commit, which
> fixes the problem too:
> https://git.archlinux.org/svntogit/packages.git/commit/?h=packages/ncurses&id=987faeb8442d44e76a7a58642e8e6432eb220c25

Ok, so it's no longer urgent. I still think we don't need to support
anything other than ncurses here, so I'd be happy to take a patch that
cleans this up and uses pkg-config.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-01 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26 17:09 [ptxdist] Linker error on ArchLinux Clemens Gruber
2017-10-27 12:39 ` Michael Olbrich
2017-10-30 21:11   ` Clemens Gruber
2017-11-01 11:07     ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox