Subject: Re: documentation for CHECK_BUILTIN and builtin.mk?
To: Jeremy C. Reed <reed@reedmedia.net>
From: Min Sik Kim <minskim@NetBSD.org>
List: tech-pkg
Date: 03/21/2004 14:37:06
--Signature=_Sun__21_Mar_2004_14_37_06_-0600_3SgWf03AQZ5POasm
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

* Jeremy C. Reed:
> On Fri, 19 Mar 2004, Jeremy C. Reed wrote:
> 
> > So with gettext (another example) it will never use the native version.
> >
> > I had to force CHECK_BUILTIN.gettext=yes in my /etc/mk.conf.
> 
> Or maybe it is because it assumes that a native system needs
> /usr/lib/libintl.*.
> 
> Some systems have that built into libc. (Same with iconv.)
> 
> The following appears to work. Can anyone look at this?

I tested your patch on Linux and it works well.  Thanks!

Without the patch, devel/popt doesn't build on Linux because some
functions are defined both in gettext-lib and in the native libc.

gcc -Wall -O2 -I/var/local/minskim/pkgsrc/devel/popt/work/.buildlink/include -Wl,-R/var/local/minskim/pkg/lib -o test1 -static test1.o  ./.libs/libpopt.a -L/var/local/minskim/pkgsrc/devel/popt/work/.buildlink/lib /var/local/minskim/pkgsrc/devel/popt/work/.buildlink/lib/libintl.a -lc
/usr/lib/libc.a(dcigettext.o): In function `_nl_find_msg':
dcigettext.o(.text+0x564): multiple definition of `_nl_find_msg'
/var/local/minskim/pkgsrc/devel/popt/work/.buildlink/lib/libintl.a(dcigettext.o)(.text+0x780): first defined here
/lusr/gnu/lib/gcc-lib/i686-pc-linux-gnu/3.0.3/../../../../i686-pc-linux-gnu/bin/ld: Warning: size of symbol `_nl_find_msg' changed from 1429 to 1210 in /usr/lib/libc.a(dcigettext.o)
collect2: ld returned 1 exit status

-- 
Min Sik Kim

--Signature=_Sun__21_Mar_2004_14_37_06_-0600_3SgWf03AQZ5POasm
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iQEVAwUBQF388vQsKR/Zi7L+AQL3Ogf/ekbzIOv6tsW0Px4JB9kJoYxCYsTbbtjo
JLf22tBGpNZyzdlKZ3lrcB03IdNFvhEi6BLnTc3pFuh6NImahXP7W46fI737bZaG
PKBkCGWp+Xd6MZ64w8ahNBnGUwSobbxpdwQ0IOOl10PT/kjxhasAYHNodtBSYV8W
KLl33T3By7MTcnnIvBk9sTJ4+W+WUjy+fZnAgaxEiPT+atuG8m4bNZl0Eb8L16+a
6tKIigPdmzYeRrM0jAQZFVxwYVP72whBf9JR+2xYaTu7y5S6+qLNsAYeTgxd2JmA
kC+P2tRhqG2k8BzHqCWrlPE40hK+c9XFz4WvJTCKRp5FYxq0LQfVNw==
=h9iy
-----END PGP SIGNATURE-----

--Signature=_Sun__21_Mar_2004_14_37_06_-0600_3SgWf03AQZ5POasm--