[Samba] Can't build 3.0.4 under QNX 6.1.0

Mackenzie Alan-G25604 G25604 at motorola.com
Fri Jul 16 15:01:26 GMT 2004


I've been trying to build Samba 3.0.4 on QNX 6.1.0.

1. I downloaded the source tarball "samba-latest.tar.gz" from a mirror 
site.  The downloading was done on an MS-Windows system.  The tarball was 
transferred to the QNX box by loading into Emacs on MS-Windows with "M-x 
find-file-literally" then saving it with Emacs's ftp facility: "C-x C-w 
/root at ww.xx.yy.zz:/<directory>" [where ww.xx.yy.zz. is the IP address of 
the QNX machine].

2. I logged on as root in the QNX machine.

3. I unpacked it into a sensible directory with "gunzip" and "tar -xf
samba-latest.tar".  [tar reported that two files couldn't be unpacked 
because their names were too long: 
../docs/htmldocs/guide/.....ProtocolStats.png and TraceStats.png, but 
this is probably (hopefully?) unimportant.]

4. From ...../samba-3.0.4/source I did
  # ./configure | tee configure-messages.txt
and this seemed to work OK.

5. # make 2> make-stderr.txt | tee make-stdout.txt
This produced this error message:
gawk: script/mkproto.awk:14: fatal: cannot open file 
`cnrpc_client/cli_lsarpc.cnrpc_client/cli_samr.cnrpc_client/cli_netlogon.cnrpc_client/...
  [middle of very long error message line snipped]
..../srv_spoolss_nt.cnrpc_server/srv_echo.cnrpc_server/srv_echo_nt.cnsam/idmap.cnsam/idmap_util.cnsam/idmap_tdb.cnlibsmb/spnego.cnlibsmb/passchange.c' for reading (Filename too long)

The entire output on stdout was:
Using FLAGS =  -O -I./popt -Iinclude -I/home/AM/samba-3.0.4/source/include -I/home/AM/samba-3.0.4/source/ubiqx -I/home/AM/samba-3.0.4/source/smbwrapper  -I.  -I/home/AM/samba-3.0.4/source    
      LIBS = -lsocket
      LDSHFLAGS = -shared 
      LDFLAGS = 
Generating smbd/build_options.c
Building include/proto.h
creating /home/AM/samba-3.0.4/source/include/proto.h
Building include/wrepld_proto.h
creating /home/AM/samba-3.0.4/source/include/wrepld_proto.h
Building include/build_env.h
creating /home/AM/samba-3.0.4/source/nsswitch/winbindd_proto.h
creating /home/AM/samba-3.0.4/source/web/swat_proto.h
creating /home/AM/samba-3.0.4/source/client/client_proto.h
creating /home/AM/samba-3.0.4/source/utils/net_proto.h
creating /home/AM/samba-3.0.4/source/utils/ntlm_auth_proto.h
Compiling dynconfig.c

5. Curiously, "make -n > make-n.txt" [make -n means "run make reporting
actions to be done without actually doing them.] (produces a decent 
looking output, starting thus:

echo "Using FLAGS =  -O -I./popt -Iinclude -I/home/AM/samba-3.0.4/source/include -I/home/AM/samba-3.0.4/source/ubiqx -I/home/AM/samba-3.0.4/source/smbwrapper  -I.  -I/home/AM/samba-3.0.4/source    "
echo "      LIBS = -lsocket"
echo "      LDSHFLAGS = -shared "
echo "      LDFLAGS = "
echo Compiling dynconfig.c
gcc  -O -I./popt -Iinclude -I/home/AM/samba-3.0.4/source/include -I/home/AM/samba-3.0.4/source/ubiqx -I/home/AM/samba-3.0.4/source/smbwrapper  -I.  -I/home/AM/samba-3.0.4/source     -DCONFIGFILE=\"/usr/local/samba/lib/smb.conf\"  -DSBINDIR=\"/usr/local/samba/sbin\" -DBINDIR=\"/usr/local/samba/bin\" -DDRIVERFILE=\"\"  -DLMHOSTSFILE=\"/usr/local/samba/lib/lmhosts\"  -DSWATDIR=\"/usr/local/samba/swat\"  -DLOCKDIR=\"/usr/local/samba/var/locks\" -DPIDDIR=\"/usr/local/samba/var/locks\" -DLIBDIR=\"/usr/local/samba/lib\" -DLOGFILEBASE=\"/usr/local/samba/var\" -DSHLIBEXT=\"so\" -DCONFIGDIR=\"/usr/local/samba/lib\" -DSMB_PASSWD_FILE=\"/usr/local/samba/private/smbpasswd\" -DPRIVATE_DIR=\"/usr/local/samba/private\" -c dynconfig.c -o dynconfig.o 
if (: >> param/loadparm.o || : > param/loadparm.o) >/dev/null 2>&1; then rm -f param/loadparm.o; else \
 dir=`echo param/loadparm.o | sed 's,/[^/]*$,,;s,^$,.,'` || exec false; if test -d "$dir"; then :; else echo mkdir "$dir"; mkdir -p "$dir" >/dev/null 2>&1 || test -d "$dir" || mkdir "$dir" || exec false; fi || exec false; fi
echo Compiling param/loadparm.c


I'd greatly appreciate help getting the build scripts working on my 
system.

Thanks in advance!

-- 
Alan Mackenzie
Motorola, Munich (Germany)


More information about the samba mailing list