building on Red Hat 5.2

Adam Wiggins adam at angel.com
Wed Sep 29 22:52:33 GMT 1999


Hi,

I'm trying to build samba 2.0.5a on Red Hat 5.2.  It originally came with
1.9something, which seemed to have some bugs accessing large mounted
directories.  I downloaded Red Hat's updates package, but unfortunately it
only comes with smbclient and smbd, and what I need is smbmount and
smbumount.  My binaries from my more recent systems (RH6 and OL2.2) won't
run due to glibc2.0/glibc2.1 problems.

If someone can point me to some glibc2.0 binaries that would be great.
I've already tried compiling all the binaries as staticly linked on the
other system, but when running smbclient or smbmount I get errors:

Get_Hostbyname: Unknown host pcpsx
Failed to get my hostname.
Get_Hostbyname: Unknown host pcpsx
Added interface ip=184.248.12.8 bcast=184.248.255.255 nmask=255.255.0.0
mount error: Device or resource busy
Please refer to the smbmnt(8) manual page
mount failed

The strange thing is that the hostname *is* pcpsx, so it's finding it just
fine...

The kernel version is 2.0.36.  Do I need a newer version of smbfs in order
to use samba 2.0's smbmount, perhaps?

When trying to compile, the compile line is:

Using FLAGS =  -O -Iinclude -I./include -I./ubiqx -I./smbwrapper
-DSMBLOGFILE="/usr/local/samba/var/log.smb"
-DNMBLOGFILE="/usr/local/samba/var/log.nmb"
-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"
-DSMBRUN="/usr/local/samba/bin/smbrun"
-DCODEPAGEDIR="/usr/local/samba/lib/codepages"
-DDRIVERFILE="/usr/local/samba/lib/printers.def"
-DBINDIR="/usr/local/samba/bin" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
Using FLAGS32 =  -O -Iinclude -I./include -I./ubiqx -I./smbwrapper
-DSMBLOGFILE="/usr/local/samba/var/log.smb"
-DNMBLOGFILE="/usr/local/samba/var/log.nmb"
-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"
-DSMBRUN="/usr/local/samba/bin/smbrun"
-DCODEPAGEDIR="/usr/local/samba/lib/codepages"
-DDRIVERFILE="/usr/local/samba/lib/printers.def"
-DBINDIR="/usr/local/samba/bin" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/usr/local/samba/private/smbpasswd"
Using LIBS = -lreadline -ldl  -lcrypt
Compiling client/smbmount.c

And the errors are:

In file included from /usr/include/linux/smb_fs.h:11,
                 from client/smbmount.c:28:
/usr/include/linux/smb.h:47: warning: `PVAL' redefined
include/byteorder.h:136: warning: this is the location of the previous
definition
/usr/include/linux/smb.h:76: warning: `smb_base' redefined
include/smb.h:1320: warning: this is the location of the previous
definition
In file included from /usr/include/linux/fs.h:12,
                 from /usr/include/linux/smb_fs.h:12,
                 from client/smbmount.c:28:
/usr/include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/include/waitflags.h:25: warning: this is the location of the previous
definition
/usr/include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/include/waitflags.h:26: warning: this is the location of the previous
definition
In file included from /usr/include/linux/net.h:23,
                 from /usr/include/linux/fs.h:15,
                 from /usr/include/linux/smb_fs.h:12,
                 from client/smbmount.c:28:
/usr/include/linux/socket.h:38: warning: `SCM_RIGHTS' redefined
/usr/include/socketbits.h:222: warning: this is the location of the
previous definition
/usr/include/linux/socket.h:41: warning: `SOCK_STREAM' redefined
/usr/include/socketbits.h:40: warning: this is the location of the
previous defi

[snip several pages of repeats]

/usr/include/linux/in.h:37: conflicting types for `IPPROTO_MAX'
/usr/include/netinet/in.h:47: previous declaration of `IPPROTO_MAX'
/usr/include/linux/in.h:41: redefinition of `struct in_addr'
/usr/include/linux/in.h:48: redefinition of `struct ip_mreq'
/usr/include/linux/in.h:56: redefinition of `struct sockaddr_in'
In file included from /usr/include/linux/in.h:120,
                 from /usr/include/linux/smb_fs.h:13,
                 from client/smbmount.c:28:
/usr/include/asm/byteorder.h:22: conflicting types for `ntohl'
/usr/include/netinet/in.h:204: previous declaration of `ntohl'
/usr/include/asm/byteorder.h:24: conflicting types for `htonl'
/usr/include/netinet/in.h:206: previous declaration of `htonl'
client/smbmount.c: In function `send_fs_socket':
client/smbmount.c:295: storage size of `conn_options' isn't known
client/smbmount.c:314: `SMB_CASE_DEFAULT' undeclared (first use this
function)
client/smbmount.c:314: (Each undeclared identifier is reported only once
client/smbmount.c:314: for each function it appears in.)
client/smbmount.c:325: `SMB_IOC_NEWCONN' undeclared (first use this
function)
make: *** [client/smbmount.o] Error 1


Thanks for any pointers.



More information about the samba mailing list