View previous topic :: View next topic |
Author |
Message |
Khaine n00b
Joined: 16 Nov 2004 Posts: 33
|
Posted: Wed Feb 16, 2005 5:39 am Post subject: Freeradius Fails to Compile |
|
|
Quote: | gcc -O2 -march=pentium2 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c compat.c -fPIC -DPIC -o compat.lo
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=link gcc -release 1.0.1 \
-module -export-dynamic -O2 -march=pentium2 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include \
-o rlm_unix.la -rpath /usr/lib rlm_unix.lo cache.lo compat.lo -lcrypt -lshadow -lnsl -lresolv -lpthread -lcrypto -lssl
rm -fr .libs/rlm_unix.la .libs/rlm_unix.* .libs/rlm_unix-1.0.1.*
gcc -shared rlm_unix.lo cache.lo compat.lo -Wl,--whole-archive /usr/lib/libshadow.a -Wl,--no-whole-archive -lcrypt /usr/lib/libshadow.a -lnsl -lresolv -lpthread -lcrypto -lssl -Wl,-soname -Wl,rlm_unix-1.0.1.so -o .libs/rlm_unix-1.0.1.so
/usr/lib/libshadow.a: member /usr/lib/libshadow.a(libmisc.a) in archive is not an object
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_unix.la] Error 1
gmake[6]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules/rlm_unix'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1'
make: *** [all] Error 2
!!! ERROR: net-dialup/freeradius-1.0.1 failed.
!!! Function src_compile, Line 83, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. |
My emerge info
Quote: |
server root # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 13:32:11)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts crypt cups encode f77 font-server foomaticdb fortran gdbm gif gpm gtk2 hardened imlib ipv6 ithreads jpeg kerberos ldap libg++ libwww mad mikmod motif mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pax pdflib perl pic pie png pthreads python quicktime readline sdl spell ssl svga tcpd threads truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
|
I have no idea why it fails to compile. I don't have any insane CFLAGS.
TIA
Khaine |
|
Back to top |
|
|
mcguire_mr2 Tux's lil' helper
Joined: 17 Nov 2003 Posts: 82
|
Posted: Wed Feb 16, 2005 5:46 pm Post subject: Re: Freeradius Fails to Compile |
|
|
Khaine wrote: | Quote: | gcc -O2 -march=pentium2 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c compat.c -fPIC -DPIC -o compat.lo
/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/libtool --mode=link gcc -release 1.0.1 \
-module -export-dynamic -O2 -march=pentium2 -fomit-frame-pointer -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include \
-o rlm_unix.la -rpath /usr/lib rlm_unix.lo cache.lo compat.lo -lcrypt -lshadow -lnsl -lresolv -lpthread -lcrypto -lssl
rm -fr .libs/rlm_unix.la .libs/rlm_unix.* .libs/rlm_unix-1.0.1.*
gcc -shared rlm_unix.lo cache.lo compat.lo -Wl,--whole-archive /usr/lib/libshadow.a -Wl,--no-whole-archive -lcrypt /usr/lib/libshadow.a -lnsl -lresolv -lpthread -lcrypto -lssl -Wl,-soname -Wl,rlm_unix-1.0.1.so -o .libs/rlm_unix-1.0.1.so
/usr/lib/libshadow.a: member /usr/lib/libshadow.a(libmisc.a) in archive is not an object
collect2: ld returned 1 exit status
gmake[6]: *** [rlm_unix.la] Error 1
gmake[6]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules/rlm_unix'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/freeradius-1.0.1/work/freeradius-1.0.1'
make: *** [all] Error 2
!!! ERROR: net-dialup/freeradius-1.0.1 failed.
!!! Function src_compile, Line 83, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message. |
My emerge info
Quote: |
server root # emerge info
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 13:32:11)]
dev-lang/python: 2.3.4-r1
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apm arts avi berkdb bitmap-fonts crypt cups encode f77 font-server foomaticdb fortran gdbm gif gpm gtk2 hardened imlib ipv6 ithreads jpeg kerberos ldap libg++ libwww mad mikmod motif mpeg ncurses nls nptl nptlonly oggvorbis opengl oss pam pax pdflib perl pic pie png pthreads python quicktime readline sdl spell ssl svga tcpd threads truetype truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
|
I have no idea why it fails to compile. I don't have any insane CFLAGS.
TIA
Khaine |
I had same problem. In the past, before there was an ebuild for freeradius v1, I would install from source. I always had problems with shared versus static library linking. The only fix back then was to use the configure flag "--disable-shared". If you look at the ebuild for freeradius v1.0.1, you'll see that they use "--disable-static". I changed this to "--disable-shared" and it installed just fine. The problem with using static versus shared means that if you upgrade something that freeradius has linked to (like openssl), then you'll have to re-emerge freeradius to re-establish the static link. Well, at least I think that's correct...please someone correct me if I'm wrong. Anyway, make a backup copy of the ebuild file (freeradius-1.0.1.ebuild), make the modification I suggested, and try the emerge again. Let us know how it goes.
mack |
|
Back to top |
|
|
Khaine n00b
Joined: 16 Nov 2004 Posts: 33
|
Posted: Thu Feb 17, 2005 5:23 am Post subject: |
|
|
Thanks that appeared to work
I filed a bug report hopefully this can be resolved properly |
|
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
|
|