NetBSD Problem Report #9952
Received: (qmail 23745 invoked from network); 22 Apr 2000 01:06:48 -0000
Message-Id: <200004220106.SAA29697@kaben.frye.com>
Date: Fri, 21 Apr 2000 18:06:16 -0700 (PDT)
From: aaron@frye.com
Reply-To: aaron@frye.com
To: gnats-bugs@gnats.netbsd.org
Subject: textproc/glimpse fails compile out of pkgsrc
X-Send-Pr-Version: 3.95
>Number: 9952
>Category: pkg
>Synopsis: textproc/glimpse fails compile out of pkgsrc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 22 01:07:00 +0000 2000
>Closed-Date: Tue Aug 08 17:00:07 +0000 2000
>Last-Modified: Tue Aug 08 17:01:00 +0000 2000
>Originator:
>Release: <NetBSD-current source date> approximately Sat Apr 22 01:00:54 UTC 2000
>Organization:
Frye Electronics, Tigard, OR
>Environment:
System: NetBSD kaben 1.4.2 NetBSD 1.4.2 (kaben) #0: Mon Mar 20 18:33:35 PST 2000 root@kaben:/usr/src/sys/arch/i386/compile/kaben i386
>Description:
building for glimpse uses an internal library called "libutil" which is linked
in via -lutil... but of course the system library paths come first, so the
linking fails.
>How-To-Repeat:
cd $PKGSRCHOME/textproc/glimpse && make
>Fix:
either change the library name of glimpse's internal libutil, or modify the
link script to link in the explicit library. (Or maybe fix ld so it handles
this situation?)
>Release-Note:
>Audit-Trail:
From: woods@weird.com (Greg A. Woods)
To: aaron@frye.com
Cc: gnats-bugs@gnats.netbsd.org (NetBSD GNATS submissions and followups),
netbsd-bugs@NetBSD.ORG (NetBSD Bugs and PR posting List)
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Sun, 23 Apr 2000 22:35:51 -0400 (EDT)
[ On Friday, April 21, 2000 at 18:06:16 (-0700), aaron@frye.com wrote: ]
> Subject: pkg/9952: textproc/glimpse fails compile out of pkgsrc
>
> >Fix:
> either change the library name of glimpse's internal libutil, or modify the
> link script to link in the explicit library. (Or maybe fix ld so it handles
> this situation?)
I've been slowly testing a change that removes non-X11-related '-L'
options from the environment that pkgsrc/mk/bsd.pkg.mk, and so far
things are working a *lot* better with packages like glimpse, and even
with packages that use internal libraries that might have same-named
libraries installed by other packages.
Package authors should not be faulted for using '-L' and '-l' to find
their own internal libraries. This is extremely common and quite
portable too.
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>
From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: aaron@frye.com
Cc: lamj@stat.cmu.edu, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Thu, 27 Jul 2000 12:46:30 -0400
Hi,
You mentioned that there was a problem with the internal
library libutil.a not getting linked into some of the programs. I
tried duplicating your problem using today's pkgsrc and
NetBSD-20000723/i386, but it compiled just fine. Could you capture
the output of a "make" in textproc/glimpse and send it as a reply to
this email? I'd like to see exactly where it breaks.
Thanks,
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/
From: "Aaron J. Grier" <aaron@frye.com>
To: "Johnny C. Lam" <lamj@stat.cmu.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Tue, 1 Aug 2000 20:01:54 -0700
[quote deleted since it's in the gnats log]
I'm running 1.4.2 (soon 1.4.3, with a little luck). Tried again today
with current pkgsrc (as of 20000801)...
I've found this same problem with cad/spice as well. the problem, in a
nutshell, is that any time an internal {library,include file} conflicts
with a system {library,include file}, the system {library,include file}
wins.
some info:
$ gcc -v
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ ls -l /usr/lib/libutil.a
-r--r--r-- 1 root wheel 18086 Mar 3 08:20 /usr/lib/libutil.a
$ ls -l /usr/include/util.h
-r--r--r-- 1 root wheel 3468 Mar 3 08:13 /usr/include/util.h
here's the output of the make process:
===> Validating dependencies for glimpse-4.1
=> Checksum OK for glimpse-4.1.src.tar.gz.
===> Extracting for glimpse-4.1
===> glimpse-4.1 depends on executable: gmake - /usr/bin/gmake found
===> Patching for glimpse-4.1
===> Applying NetBSD patches for glimpse-4.1
===> Configuring for glimpse-4.1
/bin/chmod ugo+x /usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/configure
creating cache ./config.cache
checking for gcc... cc
checking whether we are using GNU C... yes
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel
checking for dirent.h that defines DIR... yes
checking for -ldir... no
checking how to run the C preprocessor... cc -E
checking for sys/select.h... yes
checking for -lnsl... no
checking for -lsocket... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating index/Makefile
creating compress/Makefile
creating agrep/Makefile
creating libtemplate/Makefile
creating libtemplate/util/Makefile
creating libtemplate/template/Makefile
creating libtemplate/include/autoconf.h
/bin/cp -f /usr/projects/NetBSD/pkgsrc/textproc/glimpse/files/autoconf.h /usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate/include/autoconf.h
===> Building for glimpse-4.1
cd compress; gmake
gmake[1]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/compress'
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include hash.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include string.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include misc.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include quick.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include cast.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include uncast.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include tsimpletest.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include tmemlook.c
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include tbuild.c
ar rcv libcast.a hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
a - hash.o
a - string.o
a - misc.o
a - quick.o
a - cast.o
a - uncast.o
a - tsimpletest.o
a - tmemlook.o
a - tbuild.o
ranlib libcast.a
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include main_tbuild.c
cc -o tbuild hash.o string.o misc.o tbuild.o main_tbuild.o
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include main_cast.c
cc -o cast main_cast.o hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include main_uncast.c
cc -o uncast main_uncast.o hash.o string.o misc.o quick.o cast.o uncast.o tsimpletest.o tmemlook.o tbuild.o
cc -c -pipe -O -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../index -I./../agrep -I./../libtemplate/include test.c
cc -o test hash.o string.o misc.o test.o quick.o tsimpletest.o tmemlook.o cast.o uncast.o
test.o: warning: reference to compatibility lstat(); include <sys/stat.h> to generate correct reference
test.o: warning: reference to compatibility stat(); include <sys/stat.h> to generate correct reference
gmake[1]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/compress'
cd agrep ; gmake
gmake[1]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/agrep'
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 follow.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 asearch.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 asearch1.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 agrep.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 bitap.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 checkfile.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 compat.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 maskgen.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 parse.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 checksg.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 preprocess.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 delim.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 asplit.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 recursive.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 sgrep.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 newmgrep.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 utilities.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 dummyfilters.c
cc -c -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 main.c
cc -pipe -O -DDOTCOMPRESSED=0 -I./../libtemplate/include -o agrep follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o main.o
ar rcv libagrep.a follow.o asearch.o asearch1.o agrep.o bitap.o checkfile.o compat.o maskgen.o parse.o checksg.o preprocess.o delim.o asplit.o recursive.o sgrep.o newmgrep.o utilities.o dummyfilters.o
a - follow.o
a - asearch.o
a - asearch1.o
a - agrep.o
a - bitap.o
a - checkfile.o
a - compat.o
a - maskgen.o
a - parse.o
a - checksg.o
a - preprocess.o
a - delim.o
a - asplit.o
a - recursive.o
a - sgrep.o
a - newmgrep.o
a - utilities.o
a - dummyfilters.o
ranlib libagrep.a
gmake[1]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/agrep'
cd libtemplate ; gmake
gmake[1]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate'
Making all in util
gmake[2]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate/util'
cc -c -O -I./../include buffer.c
cc -c -O -I./../include host.c
cc -c -O -I./../include log.c
cc -c -O -I./../include strdup.c
cc -c -O -I./../include system.c
cc -c -O -I./../include strerror.c
cc -c -O -I./../include string.c
cc -c -O -I./../include xmalloc.c
ar r libutil.a buffer.o host.o log.o strdup.o system.o strerror.o string.o xmalloc.o
ranlib libutil.a
gmake[2]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate/util'
Making all in template
gmake[2]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate/template'
cc -c -O -I./../include template.c
ar r libtemplate.a template.o
ranlib libtemplate.a
gmake[2]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate/template'
gmake[1]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/libtemplate'
cd index ; gmake
gmake[1]: Entering directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/index'
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include -DBUILDCAST=1 -o buildcast.o ./glimpse.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include region.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include dir.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include io.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include build_in.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include filetype.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include simpletest.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include getword.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include memlook.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include lib.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include partition.c
cc -pipe -O -DSTRUCTURED_QUERIES=1 -L../agrep -L../libtemplate/template -L../libtemplate/util -L../compress -o buildcast buildcast.o region.o dir.o io.o build_in.o filetype.o simpletest.o getword.o memlook.o lib.o partition.o -lagrep -ltemplate -lutil
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include -DBUILDCAST=0 ./glimpse.c
cc -pipe -O -DSTRUCTURED_QUERIES=1 -L../agrep -L../libtemplate/template -L../libtemplate/util -L../compress -o glimpseindex glimpse.o region.o dir.o io.o build_in.o filetype.o simpletest.o getword.o memlook.o lib.o partition.o -lagrep -ltemplate -lutil
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./../agrep -I./../libtemplate/include convert.c
cc -pipe -O -DSTRUCTURED_QUERIES=1 -L../agrep -L../libtemplate/template -L../libtemplate/util -L../compress -o wgconvert convert.o io.o simpletest.o filetype.o region.o memlook.o getword.o -lagrep -ltemplate -lutil
gmake[1]: Leaving directory `/usr/projects/NetBSD/pkgsrc/textproc/glimpse/work/glimpse-4.1/index'
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./index -I./agrep -I./libtemplate/include -DISSERVER=0 -o main.o ./main.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./index -I./agrep -I./libtemplate/include get_filename.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./index -I./agrep -I./libtemplate/include get_index.c
cc -c -pipe -O -DSTRUCTURED_QUERIES=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_SELECT_H=1 -DSTRUCTURED_QUERIES=1 -DAGREP_POINTER=1 -I./index -I./agrep -I./libtemplate/include split.c
cc -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -I./index -I./agrep -I./libtemplate/include -Lagrep -Lcompress -Llibtemplate/template -Llibtemplate/util -o glimpse main.o get_filename.o get_index.o split.o index/region.o index/getword.o index/build_in.o index/filetype.o index/simpletest.o index/memlook.o index/lib.o index/io.o -lagrep -ltemplate -lutil
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: Undefined symbol `_xfree' referenced from text segment
template.o: More undefined symbol _xfree refs follow
template.o: Undefined symbol `_create_buffer' referenced from text segment
template.o: Undefined symbol `_add_buffer' referenced from text segment
template.o: Undefined symbol `_increase_buffer' referenced from text segment
template.o: Undefined symbol `_free_buffer' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
template.o: Undefined symbol `_xmalloc' referenced from text segment
collect2: ld returned 1 exit status
gmake: *** [glimpse] Error 1
*** Error code 2
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: "Aaron J. Grier" <aaron@frye.com>
Cc: "Johnny C. Lam" <lamj@stat.cmu.edu>, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Thu, 03 Aug 2000 18:38:19 -0400
I see that your problem arises from your LOCALBASE=/usr setting. I
didn't see it because I have LOCALBASE=/usr/pkg. I can see that this
will be harder to solve in general, but I will rework these packages
(glimpse and spice) to allow them to compile.
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/
"Aaron J. Grier" <aaron@frye.com> writes:
> cc -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -I./index -I./agrep -I./
> libtemplate/include -Lagrep -Lcompress -Llibtemplate/template -Llibtemplate/uti
> l -o glimpse main.o get_filename.o get_index.o split.o index/region.o index/get
> word.o index/build_in.o index/filetype.o index/simpletest.o index/memlook.o ind
> ex/lib.o index/io.o -lagrep -ltemplate -lutil
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: Undefined symbol `_xfree' referenced from text segment
> template.o: More undefined symbol _xfree refs follow
> template.o: Undefined symbol `_create_buffer' referenced from text segment
> template.o: Undefined symbol `_add_buffer' referenced from text segment
> template.o: Undefined symbol `_increase_buffer' referenced from text segment
> template.o: Undefined symbol `_free_buffer' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> template.o: Undefined symbol `_xmalloc' referenced from text segment
> collect2: ld returned 1 exit status
> gmake: *** [glimpse] Error 1
> *** Error code 2
>
> Stop.
> *** Error code 1
>
> Stop.
> *** Error code 1
>
> Stop.
State-Changed-From-To: open->feedback
State-Changed-By: jlam
State-Changed-When: Thu Aug 3 17:07:07 PDT 2000
State-Changed-Why:
I committed a fix which moved all the pkgsrc-supplied linker flags to
after the local linker flags. This should allow the local libutil.a to
be found ahead of the system libutil.so if LOCALBASE=/usr. Please let me
know if this fixes your problem. Thanks!
From: "Aaron J. Grier" <aaron@frye.com>
To: "Johnny C. Lam" <lamj@stat.cmu.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Tue, 8 Aug 2000 09:54:56 -0700
glimpse now compiles and links just fine, but spice still has trouble.
removing '-I${LOCALBASE}/include' from the compile arguements for spice
is a workaround, but there's got to be a better solution. ;)
since glimpse compiles out of the box now, I guess this PR can be
closed. (I'll open a new one for spice.)
--
Aaron J. Grier | Frye Electronics, Tigard, OR | aaron@frye.com
State-Changed-From-To: feedback->closed
State-Changed-By: jlam
State-Changed-When: Tue Aug 8 09:59:42 PDT 2000
State-Changed-Why:
PR author confirmed that the package is fixed.
From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: "Aaron J. Grier" <aaron@frye.com>
Cc: "Johnny C. Lam" <lamj@stat.cmu.edu>, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/9952: textproc/glimpse fails compile out of pkgsrc
Date: Tue, 08 Aug 2000 12:59:02 -0400
"Aaron J. Grier" <aaron@frye.com> writes:
> glimpse now compiles and links just fine, but spice still has trouble.
> removing '-I${LOCALBASE}/include' from the compile arguements for spice
> is a workaround, but there's got to be a better solution. ;)
Oops...I forgot the fix cad/spice. I'll do it this weekend when my
workload lightens a bit.
> since glimpse compiles out of the box now, I guess this PR can be
> closed. (I'll open a new one for spice.)
Okay, I'll close this PR and will wait for your new one.
Thanks for the feedback.
Cheers,
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.