Your message dated Fri, 05 Jan 2024 18:56:43 +0100
with message-id <875y07ll44....@turtle.gmx.de>
and subject line Re: Bug#677836: ld: cannot find libncurses.so.5
has caused the Debian Bug report #677836,
regarding ld: cannot find libncurses.so.5
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
677836: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677836
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libncurses5-dev
Version: 5.9-8
Severity: serious
Justification: fails to build from source (but built successfully in the past)

Since upgrade from squeeze to wheezy few days ago, "ld" reports that 
libncurses.so.5 not found.

$ gcc -o foo foo.c -lncurses
/usr/local/bin/ld: cannot find libncurses.so.5
collect2: error: ld returned 1 exit status


$ cat foo.c
char tgetent ();
int main ()
{
return tgetent ();
  ;
  return 0;
}

# ld --version
GNU ld (GNU Binutils) 2.22



It seems that issue is in /usr/lib/x86_64-linux-gnu/libncurses.so:

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


Changing this to full path fixes problem:

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




-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.1-vlad-bdver1-05 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libncurses5-dev depends on:
ii  libc6-dev [libc-dev]  2.13-33
ii  libncurses5           5.9-8
ii  libtinfo-dev          5.9-8
ii  libtinfo5             5.9-8
ii  ncurses-bin           5.9-8

libncurses5-dev recommends no packages.

Versions of packages libncurses5-dev suggests:
pn  ncurses-doc  <none>

-- no debconf information



--- End Message ---
--- Begin Message ---
Package: ncurses
Version: 6.4+20231118-1

On 2012-06-19 23:30 -0500, Vladimir K wrote:

> Thanks, I am running upstream GCC 4.7.1 and it appears to be caused
> from it; compiled no problem under 4.4 (Debian). It seems following
> can be used as a work-around instead of modifying libncurses.so file:
>
> LIBRARY_PATH=/lib/x86_64-linux-gnu
> export LIBRARY_PATH

In ncurses version 6.4+20231118-1, all libraries were moved below /usr.
So if your linker finds libncurses.so, it should also find
libncurses.so.6 in the same directory.

Cheers,
       Sven

--- End Message ---

Reply via email to