Subject: Re: pkg-src build problems.
To: Todd Vierling <tv@pobox.com>
From: Matt Knopp <mhat@fundsxpress.com>
List: tech-toolchain
Date: 12/11/1998 11:06:52
>>>>> "Todd" == Todd Vierling <tv@pobox.com> writes:
    Todd> They are supposed to do so.  'Tis why I asked for a list of
    Todd> failing pkgs, because everything I have tried so far has
    Todd> worked.

Oh sorry, I suck and didnt see that. 

The problem happens with: afterstep, and ImageMagick.. so far. I was going 
to build E... not because its at all useful but to prove to some people in 
this office that "modern wiz bang software" does not in fact just build 
under linux. (Long running argument as to why we use netbsd vs linux, one 
that I am really sick of. heh.) 

Im also assuming by virtue: 
taalo:/private-2/netbsd-12021998/pkgsrc/graphics>pkg_info
xpm-3.4k            The X Pixmap library.
pkglibtool-1.2      Generic shared library support script for NetBSD packages.
*jpeg-6b             IJG's jpeg compression utilities.
mpeg2codec-1.2      MPEG Software Simulation Group's MPEG-2 Encoder and Decoder
*png-1.0.2           Library for manipulating PNG images.
*tiff-3.4            A library for reading and writing TIFF data files.
gtexinfo-3.12       GNU info file manipulation utilities. 
gettext-0.10        tools for providing messages in different languages
gtk+-1.0.6          The gimp toolkit. Libraries for building X11 user interfaces
giflib-3.0          Tools and library routines for working with GIF images.
gindent-1.9.1       GNU indent.
perl-5.00404        Practical Extraction and Report Language
mozilla-19981008    Mozilla. Free version of Netscape browser.

that it should find these, however when I do a make in `ImageMagick` it does 
not.

My ld.so.conf: 
/usr/lib
/usr/pkg/lib
/usr/X11R6/lib
/usr/local/lib
/usr/krb5/lib

I've included the output of the configure, if anything else would be of use 
let me know. 


taalo:/private-2/netbsd-12021998/pkgsrc/graphics/ImageMagick>make
>> Checksum OK for ImageMagick-4.1.3.tar.gz.
===>  Extracting for ImageMagick-4.1.3
===>  ImageMagick-4.1.3 depends on installed package: jpeg-6b - jpeg-6b  found
===>  ImageMagick-4.1.3 depends on installed package: mpeg2codec-1.2 - mpeg2codec-1.2  found
===>  ImageMagick-4.1.3 depends on installed package: png-1.0.2 - png-1.0.2  found
===>  ImageMagick-4.1.3 depends on installed package: tiff-3.4 - tiff-3.4  found

##
## So the install knows its there.. this was a 'make' without hacking  ##
## on the configure.in / Magick.tmpl.                                  ##
##

===>  Patching for ImageMagick-4.1.3
===>  Applying NetBSD patches for ImageMagick-4.1.3
===>  Configuring for ImageMagick-4.1.3
creating cache ./config.cache
checking host system type... i386-unknown-netbsd1.3I
checking target system type... i386-unknown-netbsd1.3I
checking build system type... i386-unknown-netbsd1.3I
configuring ImageMagick 4.1.3
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking whether make sets ${MAKE}... (cached) yes
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... no
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... netbsd1.3I ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i386-unknown-netbsd1.3I
checking if malloc debugging is wanted... no
checking for sqrt in -lm... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for XShmAttach in -lXext... yes
checking for XShmAttach in -lXext... (cached) yes
checking for XShapeCombineMask in -lXext... yes
checking for XtSetEventDispatcher in -lXt... yes
checking for X11 RGB database... /usr/X11/lib/X11/rgb.txt
checking for ZLIB support ...
checking for zconf.h... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking for uncompress in -lz... yes
checking for deflate in -lz... yes
checking for inflate in -lz... yes
checking if ZLIB package is complete... yes
checking for BZLIB support ...
checking for bzlib.h... yes
checking for bzBuffToBuffCompress in -lbz2... yes
checking for bzBuffToBuffDecompress in -lbz2... yes
checking if BZLIB package is complete... yes
checking for Display Postscript support ...
checking for DPS/dpsXclient.h... no
checking for DPS/dpsXpreview.h... no
checking for DPSInitialize in -ldps... no
checking for XDPSPixelsPerPoint in -ldpstk... no
checking if DPS package is complete... no
checking for FlashPIX components ...
checking for fpx.h... no
checking for FPX_OpenImageByFilename in -lfpx... no
checking if FlashPIX package is complete... no
checking for PNG support ...
checking for png.h... no
checking for pngconf.h... no
checking for png_info_init in -lpng... no
checking if PNG package is complete... no
checking for JPEG support ...
checking for jconfig.h... no
checking for jerror.h... no
checking for jmorecfg.h... no
checking for jpeglib.h... no
checking for jpeg_read_header in -ljpeg... no
checking if JPEG package is complete... no
checking for TrueType Font support ...
checking for freetype.h... no
checking for TT_Init_FreeType in -lttf... no
checking if FreeType package is complete... no
checking for TIFF support ...
checking for tiff.h... no
checking for tiffio.h... no
checking for TIFFOpen in -ltiff... no
checking if TIFF package is complete... no
checking for HDF components ...
checking for hdf.h... no
checking for DFANputlabel in -ldf... no
checking if HDF package is complete... no
checking for JBIG support ...
checking for jbig.h... no
checking for jbg_dec_init in -ljbig... no
checking if JBIG package is complete... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for elf.h... no
checking for fcntl.h... yes
checking for strings.h... yes
checking for sys/file.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking whether byte ordering is bigendian... no
checking size of int... 4
checking size of long... 4
checking return type of signal handlers... void
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for 8-bit clean memcmp... yes
checking return type of signal handlers... (cached) void
checking for vprintf... yes
checking for wait3 that fills in rusage... yes
checking for getcwd... yes
checking for gethostname... yes
checking for mkdir... yes
checking for select... yes
checking for strcspn... yes
checking for strerror... yes
checking for strtol... yes
checking for sysconf... yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for strerror... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for sys_errlist... yes
checking for cat... /bin/cat
checking for echo... /bin/echo
checking for lp... /usr/bin/lp
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for netscape... /mesa/bin/netscape
checking for bzip2... /usr/bin/bzip2
checking for compress... /usr/bin/compress
checking for xterm... /usr/X11R6/bin/xterm
checking for dot... dot
checking for dvips... /mesa/bin/dvips
checking for fig2dev... fig2dev
checking for gnuplot... gnuplot
checking for gzip... /usr/bin/gzip
checking for gs... /mesa/bin/gs
checking for gs color device... GS>pnmraw
checking for gs mono device... GS>pbmraw
checking for gs PDF writing device... Unrecoverable error: invalidfileaccess in .setdevice
Operand stack:
    --nostringval--
(f80)op(344:.setdevice)0x3bf58Operand stack at 0xe4ab4:
0xf1094: 0x13 devc --Gwrx--- 0x015a 0x002b1034
Execution stack at 0xe4808:
0xf29fc: 0x0f oper --F---e-- 0x0000 0x00026e8c = %interp_exit
0xf2a04: 0x03 file --G-rxe-- 0x0001 0x00137d28
0xf2a0c: 0x05 mpry --G-rxe-- 0x0002 0x00138950
0xf2a14: 0x05 mpry --G-rxe-- 0x0039 0x0013917a
Dictionary stack at 0xe48c0:
0xf322c: 0x02 dict --Gwrx--- 0x0000 0x000f4034
0xf3234: 0x02 dict --Gwrx--- 0xefbf 0x002b462c
0xf323c: 0x02 dict --Lwrx--- 0x000c 0x000f908c
0xf3244: 0x02 dict --Gwrx--- 0x0000 0x000f4034
nodevice
checking for gs PS writing device... Unknown device: pswrite
GS<1>Unrecoverable error: undefined in get
Operand stack:
    defaultdevice  --nostringval--
(f80)op(207:get)0x350e4Operand stack at 0xe4ab4:
0xf1094: 0x02 dict --Gwrx--- 0x000e 0x002a789c
0xf109c: 0x0d name --S------ 0x045f 0x002ac4a8 = defaultdevice
Execution stack at 0xe4808:
0xf29fc: 0x0f oper --F---e-- 0x0000 0x00026e8c = %interp_exit
0xf2a04: 0x03 file --G-rxe-- 0x0001 0x00137d28
0xf2a0c: 0x05 mpry --G-rxe-- 0x0009 0x00138b04
0xf2a14: 0x05 mpry --G-rxe-- 0x0039 0x0013917a
Dictionary stack at 0xe48c0:
0xf322c: 0x02 dict --Gwrx--- 0x0000 0x000f4034
0xf3234: 0x02 dict --Gwrx--- 0x0000 0x000f4034
0xf323c: 0x02 dict --Lwrx--- 0x000c 0x000f908c
0xf3244: 0x02 dict --Gwrx--- 0x0000 0x000f4034
nodevice
checking for gs EPS writing device... Unknown device: epswrite
GS<1>Unrecoverable error: undefined in get
Operand stack:
    defaultdevice  --nostringval--
(f80)op(207:get)0x350e4Operand stack at 0xe4ab4:
0xf1094: 0x02 dict --Gwrx--- 0x000e 0x002a789c
0xf109c: 0x0d name --S------ 0x045f 0x002ac4a8 = defaultdeviceExecution stack at 0xe4808:
0xf29fc: 0x0f oper --F---e-- 0x0000 0x00026e8c = %interp_exit
0xf2a04: 0x03 file --G-rxe-- 0x0001 0x00137d28
0xf2a0c: 0x05 mpry --G-rxe-- 0x0009 0x00138b04
0xf2a14: 0x05 mpry --G-rxe-- 0x0039 0x0013917a
Dictionary stack at 0xe48c0:
0xf322c: 0x02 dict --Gwrx--- 0x0000 0x000f4034
0xf3234: 0x02 dict --Gwrx--- 0x0000 0x000f4034
0xf323c: 0x02 dict --Lwrx--- 0x000c 0x000f908c
0xf3244: 0x02 dict --Gwrx--- 0x0000 0x000f4034
nodevice
checking for gimp... gimp
checking for mpeg2decode... /usr/X11R6/bin/mpeg2decode
checking for mpeg2encode... /usr/X11R6/bin/mpeg2encode
checking for pgpv... pgpv
checking for ra_ppm... ra_ppm
checking for ralcgm... ralcgm
checking for uncompress... /usr/bin/uncompress
checking for hp2xx... hp2xx
checking for html2ps... html2ps
checking for povray... povray
checking for rawtorle... rawtorle
checking for scanimage... scanimage
checking for GET... GET
checking for perl... /mesa/bin/perl
checking for HP style pty allocation... no
checking for HP style pty trapping... no
checking for AIX new-style pty allocation... no
checking for SGI old-style pty allocation... no
checking for SCO style pty allocation... no
checking for SVR4/UNIX-'98 style pty allocation... no
checking for OSF/1 style pty allocation... no
checking for gethostbyname in -lnsl... no
checking for socket in -lsocket... no
updating cache ./config.cache
creating ./config.status
creating Makefile
creating delegates/delegates.mgk
creating delegates/Makefile
creating magick/Makefile
creating xtp/Makefile
creating xlib/Makefile
creating PerlMagick/Makefile.PL
creating magick/config.h

ImageMagick is configured as follows. Please verify that this
configuration matches your expectations.

Host system type : i386-unknown-netbsd1.3I

Option            Configure option        Configured value
----------------------------------------------------------
Shared libraries  --enable-shared=no            no
Static libraries  --enable-static=yes           yes
GNU ld            --with-gnu-ld=unknown         no
Ghostscript       None                          yes
LZW support       --enable-lzw=no               no
16 bit pixels     --enable-16bit-pixel=no       no
SFIO              --enable-sfio=no              no
SOCKS             --enable-socks=no             no
PERL              --with-perl=yes               /mesa/bin/perl
BZLIB             --with-bzlib=yes              yes
DPS               --with-dps=yes                no
FlashPIX          --with-fpx=yes                no
HDF               --with-hdf=yes                no
JBIG              --with-jbig=yes               no
JPEG              --with-jpeg=yes               no
PNG               --with-png=yes                no
TIFF              --with-tiff=yes               no
TrueType          --with-ttf=yes                no
ZLIB              --with-zlib=yes               yes
X11               --with-x=yes                  yes

X11 Configuration:
  X_CFLAGS     = -I/usr/X11R6/include
  X_PRE_LIBS   = -lSM -lICE
  X_LIBS       = -L/usr/X11R6/lib
  X_EXTRA_LIBS = 

Final Compilation Flags:
  CC       = gcc
  CFLAGS   = -g -O2
*  CPPFLAGS = -I/usr/X11R6/include -I/usr/X11R6/include
*  LDFLAGS  = -L/usr/X11R6/lib -L/usr/X11R6/lib
  LIBS     = -lbz2 -lz -lXext -lXt -lX11 -lm

mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
make Makefiles
making Makefiles in magick...
        mv -f Makefile Makefile.bak
making Makefiles in xtp...
        mv -f Makefile Makefile.bak
make includes
including in ./magick...
+ mkdir unshared
including in ./xtp...