Subject: Cannot build netbsd-4 tools
To: None <port-alpha@netbsd.org>
From: Torsten Harenberg <harenberg@physik.uni-wuppertal.de>
List: port-alpha
Date: 05/16/2007 13:46:32
Dear all,

when trying to build tools with netbsd-4 sources (checkout from the  
swedish NetBSD mirror just before the build), I get some unresolved  
symbols:

bash-3.1# cvs co -rnetbsd-4 -P src
bash-3.1# cvs co -rnetbsd-4 -P xsrc
bash-3.1# ./build.sh -x -T /usr/alphatools -O /usr/alphaobj -D /usr/ 
alphabuild tools

Making tbl.n from /usr/src/gnu/dist/groff/src/preproc/tbl/tbl.man
mkdir src/preproc/pic
if test -n "pic_tab.h"; then  /usr/alphatools/bin/nbyacc -v -d /usr/ 
src/gnu/dist/groff/src/preproc/pic/pic.y;  else  /usr/alphatools/bin/ 
nbyacc -v /usr/src/gnu/dist/groff/src/preproc/pic/pic.y;  fi
test -f y.tab.h && mv y.tab.h y_tab.h
test -f y.tab.c && mv y.tab.c y_tab.c
mv y_tab.c pic.cpp
test -z "pic_tab.h" || mv y_tab.h pic_tab.h
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  pic.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/lex.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/main.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/object.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/common.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/troff.cpp
c++ -I. -I/usr/src/gnu/dist/groff/src/preproc/pic  -I/usr/alphaobj/ 
tools/groff/build/src/include -I/usr/src/tools/groff/../../gnu/dist/ 
groff/src/include -DHAVE_CONFIG_H -O -I/usr/alphaobj/tools/compat -I/ 
usr/alphaobj/tools/compat/include  -I/usr/src/tools/groff/../compat - 
DHAVE_NBTOOL_CONFIG_H=1  -D_FILE_OFFSET_BITS=64 -c  /usr/src/gnu/dist/ 
groff/src/preproc/pic/tex.cpp
c++ -O  -o pic pic.o  lex.o  main.o  object.o  common.o  troff.o   
tex.o /usr/alphaobj/tools/groff/build/src/libs/libgroff/libgroff.a   -lm
pic.o: In function `do_sprintf(char const*, double const*, int)':
: undefined reference to `snprintf(char*, unsigned long, char  
const*, ...)'
pic.o: In function `do_sprintf(char const*, double const*, int)':
: undefined reference to `snprintf(char*, unsigned long, char  
const*, ...)'

*** Failed target:  pic
*** Failed command: c++ -O -o pic pic.o lex.o main.o object.o  
common.o troff.o tex.o /usr/alphaobj/tools/groff/build/src/libs/ 
libgroff/libgroff.a -lm
*** Error code 1

Any clue?

Thanks and best regards,

    Torsten

--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
<>                                                              <>
<> Torsten Harenberg         harenberg@physik.uni-wuppertal.de  <>
<> Bergische Universitaet                                       <>
<> FB C - Physik             Tel.: +49 (0)202 439-3521          <>
<> Gaussstr. 20              Fax : +49 (0)202 439-2811          <>
<> 42097 Wuppertal                                              <>
<>                                                              <>
<><><><><><><>< Of course it runs NetBSD http://www.netbsd.org ><>