I am trying to build Samba 2.2.12 on Solaris 10 x86 with gcc. I am not able to successfully build it, however. I get a linker error for an undefined symbol VA_COPY. How can I fix this problem? Linking bin/smbd Undefined first referenced symbol in file VA_COPY lib/snprintf.o ld: fatal: Symbol referencing errors. No output written to bin/smbd collect2: ld returned 1 exit status *** Error code 1 The following command caused the error: gcc -O -Iinclude -I./include -I./ubiqx -I./smbwrapper - DLOGFILEBASE=\"/usr/local/samba/var\" -DCONFIGFILE=\"/usr/local/samba/ lib/smb.conf\" -DLMHOSTSFILE=\"/usr/local/samba/lib/lmhosts\" - DSWATDIR=\"/usr/local/samba/swat\" -DSBINDIR=\"/usr/local/samba/bin\" -DLOCKDIR=\"/usr/local/samba/var/locks\" -DCODEPAGEDIR=\"/usr/local/ samba/lib/codepages\" -DDRIVERFILE=\"/usr/local/samba/lib/printers.def \" -DBINDIR=\"/usr/local/samba/bin\" -DPIDDIR=\"/usr/local/samba/var/ locks\" -DLIBDIR=\"/usr/local/samba/lib\" -DHAVE_INCLUDES_H - DPASSWD_PROGRAM=\"/usr/bin/passwd\" -DSMB_PASSWD_FILE=\"/usr/local/ samba/private/smbpasswd\" -DTDB_PASSWD_FILE=\"/usr/local/samba/ private/smbpasswd.tdb\" -o bin/smbd smbd/server.o smbd/files.o smbd/ chgpasswd.o smbd/connection.o smbd/utmp.o smbd/session.o smbd/ dfree.o smbd/dir.o smbd/password.o smbd/conn.o smbd/fileio.o smbd/ ipc.o smbd/lanman.o smbd/mangle.o smbd/mangle_hash2.o smbd/ mangle_hash.o smbd/mangle_map.o smbd/negprot.o smbd/message.o smbd/ nttrans.o smbd/pipes.o smbd/reply.o smbd/trans2.o smbd/uid.o smbd/ dosmode.o smbd/filename.o smbd/open.o smbd/close.o smbd/blocking.o smbd/sec_ctx.o smbd/vfs.o smbd/vfs-wrap.o smbd/statcache.o smbd/ posix_acls.o lib/sysacls.o smbd/process.o smbd/service.o smbd/ error.o printing/printfsp.o lib/util_seaccess.o libsmb/ cli_pipe_util.o msdfs/msdfs.o param/loadparm.o param/params.o libsmb/ clientgen.o libsmb/cliconnect.o libsmb/clifile.o libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o libsmb/clireadwrite.o libsmb/ clilist.o libsmb/cliprint.o libsmb/clitrans.o libsmb/clisecdesc.o libsmb/clidgram.o libsmb/namequery.o libsmb/nmblib.o libsmb/ clistr.o libsmb/nterr.o libsmb/smbdes.o libsmb/smbencrypt.o libsmb/ smberr.o libsmb/credentials.o libsmb/pwd_cache.o libsmb/clioplock.o libsmb/errormap.o libsmb/doserr.o libsmb/passchange.o libsmb/ unexpected.o rpc_parse/parse_prs.o rpc_parse/parse_sec.o rpc_parse/ parse_misc.o libsmb/namecache.o ubiqx/ubi_BinTree.o ubiqx/ ubi_Cache.o ubiqx/ubi_SplayTree.o ubiqx/ubi_dLinkList.o ubiqx/ ubi_sLinkList.o ubiqx/debugparse.o rpc_server/srv_lsa.o rpc_server/ srv_lsa_nt.o rpc_server/srv_lsa_hnd.o rpc_server/srv_netlog.o rpc_server/srv_netlog_nt.o rpc_server/srv_pipe_hnd.o rpc_server/ srv_reg.o rpc_server/srv_reg_nt.o rpc_server/srv_samr.o rpc_server/ srv_samr_nt.o rpc_server/srv_srvsvc.o rpc_server/srv_srvsvc_nt.o rpc_server/srv_util.o rpc_server/srv_wkssvc.o rpc_server/ srv_wkssvc_nt.o rpc_server/srv_pipe.o rpc_server/srv_dfs.o rpc_server/srv_dfs_nt.o rpc_server/srv_spoolss.o rpc_server/ srv_spoolss_nt.o rpc_client/cli_spoolss_notify.o rpc_parse/ parse_lsa.o rpc_parse/parse_net.o rpc_parse/parse_reg.o rpc_parse/ parse_rpc.o rpc_parse/parse_samr.o rpc_parse/parse_srv.o rpc_parse/ parse_wks.o rpc_parse/parse_spoolss.o rpc_parse/parse_dfs.o rpc_client/cli_netlogon.o rpc_client/cli_pipe.o rpc_client/ cli_login.o rpc_client/cli_trust.o locking/locking.o locking/ brlock.o locking/posix.o passdb/passdb.o passdb/secrets.o passdb/ pass_check.o passdb/smbpassfile.o passdb/machine_sid.o passdb/ pdb_smbpasswd.o passdb/pampass.o passdb/pdb_tdb.o passdb/pdb_ldap.o passdb/pdb_nisplus.o printing/pcap.o printing/print_svid.o printing/ print_cups.o printing/print_generic.o printing/lpq_parse.o printing/ load.o profile/profile.o lib/charcnv.o lib/charset.o lib/debug.o lib/ fault.o lib/getsmbpass.o lib/interface.o lib/kanji.o lib/md4.o lib/ interfaces.o lib/pidfile.o lib/replace.o lib/signal.o lib/system.o lib/sendfile.o lib/time.o lib/ufc.o lib/genrand.o lib/username.o lib/ util_getent.o lib/access.o lib/smbrun.o lib/bitmap.o lib/crc32.o lib/ snprintf.o lib/wins_srv.o lib/util_str.o lib/util_sid.o lib/ util_unistr.o lib/util_file.o lib/util.o lib/util_sock.o lib/ util_sec.o smbd/ssl.o lib/talloc.o lib/hash.o lib/substitute.o lib/ fsusage.o lib/ms_fnmatch.o lib/select.o lib/error.o lib/messages.o lib/pam_errors.o nsswitch/wb_client.o nsswitch/wb_common.o tdb/tdb.o tdb/spinlock.o tdb/tdbutil.o printing/printing.o printing/ nt_printing.o smbd/noquotas.o smbd/oplock.o smbd/oplock_irix.o smbd/ oplock_linux.o smbd/notify.o smbd/notify_hash.o smbd/ notify_kernel.o -lsec -lgen -lsocket -lnsl -lpopt make: Fatal error: Command failed for target `bin/smbd'