[Samba] Samba 4.0 compilation problem

jasmine mary jselvaraj at tiaa-cref.org
Fri Apr 14 20:38:11 GMT 2006


Thank u Jelmer ..It started to compile once i updated with the new release of
GCC(3.4.2). But still it is giving errors. Please help me out of this.

./configure 

Summary:

Support for GTK+ frontends: no (install gtk,gconf)
Support for SSL in SWAT: no (install GNUTLS)
Support for threads in smbd (see --with-pthread): no (install PTHREAD)
Support for intelligent command line editing: no (install READLINE)
Support for changing process titles (see --with-setproctitle): no (install
SETPROCTITLE)
Support for using extended attributes: no (install XATTR)
Support for using libblkid: no (install BLKID)
Support for using pam: yes
Using external popt: yes
Developer mode: no
Automatic dependencies: yes
Using shared libraries internally (experimental): no (try --enable-dso)

Do i need to install all the thing specified in summary?

make pch all

Compiling heimdal/lib/vers/print_version.c with host compiler
In file included from heimdal_build/roken.h:7,
                 from heimdal/lib/vers/print_version.c:38:
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
Compiling heimdal/lib/asn1/main.c with host compiler
In file included from heimdal_build/roken.h:7,
                 from heimdal/lib/asn1/gen_locl.h:51,
                 from heimdal/lib/asn1/main.c:34:
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
Building heimdal/lib/asn1/lex.l with lex
"lex.l":line 295: Error: Too many positions
Try using %p num
Generating dependencies for heimdal/lib/asn1/lex.c
gcc: heimdal/lib/asn1/lex.c: No such file or directory
gcc: no input files
rm -f include/includes.h.gch
Precompiling include/includes.h

make install

Compiling heimdal/lib/vers/print_version.c with host compiler
In file included from heimdal_build/roken.h:7,
                 from heimdal/lib/vers/print_version.c:38:
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
Compiling heimdal/lib/asn1/main.c with host compiler
In file included from heimdal_build/roken.h:7,
                 from heimdal/lib/asn1/gen_locl.h:51,
                 from heimdal/lib/asn1/main.c:34:
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
Building heimdal/lib/asn1/lex.l with lex
"lex.l":line 295: Error: Too many positions
Try using %p num
Generating dependencies for heimdal/lib/asn1/lex.c
gcc: heimdal/lib/asn1/lex.c: No such file or directory
gcc: no input files
Samba will be installed into:
  basedir:     /usr/local/samba
  bindir:      /usr/local/samba/bin
  sbindir:     /usr/local/samba/sbin
  libdir:      /usr/local/samba/lib
  modulesdir:  /usr/local/samba/modules
  includedir:  /usr/local/samba/include
  vardir:      /usr/local/samba/var
  privatedir:  /usr/local/samba/private
  piddir:      /usr/local/samba/var/run
  lockdir:     /usr/local/samba/var/locks
  logfilebase: /usr/local/samba/var
  setupdir:    /usr/local/samba/share/setup
  jsdir:       /usr/local/samba/share/js
  swatdir:     /usr/local/samba/share/swat
  mandir:      /usr/local/samba/man
  datadir:     /usr/local/samba/share
  winbindd_socket_dir:  /usr/local/samba/var/run/winbind_pipe
Compiling auth/gensec/schannel.c
Compiling auth/gensec/schannel_sign.c
Pre-Linking MODULE gensec_schannel
Compiling lib/ldb/modules/skel.c
Pre-Linking MODULE ldb_skel
Compiling librpc/gen_ndr/ndr_echo.c
Pre-Linking SUBSYSTEM NDR_ECHO
Compiling rpc_server/samr/dcesrv_samr.c
Compiling rpc_server/samr/samr_password.c
Pre-Linking MODULE dcerpc_samr
Compiling wrepl_server/wrepl_server.c
Compiling wrepl_server/wrepl_in_connection.c
Compiling wrepl_server/wrepl_in_call.c
Compiling wrepl_server/wrepl_apply_records.c
Compiling wrepl_server/wrepl_periodic.c
Compiling wrepl_server/wrepl_scavenging.c
Compiling wrepl_server/wrepl_out_pull.c
Compiling wrepl_server/wrepl_out_push.c
Compiling wrepl_server/wrepl_out_helpers.c
Pre-Linking SUBSYSTEM WREPL_SRV
Compiling lib/events/events.c
Compiling lib/events/events_standard.c
Pre-Linking SUBSYSTEM LIBEVENTS
Compiling heimdal/lib/des/aes.c
Compiling heimdal/lib/des/des.c
Compiling heimdal/lib/des/md2.c
Compiling heimdal/lib/des/md4.c
Compiling heimdal/lib/des/md5.c
Compiling heimdal/lib/des/rc2.c
Compiling heimdal/lib/des/rc4.c
Compiling heimdal/lib/des/rijndael-alg-fst.c
Compiling heimdal/lib/des/rnd_keys.c
Compiling heimdal/lib/des/sha.c
Compiling heimdal/lib/des/ui.c
In file included from heimdal_build/roken.h:7,
                 from heimdal/lib/des/ui.c:44:
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
./heimdal/lib/roken/roken.h:556: error: conflicting types for 'gai_strerror'
/usr/include/netdb.h:307: error: previous declaration of 'gai_strerror' was
here
make: *** [heimdal/lib/des/ui.o] Error 1


Your suggestion helped me at one level. Plese help me out to resolve this
issue.

Jasmine

--
View this message in context: http://www.nabble.com/Samba-4.0-compilation-problem-t1425848.html#a3922907
Sent from the Samba - General forum at Nabble.com.



More information about the samba mailing list