AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20080110154024.25f47cba@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<larry.scheer@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 10 Jan 2008 15:40:45 -0800
From: Andrew Sharp <andy.sharp@onstor.com>
To: Larry Scheer <larry.scheer@onstor.com>
Subject: OK, what am i doing wrong now...
Message-ID: <20080110154045.7778cc8a@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

cc is /usr/openbsd.new/usr/cross/pmonmips/usr/bin/cc
CFLAGS is -fPIC -DBOBCAT -DDEFAULT_VENDOR_NAME="ONStor" -DDEFAULT_PROD_NAME="BOBCAT" -Wall -Wmissing-prototypes -Werror -DEXTENDED_SECURITY -DNFX_KERBEROS -DNETEEE_FRAGMENT -G 0
/usr/openbsd.new/usr/cross/pmonmips/usr/bin/cc -fPIC  -DBOBCAT -DDEFAULT_VENDOR_NAME=\"ONStor\" -DDEFAULT_PROD_NAME=\"BOBCAT\" -Wall -Wmissing-prototypes  -Werror -DEXTENDED_SECURITY -DNFX_KERBEROS -DNETEEE_FRAGMENT  -G 0  -o ../../Build/bc/dbg/bin/cluster_contrl \
../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cfg.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-rpc.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-rmc.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster_int.cs.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster_int.xdr.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-util.o ../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cache.o \
-L../../Build/bc/dbg/lib -lcluster -lldap -Wl,-Bstatic -lssl -Wl,-Bdynamic -lm   \
-L../../Build/bc/dbg/lib -lanpssc -le_log -lubik -lafsutil -llwp -lafsrx -lncm -lrmc -lutils -lauthen -licucommon -licudata -lnfxnis -lacrypt -levent -lopt -lbsdcompat -lgenlib \
 -Xlinker -rpath -Xlinker /onstor/lib
../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cfg.o: In function `cluster_lock_local_db':
/home/andys/flash/dev/nfx-tree/code/ssc-cluster/cluster-contrl-cfg.c:3269: undefined reference to `ensure_fs_writable'
/home/andys/flash/dev/nfx-tree/code/ssc-cluster/cluster-contrl-cfg.c:3289: undefined reference to `restore_fs_permissions'
../../Build/bc/dbg/Objects/SSC/ssc-cluster/contrl/cluster-contrl-cfg.o: In function `cluster_unlock_local_db':
/home/andys/flash/dev/nfx-tree/code/ssc-cluster/cluster-contrl-cfg.c:3417: undefined reference to `ensure_fs_writable'
/home/andys/flash/dev/nfx-tree/code/ssc-cluster/cluster-contrl-cfg.c:3437: undefined reference to `restore_fs_permissions'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `opt_u_mount_secondary'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `opt_mount_secondary'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `opt_do_copy_files'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `modify_readonly_file'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `sys_config_files'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `make_allfs_readonly'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `string_to_file'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `make_allfs_writable'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `redo_hosts'
../../Build/bc/dbg/lib/libopt.so: undefined reference to `opt_get_sec_fstab'
make[2]: *** [../../Build/bc/dbg/bin/cluster_contrl] Error 1
make[2]: Leaving directory `/home/andys/flash/dev/nfx-tree/code/ssc-cluster'
make[1]: *** [default] Error 1



All these symbols should be in libopt, which is on the command line ...
so I'm at a loss to understand.
