bug-ncurses
[Top][All Lists]
Advanced

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

Re: Weird link issue


From: Thomas Dickey
Subject: Re: Weird link issue
Date: Fri, 4 Aug 2023 15:41:41 -0400

On Fri, Aug 04, 2023 at 12:38:06PM -0400, rsbecker@nexbridge.com wrote:
> I am trying to build ncurses on HPE NonStop. When configuring with or
> without -enable-widec, I get a link error on blue:
> 
> **** ERROR **** [1210]:
>    ../obj_s/blue.o: In function `printcard':
>    ../obj_s/blue.o(.text+0x5fe): unresolved reference to attron.
> **** ERROR **** [1210]:
>    ../obj_s/blue.o(.text+0x667): unresolved reference to attroff.
> 
> Is this a configuration or Makefile issue?

perhaps the former.

The makefile (unless something in the environment confuses it) would
have the -I and -L options first in the command-line, to persuade
the compiler and linker to use the in-tree sources/objects.

However, if you're configuring shared libraries, for some platforms
those options aren't enough.  I haven't done anything with HPE NonStop,
but recall some versions of HP-UX having shared libraries effectively
building into the library the install-directory's path (and ignoring
easy workarounds such as environment variables).

So... your build might be trying to link against the system's curses
library (which might have some different symbol such as "_attron").

> 
> Thanks,
> Randall
> 
> --
> Brief whoami: NonStop&UNIX developer since approximately
> UNIX(421664400)
> NonStop(211288444200000000)
> -- In real life, I talk too much.
> 
> 
> 

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]