Subject: How to best add libnbcompat?
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
List: tech-pkg
Date: 08/29/2004 15:06:44
pkgsrc/comms/pilot-link (as an example) requires snprintf, which is not
available on IRIX 5.3, but which is provided by libnbcompat.
Linking in
pkgsrc/comms/pilot-link/work/pilot-link-0.11.7/src/pilot-datebook fails:
ld:
Unresolved:
snprintf

Manually adding -L/usr/local/pkg/lib -lnbcompat to the link command
solves this problem.
What would be the best way to have that added automatically?  


BTW, pkgsrc/comms/pilot-link uses strptime(), which does not exist on
IRIX 5.3. Judging from http://xinvest.sunsite.dk/ChangeLog.xinvest IRIX
6 does not suffer from that problem. Maybe other OSes do, though.
Therefore it might be a good idea to have that fuction in some
compatibility lib for pkgsrc. There seem to be some free implementations
available.

Georg
-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442