pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Pkgsrc zlib vs. base zlib, NetBSD



--- "James K. Lowden" <jklowden%schemamania.org@localhost> wrote:

> Gary Thorpe wrote:
> > Thank you, this works partially (configure detects the right
> version)
> > but it now fails in the final link stage:
> > [...]
> > -R/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -L/usr/local/lib -L/usr/lib 
> -lz
> > -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -lcurses
> > initc.o(.text+0x15f0): In function `SplitSetup':
> > : undefined reference to `gzdirect'
> > initc.o(.text+0x18e3): In function `SplitSetup':
> > : undefined reference to `gzdirect'
> > initc.o(.text+0x1b64): In function `SplitSupport':
> > : undefined reference to `gzdirect'
> > initc.o(.text+0x23e6): In function `loadROM':
> > : undefined reference to `gzdirect'
> > initc.o(.text+0x6094): In function `loadGZipFile':
> > : undefined reference to `gzdirect'
> > 
> > These symbols are found in the pkgsrc version but not in the
> /usr/lib
> > version. Should I try moving the -lz around so it comes before
> > -L/usr/lib?
> 
>       "All `-L' options apply to all `-l' options,
>      regardless of the order in which the options appear."
> 
> You may wish to spend a little more time with "info ld".  

The problem was one mistyped environment variable using '-R' instead of
'-L' (which is in the very first line of my edited output).

Now the build finishes and has a real problem at the end (here is the
complete output to be more helpful):

gmake
tools/depbuild gcc "-I/usr/pkg/include -pipe -I. -I/usr/local/include
-I/usr/include -D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3
-O3 -fomit-frame-pointer -s" nasm " -w-orphan-labels -D__UNIXSDL__
-D__BSDSDL__ -f elf -DELF -O1" cfg.o endmem.o init.o initc.o input.o
md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o
zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o
chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o
chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o
chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o
chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o
chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o
chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o
cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o
cpu/stable.o cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o
gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o
effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o    jma/inbyte.o
jma/jma.o jma/lzma.o       jma/lzmadec.o jma/winout.o jma/zsnesjma.o
mmlib/mm.o  video/makev16b.o video/makev16t.o video/makevid.o
video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o
video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o
video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o
video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o
video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o
video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o
video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o
linux/sdllink.o  linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o
> makefile.dep
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o parsegen parsegen.cpp -lz
./parsegen  -D__UNIXSDL__ -gcc gcc -compile -flags "-I/usr/pkg/include
-pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__
-D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3 -fomit-frame-pointer -s
-O1" -cheader cfg.h -fname cfg cfg.o cfg.psr
parsegen: gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include
-I/usr/include -D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3
-O3 -fomit-frame-pointer -s -O1 -o cfg.o -c cfg.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
endmem.o endmem.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
init.o init.asm
./parsegen  -D__UNIXSDL__ -gcc gcc -compile -flags "-I/usr/pkg/include
-pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__
-D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3 -fomit-frame-pointer -s
-O1" -cheader input.h -fname input input.o input.psr
parsegen: gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include
-I/usr/include -D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3
-O3 -fomit-frame-pointer -s -O1 -o input.o -c input.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o initc.o -c initc.c
./parsegen  -D__UNIXSDL__ -gcc gcc -compile -flags "-I/usr/pkg/include
-pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__
-D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
-D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3 -fomit-frame-pointer -s
-O1" -cheader md.h -fname md md.o md.psr
parsegen: gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include
-I/usr/include -D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL
-D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3
-O3 -fomit-frame-pointer -s -O1 -o md.o -c md.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o patch.o -c patch.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o ui.o -c ui.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
vcache.o vcache.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o version.o -c version.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zloader.o -c zloader.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zmovie.o -c zmovie.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zpath.o -c zpath.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zstate.o -c zstate.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
ztime.o ztime.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o ztimec.o -c ztimec.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/c4emu.o -c chips/c4emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/c4proc.o chips/c4proc.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/dsp1emu.o -c chips/dsp1emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/dsp1proc.o chips/dsp1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/dsp2proc.o chips/dsp2proc.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/dsp3emu.o -c chips/dsp3emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/dsp3proc.o chips/dsp3proc.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/dsp4emu.o -c chips/dsp4emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/dsp4proc.o chips/dsp4proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/fxemu2.o chips/fxemu2.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/fxemu2b.o chips/fxemu2b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/fxemu2c.o chips/fxemu2c.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/fxtable.o chips/fxtable.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/obc1emu.o -c chips/obc1emu.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/obc1proc.o chips/obc1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/sa1proc.o chips/sa1proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/sa1regs.o chips/sa1regs.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/sdd1emu.o -c chips/sdd1emu.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/seta10.o -c chips/seta10.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/sfxproc.o chips/sfxproc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/st10proc.o chips/st10proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/7110proc.o chips/7110proc.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o chips/seta11.o -c chips/seta11.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
chips/st11proc.o chips/st11proc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/dma.o cpu/dma.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/dsp.o cpu/dsp.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/dspproc.o cpu/dspproc.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/execute.o cpu/execute.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o cpu/executec.o -c cpu/executec.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/irq.o cpu/irq.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/memory.o cpu/memory.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o cpu/memtable.o -c cpu/memtable.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/spc700.o cpu/spc700.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/stable.o cpu/stable.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/table.o cpu/table.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
cpu/tablec.o cpu/tablec.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
debugasm.o debugasm.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o debugger.o -c debugger.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
gui/gui.o gui/gui.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o gui/guifuncs.o -c gui/guifuncs.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
gui/menu.o gui/menu.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o effects/burn.o -c effects/burn.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o effects/smoke.o -c effects/smoke.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o effects/water.o -c effects/water.c
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/7zlzma.o -c jma/7zlzma.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/crc32.o -c jma/crc32.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/iiostrm.o -c jma/iiostrm.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/inbyte.o -c jma/inbyte.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/jma.o -c jma/jma.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/lzma.o -c jma/lzma.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/lzmadec.o -c jma/lzmadec.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/winout.o -c jma/winout.cpp
g++ -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -fno-rtti -o jma/zsnesjma.o -c jma/zsnesjma.cpp
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o mmlib/mm.o -c mmlib/mm.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/makev16b.o video/makev16b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/makev16t.o video/makev16t.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/makevid.o video/makevid.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode716.o video/mode716.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode716b.o video/mode716b.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode716d.o video/mode716d.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode716e.o video/mode716e.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode716t.o video/mode716t.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode7.o video/mode7.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mode7ext.o video/mode7ext.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/mv16tms.o video/mv16tms.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/m716text.o video/m716text.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/newg162.o video/newg162.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/newgfx.o video/newgfx.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/newgfx16.o video/newgfx16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/newgfx2.o video/newgfx2.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/procvid.o video/procvid.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o video/procvidc.o -c video/procvidc.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/sw_draw.o video/sw_draw.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/2xsaiw.o video/2xsaiw.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq2x16.o video/hq2x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq2x32.o video/hq2x32.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq3x16.o video/hq3x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq3x32.o video/hq3x32.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq4x16.o video/hq4x16.asm
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/hq4x32.o video/hq4x32.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o video/ntsc.o -c video/ntsc.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
video/copyvwin.o video/copyvwin.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o linux/audio.o -c linux/audio.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o linux/battery.o -c linux/battery.c
nasm  -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -O1 -o
linux/sdlintrf.o linux/sdlintrf.asm
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o linux/sdllink.o -c linux/sdllink.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o linux/sw_draw.o -c linux/sw_draw.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o linux/safelib.o -c linux/safelib.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zip/unzip.o -c zip/unzip.c
gcc -I/usr/pkg/include -pipe -I. -I/usr/local/include -I/usr/include
-D__UNIXSDL__ -D__BSDSDL__  -I/usr/local/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -D_THREAD_SAFE -I/usr/pkg -march=pentium3 -O3
-fomit-frame-pointer -s -o zip/zpng.o -c zip/zpng.c
g++ -o zsnes cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o
vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o
chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o
chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o
chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o
chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o
chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o
chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o
cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o
cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o
cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o gui/guifuncs.o
gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o
jma/crc32.o jma/iiostrm.o  jma/inbyte.o jma/jma.o jma/lzma.o      
jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o  video/makev16b.o
video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o
video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o
video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o
video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o
video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o
video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o
video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o
linux/battery.o linux/sdlintrf.o linux/sdllink.o  linux/sw_draw.o
linux/safelib.o zip/unzip.o zip/zpng.o -I/usr/pkg/include -pipe -I.
-I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ 
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE
-I/usr/pkg -march=pentium3 -O3 -fomit-frame-pointer -s -fno-rtti
-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -L/usr/local/lib -L/usr/lib  -lz
-L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lpthread -L/usr/pkg
-lpng -lm -lcurses
ld: warning: libz.so.0, needed by /usr/pkg/lib/libpng.so, may conflict
with libz.so.1
rm -f version.o

The zlib version in pkgsrc conflicts with the version used to build the
PNG library (the base version). I just did 'make update' for libpng and
it still uses the version in the base although it has this in the
Makefile (with full output for clarity):

# $NetBSD: Makefile,v 1.90 2007/02/02 19:12:31 wiz Exp $

DISTNAME=       libpng-1.2.16
PKGNAME=        ${DISTNAME:S/lib//}
CATEGORIES=     graphics
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=libpng/} \
                http://www.libpng.org/pub/png/src/ \
                ftp://swrinde.nde.swri.edu/pub/png/src/ \
                ftp://ftp.simplesystems.org/pub/libpng/src/ \
                ftp://ftp.fu-berlin.de/unix/graphics/png/src/
EXTRACT_SUFX=   .tar.bz2

MAINTAINER=     fredb%NetBSD.org@localhost
HOMEPAGE=       http://www.libpng.org/pub/png/
COMMENT=        Library for manipulating PNG images

PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT=    user-destdir

GNU_CONFIGURE=  yes
PKGCONFIG_OVERRIDE=     scripts/libpng.pc.in
TEST_TARGET=    check
USE_LIBTOOL=    yes

.include "../../mk/bsd.prefs.mk"
# keep this in sync with the same code in buildlink3.mk
.if ${MACHINE_ARCH} != "i386"
CPPFLAGS+=      -DPNG_NO_ASSEMBLER_CODE
.endif

SUBST_CLASSES+=         rpathfix
SUBST_FILES.rpathfix=   scripts/libpng-config.in
SUBST_MESSAGE.rpathfix= Adding rpath to libpng-config.
SUBST_SED.rpathfix=     -e '/^L_opts=/s|-L\([    ]*[^   
]*\)"|${COMPILER_RPATH_FLAG}\1 -L\1"|g'
SUBST_STAGE.rpathfix=   pre-configure

.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

I.e. it should use and depend on the pkgsrc zlib, but it doesn't:

ldd /usr/pkg/lib/libpng.so*
/usr/pkg/lib/libpng.so:
        -lz.0 => /usr/lib/libz.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
/usr/pkg/lib/libpng.so.3:
        -lz.0 => /usr/lib/libz.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0
/usr/pkg/lib/libpng.so.3.16.0:
        -lz.0 => /usr/lib/libz.so.0
        -lm.0 => /usr/lib/libm387.so.0
        -lm.0 => /usr/lib/libm.so.0


      Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca




Home | Main Index | Thread Index | Old Index