Subject: buildlink vs. real gcc ?!
To: None <>
From: Hubert Feyrer <>
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':
	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

The pkg Makefile uas USE_BUILDLINK2 set and pulls in the ncurses 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 ->
* Setup  ->
Of course with your #1 IPv6 ready operating system ->