Build RPM
Fred MAISON
fred.maison at gmail.com
Mon Nov 7 21:36:09 CET 2011
Hi,
He are my libtool versions :
libtool-2.2.6-15.5.el6.x86_64
libtool-ltdl-2.2.6-15.5.el6.x86_64
libtool-ltdl-devel-2.2.6-15.5.el6.x86_64
regards,
Fred MAISON
Le lundi 07 novembre 2011 à 13:23 -0500, Francois Gaudreault a écrit :
> Hi,
>
> It works for me on CentOS 6, I am using the same .spec (with only the
> module name changed from freeradius2 to freeradius).
>
> I am not an expert, but I guess the issue is with libtool, what is the
> libtool version you have installed?
>
> On 11-11-07 12:23 PM, Fred wrote:
> > Hi Francois
> >
> > Did you ever tried to build current freeradius-2.1.12 on CentOS 6 ?
> > ./configure make make install is OK for build, install and run, but
> > rpmbuild -ba using you spec fails (same for my own spec ...) :
> >
> > Here is a small extract of the build log (full log is available if needed) ::
> >
> > /home/support/rpmbuild/BUILD/freeradius-server-2.1.12/libtool
> > --mode=compile gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
> > -mtune=generic -fpic -Wall -D_GNU_SOURCE -D_REENTRANT
> > -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG
> > -I/home/support/rpmbuild/BUILD/freeradius-server-2.1.12/src
> > -DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.12\"
> > -DOPENSSL_NO_KRB5 -DRADIUSD_MAJOR_VERSION=2
> > -DRADIUSD_MINOR_VERSION=1.12 -c modules.c
> > gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic
> > -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG
> > -I/home/support/rpmbuild/BUILD/freeradius-server-2.1.12/src
> > -DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.12\"
> > -DOPENSSL_NO_KRB5 -DRADIUSD_MAJOR_VERSION=2
> > -DRADIUSD_MINOR_VERSION=1.12 -c modules.c -fPIC -DPIC -o
> > .libs/modules.o
> > modules.c: In function 'fr_dlopenext':
> > modules.c:216: error: 'lt_dladvise' undeclared (first use in this function)
> > modules.c:216: error: (Each undeclared identifier is reported only once
> > modules.c:216: error: for each function it appears in.)
> > modules.c:216: error: expected ';' before 'advise'
> > modules.c:218: warning: implicit declaration of function 'lt_dladvise_init'
> > modules.c:218: error: 'advise' undeclared (first use in this function)
> > modules.c:219: warning: implicit declaration of function 'lt_dladvise_ext'
> > modules.c:220: warning: implicit declaration of function 'lt_dladvise_global'
> > modules.c:221: warning: implicit declaration of function 'lt_dlopenadvise'
> > modules.c:224: warning: implicit declaration of function 'lt_dladvise_destroy'
> > gmake[4]: *** [modules.lo] Error 1
> > gmake[4]: Leaving directory
> > `/home/support/rpmbuild/BUILD/freeradius-server-2.1.12/src/main'
> > gmake[3]: *** [main] Error 2
> > gmake[3]: Leaving directory
> > `/home/support/rpmbuild/BUILD/freeradius-server-2.1.12/src'
> > gmake[2]: *** [all] Error 2
> > gmake[2]: Leaving directory
> > `/home/support/rpmbuild/BUILD/freeradius-server-2.1.12/src'
> > gmake[1]: *** [src] Error 2
> > gmake[1]: Leaving directory
> > `/home/support/rpmbuild/BUILD/freeradius-server-2.1.12'
> > make: *** [all] Error 2
> > erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.nHYNKs (%build)
> >
> >
> > Erreur de construction de RPM:
> > Mauvais status de sortie pour /var/tmp/rpm-tmp.nHYNKs (%build)
> >
> > 2011/10/27 Francois Gaudreault<fgaudreault at inverse.ca>:
> >> Fred,
> >>
> >> I don't know for git source, my spec is targeted for 2.1.x sources.
> >>
> >> On 11-10-27 10:57 AM, Fred wrote:
> >>> Hi Francois,
> >>>
> >>> Thanks a lot for your last post, I will try to build with your spec.
> >>> It seems to be far more intelligent than mine (sompe builrequire I
> >>> don't have, etc ...)
> >>>
> >>> Regarding cert patch : I already have certs from an external PKI (not
> >>> openssl-generated at install) so I suppose I can omit this patch when
> >>> I don' want to build generic packages but a customer specific package
> >>> with customer's certs, right ?
> >>>
> >>> I also tried to rpmbuild using 2.1.x git repository (currently 2.2.0)
> >>> but I got into troubles because au radrelay module :
> >>> Even if /etc/raddb/radrelay.conf if correctly declared (note 1°) , the
> >>> build reports missing radrelay.conf in
> >>> /var/tmp/freeradius-2.2.0.xxxx/etc/raddb ....
> >>> Any idea ?
> >>>
> >>> note 1° => %attr(640,root,radiusd) %config(noreplace)
> >>> /etc/raddb/radrelay.conf
> >>>
> >>> Best regards,
> >>> Fred MAISON
> >>>
> >>
> >> --
> >> Francois Gaudreault, ing. jr
> >> fgaudreault at inverse.ca :: +1.514.447.4918 (x130) :: www.inverse.ca
> >> Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence
> >> (www.packetfence.org)
> >>
> >> -
> >> List info/subscribe/unsubscribe? See
> >> http://www.freeradius.org/list/users.html
> >>
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
More information about the Freeradius-Users
mailing list