Subject: buildlink vs. real gcc ?!
To: None <tech-pkg@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 03/04/2003 15:40:43
Trying to pkg something, I get a weird error with USE_BUILDLINK2 set:
miyu% make
===> Building for slurm-0.2.1
gcc -g -O2 -D_HAVE_NCURSES -I/usr/pkg/include -DVERSION='"0.2.1"' slurm.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
Doing the same thing manually, it works:
miyu% cd work.i386/slurm-0.2.1/
miyu% gcc -g -O2 -D_HAVE_NCURSES -I/usr/pkg/include -DVERSION='"0.2.1"'
slurm.c -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lncurses -o slurm
miyu%
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.
FWIW, there is no libncurses* in the buildlink dir...
- Hubert
--
Want to get a clue on IPv6 but don't know where to start? Try this:
* Basics -> http://www.onlamp.com/pub/a/onlamp/2001/05/24/ipv6_tutorial.html
* Setup -> http://www.onlamp.com/pub/a/onlamp/2001/06/01/ipv6_tutorial.html
Of course with your #1 IPv6 ready operating system -> http://www.NetBSD.org/