View previous topic :: View next topic |
Author |
Message |
labrador Guru
Joined: 04 Oct 2003 Posts: 316
|
Posted: Wed Nov 17, 2004 3:33 pm Post subject: Samba 3.0.8 fails to compile/link |
|
|
I already have an earlier version of Samba on the system, and
I've encountered the follow error while upgrading to samba 3.0.8.
I see nothing in bugzilla about this.
Code: | * LD: BIND_NOW: bin/smbumount
Compiling client/smbumount.c
In file included from /usr/include/asm/sigcontext.h:11,
from /usr/include/asm-sparc/signal.h:5,
from /usr/include/asm/signal.h:11,
from /usr/include/asm-sparc/processor.h:21,
from /usr/include/asm/processor.h:11,
from /usr/include/linux/prefetch.h:15,
from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from /usr/include/linux/smb_fs.h:15,
from client/smbumount.c:16:
/usr/include/asm-sparc/sigcontext.h:14: error: redefinition of `struct sigcontext'
In file included from /usr/include/asm/signal.h:11,
from /usr/include/asm-sparc/processor.h:21,
from /usr/include/asm/processor.h:11,
from /usr/include/linux/prefetch.h:15,
from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from /usr/include/linux/smb_fs.h:15,
from client/smbumount.c:16:
/usr/include/asm-sparc/signal.h:117: error: redefinition of `struct sigstack'
/usr/include/asm-sparc/signal.h:195: error: syntax error before '.' token
/usr/include/asm-sparc/signal.h:199: error: syntax error before '}' token
/usr/include/asm-sparc/signal.h:208: error: redefinition of `struct sigaction'
/usr/include/asm-sparc/signal.h:209: error: syntax error before '.' token
/usr/include/asm-sparc/signal.h:210: error: conflicting types for `sa_mask'
/usr/include/asm-sparc/signal.h:198: error: previous declaration of `sa_mask'
/usr/include/asm-sparc/signal.h:213: error: syntax error before '}' token
/usr/include/asm-sparc/signal.h:215: error: redefinition of `struct sigaltstack'
In file included from /usr/include/asm/processor.h:11,
from /usr/include/linux/prefetch.h:15,
from /usr/include/linux/list.h:5,
from /usr/include/linux/wait.h:12,
from /usr/include/linux/fs.h:12,
from /usr/include/linux/smb_fs.h:15,
from client/smbumount.c:16:
/usr/include/asm-sparc/processor.h:46: error: redefinition of `struct fpq'
make: *** [client/smbumount.o] Error 1
!!! ERROR: net-fs/samba-3.0.8 failed.
!!! Function src_compile, Line 202, Exitcode 2
!!! LD: BIND_NOW: bin/smbumount compile error
|
I'd think someone got this to emerge OK before making it stable.
Here is my emerge --info:
Code: | Portage 2.0.51-r3 (default-sparc64-2004.0, gcc-3.3.4, glibc-2.3.3.20040420-r2, 2.6.6 sparc64)
=================================================================
System uname: 2.6.6 sparc64 sun4u
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers: sys-kernel/linux26-headers-2.6.8.1-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="sparc X avi berkdb bitmap-fonts crypt cups encode f77 fbcon foomaticdb fortran gdbm gif gtk imlib jpeg kde ldap libwww mikmod mozilla mpeg ncurses nls noaudio oggvorbis opengl pam pdflib perl png python qt readline samba sdl slang spell ssl tcltk tcpd truetype xml2 xv zlib"
|
This one built OK on my x86 box.
Any ideas or hints? |
|
Back to top |
|
|
gust4voz Retired Dev
Joined: 09 Sep 2003 Posts: 373 Location: Buenos Aires, Argentina
|
Posted: Wed Nov 17, 2004 5:31 pm Post subject: |
|
|
linux26-headers are totally unsupported for sparc.
you'd better go to normal (2.4) linux-headers. _________________ Gustavo Zacarias
Gentoo/SPARC monkey |
|
Back to top |
|
|
labrador Guru
Joined: 04 Oct 2003 Posts: 316
|
Posted: Wed Nov 17, 2004 7:36 pm Post subject: Trying linux-headers-2.4.23 |
|
|
I don't remember why I had linux26-headers. Anyway, I'm trying
the suggestion. But I get an error emerging it:
Code: | *** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
yes: standard output: Broken pipe
yes: write error
>>> make oldconfig complete
sparc
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
In file included from /usr/include/bits/posix1_lim.h:130,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.4/include/limits.h:122,
from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/sparc-unknown-linux-gnu/3.3.4/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:221: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:221: error: for each function it appears in.)
scripts/mkdep.c:221: warning: unused variable `resolved_path'
make: *** [scripts/mkdep] Error 1
!!! ERROR: sys-kernel/linux-headers-2.4.23 failed.
!!! Function src_compile, Line 70, Exitcode 2
!!! Failed to run 'make dep'
|
|
|
Back to top |
|
|
gust4voz Retired Dev
Joined: 09 Sep 2003 Posts: 373 Location: Buenos Aires, Argentina
|
Posted: Thu Nov 18, 2004 12:55 am Post subject: |
|
|
That's what you get for playing with unsupported/broken stuff
Fetch the quickpkg from my devspace http://dev.gentoo.org/~gustavoz/sparc/linux-headers-2.4.23.tbz2
Then place it in /usr/portage/packages/All and emerge -k linux-headers.
I'd suggest you re-emerge glibc after doing this too.
Good luck. _________________ Gustavo Zacarias
Gentoo/SPARC monkey |
|
Back to top |
|
|
labrador Guru
Joined: 04 Oct 2003 Posts: 316
|
Posted: Thu Nov 18, 2004 2:57 am Post subject: Thanks... |
|
|
Thanks for the package. That fixed the catch-22 I was in.
I don't remember why I forced 2.6 headers now. I recall that it
became required on x86, so perhaps I put it into sparc at the
same time, and I erroneously believed it might coorespond
to the kernel version one was using. |
|
Back to top |
|
|
gust4voz Retired Dev
Joined: 09 Sep 2003 Posts: 373 Location: Buenos Aires, Argentina
|
Posted: Thu Nov 18, 2004 11:45 am Post subject: |
|
|
Lately it's been required for HAL support on gnome 2.8, an option which we don't support yet.
Usually you're safe to use linux-headers < kernel you run, but not the other way around since newer headers can introduce newer kernel syscalls that are not supported on an older one.
In any case 2.6 kernels aren't quite supported/stable in sparc yet, that being one of the reasons there's no point in rushing to get linux26-headers running. _________________ Gustavo Zacarias
Gentoo/SPARC monkey |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|