1846897 Members
3890 Online
110256 Solutions
New Discussion

Re: compiling samba

 
SOLVED
Go to solution
Gerd Oberlechner
Occasional Contributor

compiling samba

hi all...
now i tried to compile samba 2.2.5 on my own under hpux 11.11 with gcc 3.1...
first i configured samba with "configure --prefix=/mypath/sw/samba --with-msdfs" and than i called "make".. the result was the following error...

Using LIBS = -lgen -lsec -lnsl
Compiling smbd/server.c
In file included from include/includes.h:107,
from smbd/server.c:22:
/usr/include/sys/socket.h:484: parse error before "sendfile"
/usr/include/sys/socket.h:485: parse error before "bsize_t"
/usr/include/sys/socket.h:486: parse error before "sendpath"
/usr/include/sys/socket.h:487: parse error before "bsize_t"
/usr/include/sys/socket.h:493: parse error before "sendfile64"
/usr/include/sys/socket.h:494: parse error before "bsize64_t"
/usr/include/sys/socket.h:495: parse error before "sendpath64"
/usr/include/sys/socket.h:496: parse error before "bsize64_t"
In file included from /usr/include/sys/mp.h:55,
from /usr/include/sys/malloc.h:59,
from /usr/include/net/netmp.h:53,
from /usr/include/net/if.h:59,
from include/includes.h:269,
from smbd/server.c:22:
/usr/include/machine/sys/setjmp.h:45: redefinition of `struct label_t'
In file included from smbd/server.c:22:
include/includes.h:402: conflicting types for `socklen_t'
/usr/include/sys/socket.h:199: previous declaration of `socklen_t'
*** Error exit code 1

perhaps someone can help me...

sincerly yours
Gerd Oberlechner
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: compiling samba

Why dont you save yourself a lot of hassle and install HP's version of Samba called CIFS;

B8723AA A.01.02 CIFS/9000 Client Lic. for 9000 Servers
B8725AA A.01.02 CIFS/9000 Server Lic. for 9000 Servers

You can download from www.software.hp.com
Im from Palmerston North, New Zealand, but somehow ended up in London...
Rainer von Bongartz
Honored Contributor

Re: compiling samba


One reason may be that CIFS is always based on older releases than the up-to-date samba version

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
benoit Bruckert
Honored Contributor
Solution

Re: compiling samba

Hi,
Stefan,
I'm not sure that CIFS implement the dfs support by default, and it's a binary product, then you cannot change it later....
Gerd,
The trouble you have is certainly something about 64 bit (as what I saw in the errors).
gcc 3.1 support 64 bit, but does you system can support it ??
Try to compile with an older version gcc 2.95 for example...
I didn't try to compile samba with gcc 3.1, but with 2.95 it's ok...

hope that help
Benoit
Une application mal pansée aboutit à une usine à gaze (GHG)
T G Manikandan
Honored Contributor

Re: compiling samba

I had the same problem during the installation of samba.

Please download the make-3.7.9 from

http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.79.1/

Install it and use this make version

It installs the executable in /usr/bin

The present make available on your system is in
/usr/ccs/bin
Yuri Kozlov
Advisor

Re: compiling samba

You need edit file
/usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.2/include/sys/types.h

Comment definition struct label_t and
write
typedef long sbsize_t;

Regards, Yuri Kozlov