Subject: compiling teTeX failed
To: None <tech-pkg@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: tech-pkg
Date: 03/11/2004 23:59:05
Hi,
cvs updated pkgsrc a few minutes ago, on i386 -current trying to
compile teTeX failed with:

for file in ./xdvi.c ; do \
gcc -E -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -I/usr/pkg/include
-I/usr/pkg/include/w3c-libwww -DHAVE_CONFIG_H -DHAVE_LIBWWW
-DHAVE_WWWLIB_H -I/usr/pkg/include -DPS_GS -DOmega -DXSERVER_INFO
-I../../libs/t1lib/lib/t1lib -I../kpathsea -I/usr/X11R6/include
-I/usr/pkg/include -I/usr/include  -DMAKING_HEADER ./$file \
| sed -e '2,/XDVI_CC_CONCAT_BEGIN1/d' -e '/XDVI_CC_CONCAT_END1/,$d' -e
'/^ *$/d' -e '/^#/d' \
| sed -e '2,$s/^[       ]*"//' -e 's/"[         ]*$/\\/' \
>> krheader.h; done
xdvi.c:103:20: WWWLib.h: No such file or directory
xdvi.c:104:21: WWWInit.h: No such file or directory
xdvi.c:105:22: WWWCache.h: No such file or directory
xdvi.c:106:22: HTEscape.h: No such file or directory
echo "#endif /* HAVE_CC_CONCAT */" >> krheader.h
gcc -DHAVE_CONFIG_H  -I. -I. -I.. -I./.. -I/usr/pkg/include
-I/usr/pkg/include/w3c-libwww -DHAVE_CONFIG_H -DHAVE_LIBWWW
-DHAVE_WWWLIB_H -I/usr/pkg/include -DPS_GS -DOmega -DXSERVER_INFO
-I../../libs/t1lib/lib/t1lib -I../kpathsea -I/usr/X11R6/include
-I/usr/pkg/include -I/usr/include  -O2 -Dunix -I/usr/pkg/include
-I/usr/include  -c xdvi.c
xdvi.c:103:20: WWWLib.h: No such file or directory
xdvi.c:104:21: WWWInit.h: No such file or directory
xdvi.c:105:22: WWWCache.h: No such file or directory
xdvi.c:106:22: HTEscape.h: No such file or directory
gmake[2]: *** [xdvi.o] Error 1
gmake[2]: Leaving directory
`/u/NetBSD/pkgobj/print/teTeX-bin/work/tetex-src-2.0.2/texk/oxdvik'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory
`/u/NetBSD/pkgobj/print/teTeX-bin/work/tetex-src-2.0.2/texk'
gmake: *** [all] Error 1


I can trace the missing include for w3c-libwww back to:

....
	;;
-I/usr/pkg/include/w3c-libwww)  # /u/NetBSD/pkgobj/print/teTeX-bin/work/.buildlink/bin/gcc
        cachearg=""
        arg="$cachearg"; cachehit=yes
        ;;
....

in /u/NetBSD/pkgobj/print/teTeX-bin/work/.buildlink/bin/.cache-trans

Where's the culprit?

-kurt


ps.: I had a similar problem trying to compile gdk2 on slowlaris where 
	"-Wl,.libs/libgdk_pixbuf-2.0.so.200.4.exp" was "transformed"
     to ".libs-L -lgdk_pixbuf-2.0exp" (happens on solaris only)

     Seems like some matching problem w/ buildlink3???