I am unable to build samba 3.0.20 on HP-UX 11i v1 with gcc 4.0.1 or 3.4.4. I tried to build it by doing the following: ./configure --prefix=/usr/local/samba-3.0.20 gmake With gcc 4.0.1 I get the following errors: Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/home/depot/samba/src/samba-3.0.20/source/include -I/home/depot/samba/src/samba-3.0.20/source/ubiqx -I. -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL -I/home/depot/samba/src/samba-3.0.20/source LIBS = -lgen -lsec -lnsl -liconv LDSHFLAGS = -shared LDFLAGS = PIE_CFLAGS = -fPIE PIE_LDFLAGS = -pie Compiling dynconfig.c In file included from /usr/include/net/if.h:234, from include/includes.h:288, from dynconfig.c:21: /usr/include/net/if6.h:77: error: field 'iflru_addr' has incomplete type /usr/include/net/if6.h:78: error: field 'iflru_dstaddr' has incomplete type /usr/include/net/if6.h:118: error: field 'lifra_addr' has incomplete type /usr/include/net/if6.h:119: error: field 'lifra_mask' has incomplete type gmake: *** [dynconfig.o] Error 1 With gcc 3.4.4 I get further but eventually get these errors: Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/home/depot/samba/src/samba-3.0.20/source/include -I/home/depot/samba/src/samba-3.0.20/source/ubiqx -I. -D_HPUX_SOURCE -D_POSIX_SOURCE -D_LARGEFILE64_SOURCE -D_ALIGNMENT_REQUIRED=1 -D_MAX_ALIGNMENT=4 -DMAX_POSITIVE_LOCK_OFFSET=0x1ffffffffffLL -I/home/depot/samba/src/samba-3.0.20/source LIBS = -lgen -lsec -lnsl -liconv LDSHFLAGS = -shared LDFLAGS = PIE_CFLAGS = -fPIE PIE_LDFLAGS = -pie Compiling auth/pass_check.c auth/pass_check.c: In function `password_check': auth/pass_check.c:550: warning: passing arg 1 of `strcmp' makes pointer from integer without a cast auth/pass_check.c: In function `pass_check': auth/pass_check.c:648: warning: assignment makes pointer from integer without a cast auth/pass_check.c:649: error: dereferencing pointer to incomplete type auth/pass_check.c:650: error: dereferencing pointer to incomplete type auth/pass_check.c:651: error: dereferencing pointer to incomplete type auth/pass_check.c:668: warning: initialization makes pointer from integer without a cast auth/pass_check.c:669: error: dereferencing pointer to incomplete type auth/pass_check.c:670: error: dereferencing pointer to incomplete type gmake: *** [auth/pass_check.o] Error 1
I remember that Samba was successfully built in later 3.x Samba releases, so I think this one can be closed safely. Apart of that our build system was completely replaced in the meantime. Anyone feel free to contribute a HP-UX machine for testing samba builds for the future!