Bug 3085 - Unable to build samba 3.0.20 on HP-UX 11i v1
Summary: Unable to build samba 3.0.20 on HP-UX 11i v1
Status: RESOLVED WORKSFORME
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.20
Hardware: PA-RISC HP-UX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-11 16:55 UTC by Michael Madden
Modified: 2017-12-06 09:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Madden 2005-09-11 16:55:06 UTC
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
Comment 1 Björn Jacke 2017-12-06 09:17:57 UTC
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!