help-bash
[Top][All Lists]
Advanced

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

Re: trying to solve some missing symbols during linking (porting to Plan


From: G. Branden Robinson
Subject: Re: trying to solve some missing symbols during linking (porting to Plan9)
Date: Thu, 10 Oct 2024 08:50:33 -0500

Hi Jens,

At 2024-10-10T11:38:05+0200, Jens Staal wrote:
> Dear all,
> 
> I am currently trying to compile Bash on Plan9 (9front) using APExp (a
> GNU/posix compatibility environment). I have all the bash object files
> and libraries compiled and I only get one weird issue during linking:
> 
> chdir: BC: not defined
> chdir: PC: not defined
> chdir: UP: not defined

These are termcap library symbols.  If you have ncurses installed, the
command "man BC" brings up their documentation.

Bash's source distribution ships with a copy of GNU termcap (which
hasn't been maintained in many years, as far as I know), but as I
understand Bash's build process, it isn't used unless a termcap library
cannot be found on the system.  You may need to consult the output of
"./configure".

> grepping the libraries shows that chdir is in libbuiltins.a and that
> should correspond to builtins/cd.def
> 
> When I look in that file I do not see any references to BC, PC or UP
> and I can not find anything obvious that would pull in those?

These symbols correspond to pretty low-level aspects of termcap's
interface relating to the terminal driver.  My guess would be that your
build is halting early, and not attempting to link a lot of other things
that would fail with the same problem.

Just my few shots in the dark.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

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