Subject: devel/smpeg build failed because libncurses.* isn't buildlinked
To: None <>
From: Sebastian Prause <>
List: tech-pkg
Date: 11/14/2003 15:42:16
i'm trying to install devel/smpeg. unfortuately it fails, because
it can't find

grep: /usr/pkgsrc/devel/smpeg/work/.buildlink/lib/ No such file or directory
sed: can't read /usr/pkgsrc/devel/smpeg/work/.buildlink/lib/ No such file or directory
libtool: link: `/usr/pkgsrc/devel/smpeg/work/.buildlink/lib/' is not a valid libtool archive
make[1]: *** [] Error 1
make[1]: Leaving directory `/usr/pkgsrc/devel/smpeg/work/smpeg-0.4.4/audio'
make: *** [all-recursive] Error 1
*** Error code 2

i thought that i just have to include devel/ncurses/, but it
didn't solve the problem. i guess i have some problems with the base systems 
ncurses (slackware linux), which don't have a libtool archive:

# locate libncurses

# ls -l work/.buildlink/lib/libncurses*
lrwxrwxrwx    1 root     root           23 Nov 14 15:19 work/.buildlink/lib/libncurses++.a -> /usr/lib/libncurses++.a
lrwxrwxrwx    1 root     root           21 Nov 14 15:19 work/.buildlink/lib/libncurses.a -> /usr/lib/libncurses.a
lrwxrwxrwx    1 root     root           22 Nov 14 15:19 work/.buildlink/lib/ -> /usr/lib/*

(now i am sure its my base systems ncurses fault)

maybe we can add some magic to buildlink to automatically generate libtool 
archives or to link against the version in pkgsrc (and install it if neccessary)
in such cases (or at least buildlink should abort the build immediately if it finds
libraries without a correspoding *.la file). i think that would be better than just
failing during the build.


(PS: my solution to this problem was to add devel/curses/ AND setting USE_NCURSES=yes)