Re: [Samba] Failed building 3.0.30 for tru64 4.0F
On Wed, Jun 11, 2008 at 04:19:57PM -0700, Kai Lanz wrote: There are a whole bunch of warnings in the gmake output that list unresolved routines during the following steps: The missing symbols are provided by smbd. Volker pgpt3KgX7vjFq.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
On Jun 10, 2008, at 8:40 AM, Volker Lendecke wrote: It compiled with the attached patch. I don't know why the compiler isn't able to optimize away the safe_string stuff. Volker Attachment: tru64_4.diff Thanks, Volker, this seems to have done the trick. Starting from a fresh 3.0.30 tarball, I applied your patches, and was then able to get a successful build in the usual way (config for cc, not gcc, fix TDB_BASE_OBJ in Makefile, and use gmake, not make). This is on an Alpha Tru64 v4.0G box. There are a whole bunch of warnings in the gmake output that list unresolved routines during the following steps: Linking libmsrpc shared library bin/libmsrpc.so Linking libaddns shared library bin/libaddns.so Building plugin bin/recycle.so Building plugin bin/audit.so Building plugin bin/extd_audit.so Building plugin bin/full_audit.so Building plugin bin/netatalk.so Building plugin bin/fake_perms.so Building plugin bin/default_quota.so Building plugin bin/readonly.so Building plugin bin/cap.so Building plugin bin/expand_msdfs.so Building plugin bin/shadow_copy.so Building plugin bin/readahead.so Building plugin bin/CP850.so Building plugin bin/CP437.so Building plugin bin/script.so But these appear to be harmless -- I got the same warnings when I built 3.0.25, and it's been running just fine on our Alpha box for months. I expect to be able to test this build of 3.0.30 on Monday. -- Kai Lanz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
On Sun, Jun 01, 2008 at 03:20:00PM +0200, Bengt Nilsson wrote: If I change to int32_t in the corresponding source files, it all compiles but it does not link: It compiled with the attached patch. I don't know why the compiler isn't able to optimize away the safe_string stuff. Volker diff --git a/source/include/safe_string.h b/source/include/safe_string.h index d278e29..826a571 100644 --- a/source/include/safe_string.h +++ b/source/include/safe_string.h @@ -79,7 +79,7 @@ size_t __unsafe_string_function_usage_here_size_t__(void); size_t __unsafe_string_function_usage_here_char__(void); -#ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS +#if 0 /* if the compiler will optimize out function calls, then use this to tell if we are have the correct types (this works only where sizeof() returns the size of the buffer, not @@ -172,7 +172,7 @@ size_t __unsafe_string_function_usage_here_char__(void); #define alpha_strcpy(dest,src,other_safe_chars,maxlength) alpha_strcpy_fn(SAFE_STRING_FUNCTION_NAME,SAFE_STRING_LINE,dest,src,other_safe_chars,maxlength) #define StrnCpy(dest,src,n) StrnCpy_fn(SAFE_STRING_FUNCTION_NAME,SAFE_STRING_LINE,dest,src,n) -#ifdef HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS +#if 0 /* if the compiler will optimize out function calls, then use this to tell if we are have the correct types (this works only where sizeof() returns the size of the buffer, not diff --git a/source/lib/replace/libreplace_cc.m4 b/source/lib/replace/libreplace_cc.m4 index 74c53ca..4ac08e8 100644 --- a/source/lib/replace/libreplace_cc.m4 +++ b/source/lib/replace/libreplace_cc.m4 @@ -105,25 +105,34 @@ AC_CHECK_HEADERS([standards.h]) # Solaris needs HAVE_LONG_LONG defined AC_CHECK_TYPES(long long) +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(char) +AC_CHECK_SIZEOF(short) +AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(long long) + AC_CHECK_TYPE(uint_t, unsigned int) AC_CHECK_TYPE(int8_t, char) AC_CHECK_TYPE(uint8_t, unsigned char) AC_CHECK_TYPE(int16_t, short) AC_CHECK_TYPE(uint16_t, unsigned short) + +if test $ac_cv_sizeof_int -eq 4 ; then +AC_CHECK_TYPE(int32_t, int) +AC_CHECK_TYPE(uint32_t, unsigned int) +elif test $ac_cv_size_long -eq 4 ; then AC_CHECK_TYPE(int32_t, long) AC_CHECK_TYPE(uint32_t, unsigned long) +else +AC_MSG_ERROR([LIBREPLACE no 32-bit type found]) +fi + AC_CHECK_TYPE(int64_t, long long) AC_CHECK_TYPE(uint64_t, unsigned long long) AC_CHECK_TYPE(size_t, unsigned int) AC_CHECK_TYPE(ssize_t, int) -AC_CHECK_SIZEOF(int) -AC_CHECK_SIZEOF(char) -AC_CHECK_SIZEOF(short) -AC_CHECK_SIZEOF(long) -AC_CHECK_SIZEOF(long long) - AC_CHECK_SIZEOF(off_t) AC_CHECK_SIZEOF(size_t) AC_CHECK_SIZEOF(ssize_t) diff --git a/source/libaddns/dns.h b/source/libaddns/dns.h index 4862a23..be22760 100644 --- a/source/libaddns/dns.h +++ b/source/libaddns/dns.h @@ -29,6 +29,10 @@ #include config.h +#ifdef HAVE_INT32_FROM_RPC_RPC_H +#include rpc/rpc.h +#endif + #include stdio.h #include stdlib.h #include fcntl.h pgpD1bFucFcYN.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
On Tue, Jun 03, 2008 at 07:15:43AM +0200, Bengt Nilsson wrote: I downgraded to autoconf 2.61 which eliminated the circular dependency error. Nevertheless, the uint32_t and final link problem remains. Is there ANY chance that samba 3 will ever build under tru64 4.0F? Sure. Right now it is a matter of resources, but in general we are very paranoid about building on all platforms around. Give us a few days please. Sorry for the build breakage. Volker pgpqdIUa6IuNI.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
That's good to hear, I'll try to be patient. 3 jun 2008 kl. 10.05 skrev Volker Lendecke: On Tue, Jun 03, 2008 at 07:15:43AM +0200, Bengt Nilsson wrote: I downgraded to autoconf 2.61 which eliminated the circular dependency error. Nevertheless, the uint32_t and final link problem remains. Is there ANY chance that samba 3 will ever build under tru64 4.0F? Sure. Right now it is a matter of resources, but in general we are very paranoid about building on all platforms around. Give us a few days please. Sorry for the build breakage. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
I tired to run autogen.sh: (mc2-p006)/diskeb2/sysproj/2008/samba-3.0.30/source/ ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h' created for Samba(3.0.30) ./autogen.sh: running autoheader -I. -Ilib/replace configure.in:341: error: AC_REQUIRE: circular dependency of AC_AIX lib/replace/autoconf-2.60.m4:182: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:451: AC_AIX is expanded from... lib/replace/autoconf-2.60.m4:182: AC_USE_SYSTEM_EXTENSIONS is expanded from... configure.in:341: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 autoheader: '/usr/local/bin/autom4te' failed with exit status: 1 Any suggestions? 1 jun 2008 kl. 14.51 skrev Bengt Nilsson: Dear friends, I failed to buld samba 3.0.30 for tru64unix 4.0F. I am curently locked to this os version due to other production software. We currently run Samba 2.2.8a but we were requested to upgrade by our network group. I downloaded 3.3.30 and did $ cd source $ ./configure no warnings or errors as far as I could see, except checking for replacing readdir using getdirentries()... failure: readdir [ Failed for unlink - 1 = Not owner ] failure: readdir [ Failed for unlink - 1 = Not owner ] (what does this mean?) $ make Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/popt -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/iniparser/src - Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/ include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/lib - D_SAMBA_BUILD_=3 PICFLAG= -fPIC LIBS = -lproplist -lsecurity -lresolv -lresolv LDFLAGS= -pie DYNEXP = LDSHFLAGS = -shared SHLIBEXT = so SONAMEFLAG = -Wl,-soname, Generating smbd/build_options.c Building include/proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/include/proto.h Building include/build_env.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/nsswitch/winbindd_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/web/swat_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/client/client_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/net_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/ntlm_auth_proto.h Compiling dynconfig.c In file included from include/includes.h:789, from /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/ samba-3.0.30/source/dynconfig.c:21: include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here The following command failed: gcc -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/diskeb2/sysproj/ 2008/samba-3.0.30/source/popt -I/usr/users/eb0/bnilsson/diskeb2/ sysproj/2008/samba-3.0.30/source/iniparser/src -Iinclude -I./ include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./ libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/lib -D_SAMBA_BUILD_=3 - DCONFIGFILE=/usr/local/samba/lib/smb.conf -DSBINDIR=/usr/local/ samba/sbin -DBINDIR=/usr/local/samba/bin -DLMHOSTSFILE=/usr/ local/samba/lib/lmhosts -DSWATDIR=/usr/local/samba/swat - DLOCKDIR=/usr/local/samba/var/locks
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
I downgraded to autoconf 2.61 which eliminated the circular dependency error. Nevertheless, the uint32_t and final link problem remains. Is there ANY chance that samba 3 will ever build under tru64 4.0F? 2 jun 2008 kl. 14.48 skrev Bengt Nilsson: I tired to run autogen.sh: (mc2-p006)/diskeb2/sysproj/2008/samba-3.0.30/source/ ./autogen.sh ./autogen.sh: running script/mkversion.sh ./script/mkversion.sh: 'include/version.h' created for Samba(3.0.30) ./autogen.sh: running autoheader -I. -Ilib/replace configure.in:341: error: AC_REQUIRE: circular dependency of AC_AIX lib/replace/autoconf-2.60.m4:182: AC_USE_SYSTEM_EXTENSIONS is expanded from... ../../lib/autoconf/specific.m4:451: AC_AIX is expanded from... lib/replace/autoconf-2.60.m4:182: AC_USE_SYSTEM_EXTENSIONS is expanded from... configure.in:341: the top level autom4te: /usr/local/bin/m4 failed with exit status: 1 autoheader: '/usr/local/bin/autom4te' failed with exit status: 1 Any suggestions? 1 jun 2008 kl. 14.51 skrev Bengt Nilsson: Dear friends, I failed to buld samba 3.0.30 for tru64unix 4.0F. I am curently locked to this os version due to other production software. We currently run Samba 2.2.8a but we were requested to upgrade by our network group. I downloaded 3.3.30 and did $ cd source $ ./configure no warnings or errors as far as I could see, except checking for replacing readdir using getdirentries()... failure: readdir [ Failed for unlink - 1 = Not owner ] failure: readdir [ Failed for unlink - 1 = Not owner ] (what does this mean?) $ make Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/popt -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/iniparser/src - Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./ tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/ users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/lib - D_SAMBA_BUILD_=3 PICFLAG= -fPIC LIBS = -lproplist -lsecurity -lresolv -lresolv LDFLAGS= -pie DYNEXP = LDSHFLAGS = -shared SHLIBEXT = so SONAMEFLAG = -Wl,-soname, Generating smbd/build_options.c Building include/proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/include/proto.h Building include/build_env.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/nsswitch/winbindd_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/web/swat_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/client/client_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/net_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/ntlm_auth_proto.h Compiling dynconfig.c In file included from include/includes.h:789, from /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/ samba-3.0.30/source/dynconfig.c:21: include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here The following command failed: gcc -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/diskeb2/sysproj/ 2008/samba-3.0.30/source/popt -I/usr/users/eb0/bnilsson/diskeb2/ sysproj/2008/samba-3.0.30/source/iniparser/src -Iinclude -I./ include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./ libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/lib
[Samba] Failed building 3.0.30 for tru64 4.0F
Dear friends, I failed to buld samba 3.0.30 for tru64unix 4.0F. I am curently locked to this os version due to other production software. We currently run Samba 2.2.8a but we were requested to upgrade by our network group. I downloaded 3.3.30 and did $ cd source $ ./configure no warnings or errors as far as I could see, except checking for replacing readdir using getdirentries()... failure: readdir [ Failed for unlink - 1 = Not owner ] failure: readdir [ Failed for unlink - 1 = Not owner ] (what does this mean?) $ make Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/popt -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/iniparser/src - Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/ include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/lib -D_SAMBA_BUILD_=3 PICFLAG= -fPIC LIBS = -lproplist -lsecurity -lresolv -lresolv LDFLAGS= -pie DYNEXP = LDSHFLAGS = -shared SHLIBEXT = so SONAMEFLAG = -Wl,-soname, Generating smbd/build_options.c Building include/proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/include/proto.h Building include/build_env.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/nsswitch/winbindd_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/web/swat_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/client/client_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/net_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/ntlm_auth_proto.h Compiling dynconfig.c In file included from include/includes.h:789, from /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/ samba-3.0.30/source/dynconfig.c:21: include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1440: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1442: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1444: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1446: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here include/proto.h:1450: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here The following command failed: gcc -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/diskeb2/sysproj/ 2008/samba-3.0.30/source/popt -I/usr/users/eb0/bnilsson/diskeb2/ sysproj/2008/samba-3.0.30/source/iniparser/src -Iinclude -I./include - I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./ librpc -DHAVE_CONFIG_H -I/usr/users/eb0/bnilsson/diskeb2/sysproj/ 2008/samba-3.0.30/source/lib -D_SAMBA_BUILD_=3 -DCONFIGFILE=/usr/ local/samba/lib/smb.conf -DSBINDIR=/usr/local/samba/sbin - DBINDIR=/usr/local/samba/bin -DLMHOSTSFILE=/usr/local/samba/lib/ lmhosts -DSWATDIR=/usr/local/samba/swat -DLOCKDIR=/usr/local/ samba/var/locks -DPIDDIR=/usr/local/samba/var/locks -DLIBDIR=/usr/ local/samba/lib -DLOGFILEBASE=/usr/local/samba/var -DSHLIBEXT=so - DCONFIGDIR=/usr/local/samba/lib -DSMB_PASSWD_FILE=/usr/local/samba/ private/smbpasswd -DPRIVATE_DIR=/usr/local/samba/private -fPIC -c / usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/ dynconfig.c -o dynconfig.o make: *** [dynconfig.o] Error 1 So I am stuck for the moment. What can be done? BN -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Failed building 3.0.30 for tru64 4.0F
I removed the following prototypes from source/include/proto.h: //int32 tdb_fetch_int32(TDB_CONTEXT *tdb, const char *keystr); //int tdb_store_int32(TDB_CONTEXT *tdb, const char *keystr, int32 v); //BOOL tdb_fetch_uint32(TDB_CONTEXT *tdb, const char *keystr, uint32 *value); //BOOL tdb_store_uint32(TDB_CONTEXT *tdb, const char *keystr, uint32 value); //int32 tdb_change_int32_atomic(TDB_CONTEXT *tdb, const char *keystr, int32 *oldval, int32 change_val); and now it compiled further, but then I got Compiling lib/util_tdb.c lib/util_tdb.c:188: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here lib/util_tdb.c:188: error: conflicting types for 'tdb_fetch_int32' include/util_tdb.h:54: error: previous declaration of 'tdb_fetch_int32' was here lib/util_tdb.c:216: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here lib/util_tdb.c:216: error: conflicting types for 'tdb_store_int32' include/util_tdb.h:56: error: previous declaration of 'tdb_store_int32' was here lib/util_tdb.c:247: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here lib/util_tdb.c:247: error: conflicting types for 'tdb_fetch_uint32' include/util_tdb.h:57: error: previous declaration of 'tdb_fetch_uint32' was here lib/util_tdb.c:279: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here lib/util_tdb.c:279: error: conflicting types for 'tdb_store_uint32' include/util_tdb.h:55: error: previous declaration of 'tdb_store_uint32' was here lib/util_tdb.c:322: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here lib/util_tdb.c:322: error: conflicting types for 'tdb_change_int32_atomic' include/util_tdb.h:46: error: previous declaration of 'tdb_change_int32_atomic' was here Looking at the conflicts, it seems like int32_t is used in the header prototypes, but int32 is used in the source files. Why? If I change to int32_t in the corresponding source files, it all compiles but it does not link: Linking bin/smbd tdb_open _E__lc_ctype tdb_traverse _Eioctl tdb_delete tdb_error tdb_errorstr tdb_store tdb_fetch _Eopen tdb_map_size tdb_close tdb_open_ex _Esendto tdb_set_max_dead tdb_chainunlock tdb_chainlock tdb_parse_record _Efcntl tdb_firstkey tdb_nextkey _Esetlocale _Esend _Erecv _Egetsockopt _Esetsockopt _Ebind _Econnect _Estatvfs tdb_append tdb_lockall tdb_unlockall _Emunmap _Emmap _Emsync tdb_setalarm_sigptr tdb_chainlock_read tdb_name tdb_chainunlock_read _Efnmatch tdb_transaction_start tdb_transaction_cancel tdb_transaction_commit tdb_hash_size tdb_fd tdb_exists tdb_get_seqnum tdb_reopen_all collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 So I am stuck again. BN 1 jun 2008 kl. 14.51 skrev Bengt Nilsson: Dear friends, I failed to buld samba 3.0.30 for tru64unix 4.0F. I am curently locked to this os version due to other production software. We currently run Samba 2.2.8a but we were requested to upgrade by our network group. I downloaded 3.3.30 and did $ cd source $ ./configure no warnings or errors as far as I could see, except checking for replacing readdir using getdirentries()... failure: readdir [ Failed for unlink - 1 = Not owner ] failure: readdir [ Failed for unlink - 1 = Not owner ] (what does this mean?) $ make Using FLAGS = -O -D_SAMBA_BUILD_=3 -I/usr/users/eb0/bnilsson/ diskeb2/sysproj/2008/samba-3.0.30/source/popt -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/iniparser/src - Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/ include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/usr/users/eb0/ bnilsson/diskeb2/sysproj/2008/samba-3.0.30/source/lib - D_SAMBA_BUILD_=3 PICFLAG= -fPIC LIBS = -lproplist -lsecurity -lresolv -lresolv LDFLAGS= -pie DYNEXP = LDSHFLAGS = -shared SHLIBEXT = so SONAMEFLAG = -Wl,-soname, Generating smbd/build_options.c Building include/proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/include/proto.h Building include/build_env.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/nsswitch/winbindd_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/web/swat_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/client/client_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/net_proto.h creating /usr/users/eb0/bnilsson/diskeb2/sysproj/2008/samba-3.0.30/ source/utils/ntlm_auth_proto.h Compiling dynconfig.c In file included from include/includes.h:789, from