Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82212 - Freeradius 1.0.1 fails to compile
Summary: Freeradius 1.0.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 00:53 UTC by James Hyland
Modified: 2005-03-01 22:49 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 James Hyland 2005-02-16 00:53:58 UTC
When I try to emerge Freeradius, It fails. 

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.

Reproducible: Always
Steps to Reproduce:
1. emerge freeradius
2.
3.

Actual Results:  
failed to compile

Expected Results:  
compiled and installed

server / # 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
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-02-17 12:20:50 UTC
I don't have a /usr/lib/libshadow.a library! What is the output of the command "equery belongs /usr/lib/libshadow.a" ?
Comment 2 James Hyland 2005-02-17 19:42:23 UTC
server root # equery belongs /usr/lib/libshadow.a
[ Searching for file(s) /usr/lib/libshadow.a in *... ]
sys-apps/shadow-4.0.5-r3 (/usr/lib/libshadow.a)

I posted this in the gentoo forums, here http://forums.gentoo.org/viewtopic-t-295921.html, and the suggested solution seemed to work fine.  I don't know however if you think this is a satisfactory fix.
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2005-02-17 21:51:31 UTC
the output of "euse -i static" pls
Comment 4 James Hyland 2005-02-17 22:19:17 UTC
server root # euse -i static
global use flags (searching: static)
************************************************************
[-    ] static - !!do not set this during bootstrap!! Causes binaries to be statically linked instead of dynamically

local use flags (searching: static)
************************************************************
no matching entries found
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2005-02-17 22:45:47 UTC
then you should run "emerge --newuse world" 'cause libshadow.a should not exist on your machine.

anyway, I will add static USE flag into freeradius ebuild.
Comment 6 Alin Năstac (RETIRED) gentoo-dev 2005-02-28 10:17:18 UTC
check the new version (1.0.2) and see if it works
Comment 7 James Hyland 2005-02-28 20:41:00 UTC
Version 1.0.2 fails to compile as well :-(


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.2.so -o .libs/rlm_unix-1.0.2.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.2/work/freeradius-1.0.2/src/modules/rlm_unix'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/freeradius-1.0.2/work/freeradius-1.0.2/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/freeradius-1.0.2/work/freeradius-1.0.2/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/freeradius-1.0.2/work/freeradius-1.0.2/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/freeradius-1.0.2/work/freeradius-1.0.2/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/var/tmp/portage/freeradius-1.0.2/work/freeradius-1.0.2'
make: *** [all] Error 2

!!! ERROR: net-dialup/freeradius-1.0.2 failed.
!!! Function src_compile, Line 80, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 8 Alin Năstac (RETIRED) gentoo-dev 2005-02-28 22:28:22 UTC
@base-system: please issue new releases of sys-apps/shadow with --enable-shared=yes and don't mark them as unstable.

This is pretty serious; without it, freeradius compilation will fail unless I specify --disable-shared. 
Comment 9 SpanKY gentoo-dev 2005-03-01 05:36:30 UTC
no, packages arent supposed to link against libshadow

that said, i dont have 'libmisc.a' in my libshadow.a, just a bunch of .o files ... but i'm using shadow-4.0.7
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2005-03-01 05:50:58 UTC
then what is the thing with this libshadow.la? if no application needs it, why do you install it?

the strange thing is that I have the exact same version of shadow installed but I don't have any libshadow.{so,la}. 
prolly some time ago, there was no .la file, even if this version of shadow always had --enable-static=yes
Comment 11 Alin Năstac (RETIRED) gentoo-dev 2005-03-01 22:46:03 UTC
found another solution to this problem
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2005-03-01 22:49:39 UTC
fixed in ver 1.0.2