Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27858 - samba doesn't compile on SPARC
Summary: samba doesn't compile on SPARC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-03 06:53 UTC by Michael Hellwig
Modified: 2006-02-04 06:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hellwig 2003-09-03 06:53:20 UTC
just tried to emerge samba on this here ultra5, trying first the version offered
when doing emerge samba (i.e. 2.2.8a) and then also 3.0.0_rc2.

Compilation stops for both at a very early stage, for both with a very similar
error.

2.2.8a:
Using FLAGS =  -DHAVE_CRYPT_DECL -I/usr/local/ssl/include -O -mcpu=ultrasparc
-O3 -pipe   -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLOGFILEBASE="/var/log"
-DCONFIGFILE="/etc/samba/smb.conf" -DLMHOSTSFILE="/etc/samba/lmhosts"  
-DSWATDIR="/usr/share/swat" -DSBINDIR="/usr/sbin" -DLOCKDIR="/var/cache/samba"
-DCODEPAGEDIR="/var/lib/samba/codepages" -DDRIVERFILE="/etc/samba/printers.def"
-DBINDIR="/usr/sbin" -DPIDDIR="/var/run/samba" -DLIBDIR="/etc/samba"
-DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/etc/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/etc/samba/private/smbpasswd.tdb"
Using FLAGS32 =  -DHAVE_CRYPT_DECL -I/usr/local/ssl/include -O -mcpu=ultrasparc
-O3 -pipe   -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -DLOGFILEBASE="/var/log"
-DCONFIGFILE="/etc/samba/smb.conf" -DLMHOSTSFILE="/etc/samba/lmhosts"  
-DSWATDIR="/usr/share/swat" -DSBINDIR="/usr/sbin" -DLOCKDIR="/var/cache/samba"
-DCODEPAGEDIR="/var/lib/samba/codepages" -DDRIVERFILE="/etc/samba/printers.def"
-DBINDIR="/usr/sbin" -DPIDDIR="/var/run/samba" -DLIBDIR="/etc/samba"
-DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/usr/bin/passwd"
-DSMB_PASSWD_FILE="/etc/samba/private/smbpasswd"
-DTDB_PASSWD_FILE="/etc/samba/private/smbpasswd.tdb"
Using LIBS = -lssl -lcrypto  -lcups -lssl -lcrypto -lnsl -lpam -lpopt
Compiling smbd/server.c
In file included from /usr/include/asm/statfs.h:11,
                 from /usr/include/linux/vfs.h:4,
                 from /usr/include/linux/fs.h:14,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/sys/capability.h:35,
                 from include/includes.h:340,
                 from smbd/server.c:22:
/usr/include/asm-sparc/statfs.h:13: redefinition of `struct statfs'
make: *** [smbd/server.o] Error 1



3.0.0_rc2:
Using FLAGS =  -mcpu=ultrasparc -O3 -pipe  -Iinclude -I/var/tmp/portage/samba-3.
0.0_rc2/work/samba-3.0.0rc2/source/include -I/var/tmp/portage/samba-3.0.0_rc2/wo
rk/samba-3.0.0rc2/source/ubiqx -I/var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0
.0rc2/source/smbwrapper  -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU
_SOURCE -I/var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source    
      LIBS = -lcrypt -lresolv -lnsl -ldl
      LDSHFLAGS = -shared  -Wl,-rpath,/usr/lib
      LDFLAGS = -Wl,-rpath,/usr/lib
Generating smbd/build_options.c
Building include/proto.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/include/pro
to.h
Building include/wrepld_proto.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/include/wre
pld_proto.h
Building include/build_env.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/nsswitch/wi
nbindd_proto.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/web/swat_pr
oto.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/client/clie
nt_proto.h
creating /var/tmp/portage/samba-3.0.0_rc2/work/samba-3.0.0rc2/source/utils/net_p
roto.h
Compiling dynconfig.c
In file included from /usr/include/asm/statfs.h:11,
                 from /usr/include/linux/vfs.h:4,
                 from /usr/include/linux/fs.h:14,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/sys/capability.h:35,
                 from include/includes.h:359,
                 from dynconfig.c:21:
/usr/include/asm-sparc/statfs.h:13: redefinition of `struct statfs'
make: *** [dynconfig.o] Error 1



it has been suggested on #gentoo-sparc that the file referred to should not be
in asm-sparc but in asm-sparc64 .. i.e. probably something in the the
configure-process goes wrong or whatever.

emerge info looks like the following:
eyesun root # emerge info
Portage 2.0.49-r3 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.1-r4, 2.4.21-sparc-r1)
=================================================================
System uname: 2.4.21-sparc-r1 sparc64 sun4u
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O3 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox userpriv usersandbox ccache"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="sparc apm avi crypt cups encode fbcon foomaticdb gif jpeg kde mad mikmod
mpeg ncurses nls oss png pdflib sdl spell truetype xv xml2 xmms zlib gdbm berkdb
slang readline tetex aalib X gpm tcpd pam libwww ssl perl python imlib oggvorbis
gtk qt motif opengl -java -arts -esd -gnome"

thanx for any info on how to get this running, it would be rather important ..
Comment 1 Joshua Kinard gentoo-dev 2003-09-03 12:04:07 UTC
I ran into this issue about two weeks ago when building gcc-3.3.1.  Talked to Azarah about it, and he gave me a URL to a similar PPC64 issue.  I haven't had time to test it, though, so give it a shot and let us know how it works.

http://oss.software.ibm.com/linux/patches/?patch_id=764
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-09-03 18:47:09 UTC
The patch mentioned in comment #2 fixes it here.  Entering it into the ebuild...
Comment 3 Jason Wever (RETIRED) gentoo-dev 2003-09-03 18:57:29 UTC
Added patch to samba-2.2.8a.ebuild.  Will test on samba-3.0.0_rc2 as time permits.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-09-04 13:39:48 UTC
Patch works for samba-3.0.0_rc2 as well.

Marking this as resolved::fixed.

If you have any problems, feel free to re-open.  Thanks for the bug report :)