Subject: Re: buildlink vs. real gcc ?!
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 03/04/2003 15:57:41
--Q8BnQc91gJZX4vDc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi,
On Tue, Mar 04, 2003 at 03:40:43PM +0100, Hubert Feyrer wrote:
>=20
> Trying to pkg something, I get a weird error with USE_BUILDLINK2 set:
>=20
> miyu% make
> =3D=3D=3D> Building for slurm-0.2.1
> gcc -g -O2 -D_HAVE_NCURSES -I/usr/pkg/include -DVERSION=3D'"0.2.1"' slur=
m.c
> -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lncurses -o slurm
> /var/tmp/ccHf9TWs.o: In function `chcolor':
> /usr/cvs/pkgsrc/net/slurm.work/work.i386/slurm-0.2.1/slurm.c:1231:
> undefined reference to `use_default_colors'
> collect2: ld returned 1 exit status
> *** Error code 1
>=20
> Doing the same thing manually, it works:
>=20
> miyu% cd work.i386/slurm-0.2.1/
> miyu% gcc -g -O2 -D_HAVE_NCURSES -I/usr/pkg/include -DVERSION=3D'"0.2.1"'
> slurm.c -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lncurses -o slurm
> miyu%
>=20
> The pkg Makefile uas USE_BUILDLINK2 set and pulls in the ncurses
> buildlink2.mk file. Knowing that buildlink2 uses some wrappers for gcc
> etc. (and that I do NOT want to look inside them), I wonder what's going
> on here. Shouldn't the same gcc command work in both cases? Seems
> confusing to me.
>=20
> FWIW, there is no libncurses* in the buildlink dir...
so it means that libcurses was used instead because it satisfied the
dependency (INCOMPAT_CURSES) in ncurses/buildlink2.mk.
use_default_colors() is mising in 1.6. see also archives for related
discussion about use_default_colors/use_default_color (tech-userlevel?).
you will need to check when use_default_colors() appeared in our curses
and set INCOMPAT_CURSES accordingly in the package's Makefile. (with a
comment that it's due use_default_colors()).
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <salo@silcnet.org> --
--Q8BnQc91gJZX4vDc
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)
iD8DBQE+ZL7liwjDDlS8cmMRAuobAJ0eK1bDAoj6C8lv4LC6yAy0pZR1PgCeIdn4
QJ64rJJAbwjmQAT0xC0sWnQ=
=LmQT
-----END PGP SIGNATURE-----
--Q8BnQc91gJZX4vDc--