[Samba] Compile errors 3.0.4 solaris 8

Allen Jasewicz
2004-05-20T12:36:07Z

I had sent this email earlier and received no responses.  Hopefully I am not
being repetitive.  This is the first time I have used the list.  I will send it
again.  Since the message was sent I removed all the software I have installed
and re-installed it to no avail.  I don't know if the compile problems are
the root cause or its just the Windows folks (within my org) are not playing
nice, however the end result is that I cannot join/register my Samba server as a
client to our windows AD server.  I do have 3.0.1 running on a different host
and joined to an NT4.0 domain (which is going away soon) I am trying to get a
new compile of 3.0.4 running with AD.

 am getting a few compile errors when trying to compile Samba samba-3.0.4.

LDFLAGS=-L/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.0
LD_LIBRARY_PATH=/usr/local/lib:/usr/local/include:/usr/local/BerkeleyDB.4.2/lib
(I have tried gcc 3.3.2 and  3.4.0 also installed libnet-1.0.2, libpng-1.2.4,
libtool-1.5, make-3.80,
   automake-1.5, autoconf-2.59, openldap-stable-20040421, krb5-1.3.3, db-4.2.52)

./configure --prefix=/apps_failover/samba \
--exec-prefix=/apps_failover/samba \
--with-readline=/usr/local/include \
--with-libiconv=/usr/local/include \
--with-smbwrapper \
--with-dce-dfs \
--with-krb5=/usr/local

checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... ./install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for perl... /usr/bin/perl
checking for ar... ar
checking if the linker (ld) is GNU ld... no
checking for library containing strerror... none required
checking whether gcc and cc understand -c and -o together... yes
checking that the C compiler understands -Werror... yes
checking that the C compiler understands volatile... yes
checking uname -s... SunOS
checking uname -r... 5.8
checking uname -m... sun4u
checking uname -p... sparc
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking config.cache system type... same
enabling large file support
checking for gcc option to accept ANSI C... none needed
checking for inline... inline
 <...>
checking for memory.h... (cached) yes
checking net/if.h usability... no
checking net/if.h presence... yes
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing prerequisite headers?
configure: WARNING: net/if.h: proceeding with the preprocessor's result
checking for net/if.h... yes
checking rpc/rpc.h usability... yes
<...>   (It seems that it repets itself)
checking for limits.h... yes
checking for memory.h... (cached) yes
checking net/if.h usability... no
checking net/if.h presence... yes
configure: WARNING: net/if.h: present but cannot be compiled
configure: WARNING: net/if.h: check for missing prerequisite headers?
configure: WARNING: net/if.h: proceeding with the preprocessor's result
checking for net/if.h... yes
<...>
checking security/pam_modules.h usability... no
checking security/pam_modules.h presence... yes
configure: WARNING: security/pam_modules.h: present but cannot be compiled
configure: WARNING: security/pam_modules.h: check for missing prerequisite
headers?
configure: WARNING: security/pam_modules.h: proceeding with the
preprocessor's result
checking for security/pam_modules.h... yes
checking security/_pam_macros.h usability... no
checking security/_pam_macros.h presence... no
<...>
checking for shadow.h... yes
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
checking for netinet/ip.h... yes
checking netinet/tcp.h usability... yes
<...>

the first listed failed program is as follows:

configure:2247: gcc -c -g -O2  conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2250: $? = 1
configure: failed program was:
#ifndef __cplusplus
  choke me
#endif
configure:2368: checking how to run the C preprocessor
configure:2394: gcc -E  conftest.c
configure:2400: $? = 0
configure:2427: gcc -E  conftest.c
configure:2423:28: ac_nonexistent.h: No such file or directory
configure:2433: $? = 1
configure: failed program was:
#line 2422 "configure"
#include "confdefs.h"
#include <ac_nonexistent.h>
configure:2470: result: gcc -E
configure:2485: gcc -E  conftest.

Where I think the problem may be

configure:4730: checking for stdint.h
configure:4743: gcc -c -O   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
conftest.c >&5
configure:4771:20: stdint.h: No such file or directory
configure:4746: $? = 1
configure: failed program was:
#line 4735 "configure"
#include "confdefs.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
#if HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif

Why am I getting these errors?  Are they show stoppers?  and Can I get some
hints as hot to solve them?
I tried to give the most relivent information.  I can provide more if needed.

Thanks