I've followed the instructions in the README at http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ for building 3.0.21x on AIX 5.2 ('oslevel -r' reports '5200-07'). The last version I was able to build on the system was 3.0.14a. 3.0.21c's configure completes with no errors, but the make immediately bombs with: # make Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude -I/usr/local/SRC/samba-3.0.21c/source/include -I/usr/local/SRC/samba-3.0.21c/source/ubiqx -I/usr/local/SRC/samba-3.0.21c/source/tdb -I. -I/usr/local/SRC/samba-3.0.21c/source -D_SAMBA_BUILD_ LIBS = LDSHFLAGS = -Wl,-bexpall,-bM:SRE,-bnoentry,-berok LDFLAGS = PIE_CFLAGS = PIE_LDFLAGS = Generating smbd/build_options.c Building include/proto.h creating /usr/local/SRC/samba-3.0.21c/source/include/proto.h Building include/wrepld_proto.h creating /usr/local/SRC/samba-3.0.21c/source/include/wrepld_proto.h Building include/build_env.h creating /usr/local/SRC/samba-3.0.21c/source/nsswitch/winbindd_proto.h creating /usr/local/SRC/samba-3.0.21c/source/web/swat_proto.h creating /usr/local/SRC/samba-3.0.21c/source/client/client_proto.h creating /usr/local/SRC/samba-3.0.21c/source/utils/net_proto.h creating /usr/local/SRC/samba-3.0.21c/source/utils/ntlm_auth_proto.h Compiling dynconfig.c In file included from /usr/local/SRC/samba-3.0.21c/source/dynconfig.c:21: include/includes.h:841: error: redefinition of `struct timespec' make: 1254-004 The error code from the last command is 1. -- Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court tkevans@tkevans.com | Owings Mills, MD 21117 http://www.tkevans.com/ | 443-394-3864 http://www.come-here.com/News/ |
----- Original Message ----- From: "Tim Evans" <tkevans@tkevans.com> To: <samba@lists.samba.org>; <jojowil@samba.org> Sent: Friday, February 24, 2006 8:09 PM Subject: [Samba] Building 3.0.21x on AIX 5.2> I've followed the instructions in the README at > http://us4.samba.org/samba/ftp/Binary_Packages/AIX/ for building 3.0.21xon AIX> 5.2 ('oslevel -r' reports '5200-07'). > > The last version I was able to build on the system was 3.0.14a. > > 3.0.21c's configure completes with no errors, but the make immediatelybombs> with: > > # make > Using FLAGS = -O -D_SAMBA_BUILD_ -I./popt -Iinclude > -I/usr/local/SRC/samba-3.0.21c/source/include > -I/usr/local/SRC/samba-3.0.21c/source/ubiqx > -I/usr/local/SRC/samba-3.0.21c/source/tdb -I. > -I/usr/local/SRC/samba-3.0.21c/source -D_SAMBA_BUILD_ > LIBS > LDSHFLAGS = -Wl,-bexpall,-bM:SRE,-bnoentry,-berok > LDFLAGS > PIE_CFLAGS > PIE_LDFLAGS > Generating smbd/build_options.c > Building include/proto.h > creating /usr/local/SRC/samba-3.0.21c/source/include/proto.h > Building include/wrepld_proto.h > creating /usr/local/SRC/samba-3.0.21c/source/include/wrepld_proto.h > Building include/build_env.h > creating /usr/local/SRC/samba-3.0.21c/source/nsswitch/winbindd_proto.h > creating /usr/local/SRC/samba-3.0.21c/source/web/swat_proto.h > creating /usr/local/SRC/samba-3.0.21c/source/client/client_proto.h > creating /usr/local/SRC/samba-3.0.21c/source/utils/net_proto.h > creating /usr/local/SRC/samba-3.0.21c/source/utils/ntlm_auth_proto.h > Compiling dynconfig.c > In file included from /usr/local/SRC/samba-3.0.21c/source/dynconfig.c:21: > include/includes.h:841: error: redefinition of `struct timespec' > make: 1254-004 The error code from the last command is 1.I'm not able to create this on my 5.2 box, but I'm using gcc 3.4.4. Can you tell me more about your installation? Compiler, additional products? Cheers, Bill> -- > Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court > tkevans@tkevans.com | Owings Mills, MD 21117 > http://www.tkevans.com/ | 443-394-3864 > http://www.come-here.com/News/ | > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba >
Note: do not use binutils #!/bin/ksh -x export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib env "CC=gcc" \ CFLAGS="-DPAM_AUTHTOK_RECOVER_ERR=PAM_AUTHTOK_RECOVERY_ERR -DPAM_EXTERN=extern -D_LINUX_SOURCE_ COMPAT" \ CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include -I/usr/local/include -I/usr/include " \ LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib -L/usr/local/ssl/lib -L/usr/local/ope nldap/lib -L/usr/lib -L/usr/local/lib" \ ../configure --prefix=/usr/local/samba --with-shared-modules=idmap_ad,idmap_rid --with-ads --with-ldap --with-pam --with-krb5=/usr/local/heimdal-krb5 --with-winbind --with-acl-support --with-utmp --with-quotas --with-sendfile-support --with-aio-support --enable-shared=yes --disable-static /usr/local/bin/gmake /usr/local/bin/gmake install for i in WINBIND pam_winbind.so; do if [ -f /usr/lib/security/$i ]; then mv /usr/lib/security/$i /usr/lib/security/$i.old chmod 555 nsswitch/$i cp nsswitch/$i /usr/lib/security rm /usr/lib/security/$i.old else cp nsswitch/$i /usr/lib/security fi done # Add to /usr/lib/security config file WINBIND: program = /usr/lib/security/WINBIND options = authonly David Shapiro Unix Team Lead 919-765-2011>>> "Tim Evans" <tkevans@tkevans.com> 2/27/2006 7:57:54 AM >>>On Mon, 27 Feb 2006 07:18:25 -0500, William Jojo wrote> > I'm not able to create this on my 5.2 box, but I'm using gcc 3.4.4. > Can you tell me more about your installation? Compiler, additionalproducts? Thanks for your reply. gcc is 3.3.2, as delivered in IBM's /opt/freeware directory. lslpp -L | grep -i gcc gcc 3.3.2-3 C R GNU Compiler Collection configure options: configured by ./configure, generated by GNU Autoconf 2.59, with options \"'--with-acl-support' '--with-utmp' '--with-sendfile-support' '- -with-syslog' '--with-quotas' 'CC=gcc -D_LINUX_SOURCE_COMPAT'\" Do you want the config.log? -- Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court tkevans@tkevans.com | Owings Mills, MD 21117 http://www.tkevans.com/ | 443-394-3864 http://www.come-here.com/News/ | -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
On Mon, 27 Feb 2006 08:51:16 -0500, David Shapiro wrote> Note: do not use binutilsCould you be more specific here, please?> #!/bin/ksh -x > > export LIBPATH=/usr/lib:/usr/local/lib:/opt/freeware/lib > > env "CC=gcc" \ > CFLAGS="-DPAM_AUTHTOK_RECOVER_ERR=PAM_AUTHTOK_RECOVERY_ERR > -DPAM_EXTERN=extern -D_LINUX_SOURCE_ > COMPAT" \ > CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include > -I/usr/local/include -I/usr/include > " \ > LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/cyrus-sasl/lib > -L/usr/local/ssl/lib -L/usr/local/ope > nldap/lib -L/usr/lib -L/usr/local/lib" \ > ../configure --prefix=/usr/local/samba > --with-shared-modules=idmap_ad,idmap_rid --with-ads --with-ldap > --with-pam --with-krb5=/usr/local/heimdal-krb5 --with-winbind > --with-acl-support --with-utmp --with-quotas --with-sendfile-support > --with-aio-support --enable-shared=yes --disable-staticI really only need the default configuration. The configure script used to work properly by itself, with no arguments. Much, if not most, of the above is stuff I either don't need, directories I don't have/use, or what I think are normal defaults. -- Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court tkevans@tkevans.com | Owings Mills, MD 21117 http://www.tkevans.com/ | 443-394-3864 http://www.come-here.com/News/ |
>Can you try something before you send those? in the /opt folder where the >freeware gcc will be, can you rename the include dir for gcc to something >like include.old? don't delete it, just rename it. part of that install has >some sketchy includes and i'm wondering if they are getting in the way (it >did on some initial 5.3 testing at one time). It'll be something like >/opt/freeware/gcc...-3.3.2.../includeThis did it. (Did have to re-run configure after renaming the directory.) Thanks. # pwd /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.2 # ls -l total 7776 drwxr-xr-x 7 root system 512 May 13 2005 include.old -- Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court tkevans@tkevans.com | Owings Mills, MD 21117 http://www.tkevans.com/ | 443-394-3864 http://www.come-here.com/News/ |