On 2012-06-17 09:45 +0200, Vladimir K wrote:
> 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.
Works for me, and for everyone else apparently.
> $ 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)
Please retry the compilation with "-Wl,--verbose" added, and show the
contents of all files under /etc/ld.so.conf.d/.
Regards,
Sven
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]