Subject: port-alpha/36368: netbsd-4 tools doesn't build on alpha
To: None <port-alpha-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <harenberg@physik.uni-wuppertal.de>
List: netbsd-bugs
Date: 05/21/2007 13:15:00
>Number:         36368
>Category:       port-alpha
>Synopsis:       netbsd-4 tools doesn't build on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 21 13:15:00 +0000 2007
>Originator:     Torsten Harenberg
>Release:        4.0_BETA2/alpha
>Organization:
University of Wuppertal
>Environment:
NetBSD backup.physik.uni-wuppertal.de 4.0_BETA2 NetBSD 4.0_BETA2 (alice1) #0: Thu Mar 15 14:45:20 CET 2007  root@backup.physik.uni-wuppertal.de:/usr/alphaobj/sys/arch/alpha/compile/alice1 alpha
>Description:
>From today (May 21 2007)

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

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

Stop.
nbmake: stopped in /usr/alphaobj/tools/groff/build/src/preproc/pic

*** Failed target:  src/preproc/pic
*** Failed command: if test -f /usr/src/tools/groff/../../gnu/dist/groff/makefile.ccpg* && test -f /usr/src/tools/groff/../../gnu/dist/groff/Makefile.ccpg*; then FNCASE=y; export FNCASE; else :; fi; if test /usr/src/tools/groff/../../gnu/dist/groff = .; then srcdir=.; else srcdir=`cd /usr/src/tools/groff/../../gnu/dist/groff; pwd`/src/preproc/pic; fi; test -d src/preproc/pic || /bin/sh /usr/src/tools/groff/../../gnu/dist/groff/mkinstalldirs src/preproc/pic; cd src/preproc/pic; test -f Makefile.dep || touch Makefile.dep; /usr/alphatools/bin/nbmake "ALT_AWK_PROGS=gawk mawk nawk awk" "ALT_GHOSTSCRIPT_PROGS=gs gswin32c gsos2" "AR=ar" "BROKEN_SPOOLER_FLAGS=0" "CC=cc" "CCC=c++" "CCDEFINES=-DHAVE_CONFIG_H" "CCFLAGS=-O" "CDEFINES=-DHAVE_CONFIG_H" "CFLAGS=-O" "CPPFLAGS=-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" "DEVICE=ps" "DVIPRINT=lpr -d" "ETAGS=etags" "ETAGSCCFLAG=-C" "ETAGSFLAG
 S=" "EXEEXT=" "INSTALL_DATA=/usr/alphatools/bin/nbinstall -c -r -m 644" "INSTALL_INFO=/usr/alphatools/bin/nbinstall-info" "INSTALL_PROGRAM=/usr/alphatools/bin/nbinstall -c -r" "INSTALL_SCRIPT=/usr/alphatools/bin/nbinstall -c -r" "LDFLAGS=" "LIBEXT=a" "LIBM=-lm" "LIBOBJS=" "LIBS=" "MAKEOVERRIDES=" "OBJEXT=o" "OTHERDEVDIRS=font/devlj4 font/devlbp" "PAGE=A4" "GHOSTSCRIPT=missing" "PERLPATH=/usr/pkg/bin/perl" "PSPRINT=lpr" "PURIFY=purify" "PURIFYCCFLAGS=" "RANLIB=ranlib" "RT_SEP=:" "SH_SEP=:" "SHELL=/bin/sh" "SH_SCRIPT_SED_CMD=1s/a/a/" "SH_DEPS_SED_SCRIPT=/usr/alphaobj/tools/groff/build/arch/misc/shdeps.sed" "TTYDEVDIRS=font/devascii font/devlatin1 font/devutf8" "XDEVDIRS=" "XLIBDIRS=" "XPROGDIRS=" "X_CFLAGS=" "X_LIBS=" "X_EXTRA_LIBS=" "X_PRE_LIBS=" "YACC=/usr/alphatools/bin/nbyacc" "YACCFLAGS=-v" "appresdir=" "bindir=/usr/alphatools/lib/groff" "common_words_file=/usr/alphatools/share/groff/eign" "datadir=/usr/alphatools/share" "dataprogramdir=/usr/alphatools/share/groff" "datas
 ubdir=/usr/alphatools/share/groff" "docdir=/usr/alphatools/share/doc/groff/1.19.2" "exampledir=/usr/alphatools/share/doc/groff/1.19.2/examples" "exec_prefix=/usr/alphatools" "fontdir=/usr/alphatools/share/groff/font" "fontpath=/usr/alphatools/share/groff/site-font:/usr/alphatools/share/groff/font:/usr/lib/font" "g=" "htmldocdir=/usr/alphatools/share/doc/groff/1.19.2/html" "pdfdocdir=/usr/alphatools/share/doc/groff/1.19.2/pdf" "indexdir=/usr/dict/papers" "indexext=.i" "indexname=Ind" "infodir=/usr/alphatools/info" "legacyfontdir=/usr/lib/font" "libdir=/usr/alphatools/lib" "libprogramdir=/usr/alphatools/lib/groff" "localfontdir=/usr/alphatools/share/groff/site-font" "localtmacdir=/usr/alphatools/share/groff/site-tmac" "make_html=" "make_install_html=" "make_pdfdoc=" "make_install_pdfdoc=" "man1dir=/usr/alphatools/man/man1" "man1ext=1" "man5dir=/usr/alphatools/man/man5" "man5ext=5" "man7dir=/usr/alphatools/man/man7" "man7ext=7" "manroot=/usr/alphatools/man" "mkinstalldirs=/bin/
 sh /usr/src/tools/groff/../../gnu/dist/groff/mkinstalldirs" "prefix=/usr/alphatools" "revision=.2" "sys_tmac_prefix=" "pnmtops_nosetpage=pnmtops" "systemtmacdir=/usr/alphatools/lib/groff/site-tmac" "tmac_an_prefix=" "tmac_m_prefix=" "tmac_s_prefix=" "tmac_wrap=" "tmacdir=/usr/alphatools/share/groff/tmac" "tmacpath=/usr/alphatools/lib/groff/site-tmac:/usr/alphatools/share/groff/site-tmac:/usr/alphatools/share/groff/tmac" "top_builddir=/usr/alphaobj/tools/groff/build" "top_srcdir=/usr/src/tools/groff/../../gnu/dist/groff" "version=1.19" srcdir=$srcdir VPATH=$srcdir -f /usr/src/tools/groff/../../gnu/dist/groff/Makefile.comm -f $srcdir/Makefile.sub -f /usr/src/tools/groff/../../gnu/dist/groff/Makefile.ccpg -f Makefile.dep all
*** Error code 1

>How-To-Repeat:
Use netbsd-4 src on a alpha running NetBSD 4.0_BETA2 (not sure if running 4.0_BETA2 is needed, but I can repeat on other alphas if needed) and try to build the tools.


>Fix: