Subject: wm/fvwm2 build fails on MacOS 10.1.5
To: None <martti@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 03/25/2004 11:37:42
Since I had to build XDarwin myself on this older MacOS, I wanted a nicer
window manager and my wm of choice tends to be fvwm2.

Unfortunately, the build fails in the FvwmBacker module with some
undefined symbols:

[...]
Making all in FvwmBacker
cd ../.. && /bin/sh ./config.status modules/FvwmBacker/Makefile depfiles
config.status: creating modules/FvwmBacker/Makefile
config.status: executing depfiles commands
source='FvwmBacker.c' object='FvwmBacker.o' libtool=no  depfile='.deps/FvwmBacker.Po' tmpdepfile='.deps/FvwmBacker.TPo'  depmode=gcc /bin/sh ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/pkg/include -I/usr/local/X11R6/include   -no-cpp-precomp -I/usr/pkg/include -I/usr/local/X11R6/include  -O2 -I/usr/pkg/include -I/usr/local/X11R6/include -c `test -f 'FvwmBacker.c' || echo './'`FvwmBacker.c
source='root_bits.c' object='root_bits.o' libtool=no  depfile='.deps/root_bits.Po' tmpdepfile='.deps/root_bits.TPo'  depmode=gcc /bin/sh ../../depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I/usr/pkg/include -I/usr/local/X11R6/include   -no-cpp-precomp -I/usr/pkg/include -I/usr/local/X11R6/include  -O2 -I/usr/pkg/include -I/usr/local/X11R6/include -c `test -f 'root_bits.c' || echo './'`root_bits.c
gcc  -O2 -I/usr/pkg/include -I/usr/local/X11R6/include  -L/usr/pkg/lib -L/usr/local/X11R6/lib -o FvwmBacker  FvwmBacker.o root_bits.o -L../../libs -L/usr/local/X11R6/lib -lfvwm -lXpm   -lSM -lICE -lXext -lX11 -lm
ld: Undefined symbols:
_Pcmap
_Pdepth
_Pdpy
_Pvisual
*** Error code 1

Stop.
bmake: stopped in /Volumes/NetBSD/pkgsrc/wm/fvwm2/work/fvwm-2.4.18/modules/FvwmBacker
[...]

I've only just begun looking into this, suggestions welcome.

MacOS X 10.1.5, April 2002 Developer Tools w/gcc3.1 (gcc_select 3)
XDarwin/XFree86 v4.3.99.903 X11BASE=/usr/local/X11R6

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!