[Chilli] rpmbuild problem in centos
David Bird
david at coova.com
Mon Nov 26 17:30:13 UTC 2012
Libbstring is built from within the chilli source. It should be
installed into the same directory as libchilli and I've never seen that
to be an issue using the libtool build system.
On Mon, 2012-11-26 at 10:48 +0100, Giovanni Bezicheri wrote:
> I think you are missing libbstring..
>
> On 26/11/2012 08:57, Ben wrote:
> > Hi Giovanni,
> >
> > compilation is working fine but while doing rpmbulild we got ,
> >
> > libtool: relink: gcc -shared -fPIC -DPIC .libs/chilli.o .libs/tun.o
> > .libs/ippool.o .libs/radius.o .libs/md5.o .libs/redir.o .libs/dhcp.o
> > .libs/syserr.o .libs/iphash.o .libs/lookup.o .libs/util.o
> > .libs/options.o .libs/statusfile.o .libs/conn.o .libs/sig.o
> > .libs/garden.o .libs/dns.o .libs/session.o .libs/pkt.o .libs/chksum.o
> > .libs/net.o .libs/safe.o .libs/sfhash.o .libs/ssl.o .libs/ms_chap.o
> > .libs/cmdsock.o -Wl,-rpath -Wl,/usr/local/cova/lib
> > -L/root/rpmbuild/BUILDROOT/coova-chilli-1.3.0-1.x86_64/usr/local/cova/lib
> > -L/usr/local/cova/lib -lbstring -lssl -lcrypto -lrt -O2 -O2 -m64
> > -mtune=generic -Wl,-soname -Wl,libchilli.so.0 -o
> > .libs/libchilli.so.0.0.0
> > /usr/bin/ld: cannot find -lbstring
> > collect2: ld returned 1 exit status
> > libtool: install: error: relink `libchilli.la' with the above command
> > before installing it
> > make[3]: *** [install-libLTLIBRARIES] Error 1
> > make[3]: Leaving directory `/root/rpmbuild/BUILD/coova-chilli-1.3.0/src'
> > make[2]: *** [install-am] Error 2
> > make[2]: Leaving directory `/root/rpmbuild/BUILD/coova-chilli-1.3.0/src'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/root/rpmbuild/BUILD/coova-chilli-1.3.0/src'
> > make: *** [install-recursive] Error 1
> > error: Bad exit status from /var/tmp/rpm-tmp.S5T1pg (%install)
> >
> > I tried to find package dependencies for lbstrring above error but it
> > same after installing some other packages also.
> >
> > Is there any package missing here or ?
> >
> > BR
> > Ben
> >
> >> Hi Giovanni,
> >>
> >> yes it is working now. Thanks for your kind response.
> >>
> >> BR
> >> Ben
> >>> It depends from the gcc version used to compile the sources..
> >>> try to fix main-opt.c:781 as follows:
> >>>
> >>> char *tok, *str, *ptr = NULL;
> >>>
> >>> On 21/11/2012 11:22, Ben wrote:
> >>>> Hi,
> >>>>
> >>>> I am trying to build rpm from spec file as per site information.
> >>>> While build i got below error,
> >>>>
> >>>> /bin/sh ../libtool --tag=CC --mode=link gcc -D_GNU_SOURCE -Wall
> >>>> -Werror -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-pointer
> >>>> -funroll-loops -pipe -I../bstring
> >>>> -DDEFCHILLICONF='"/etc/chilli.conf"'
> >>>> -DDEFPIDFILE='"/var/run/chilli.pid"' -DDEFSTATEDIR='"/var/run"'
> >>>> -DSBINDIR='"/usr/sbin"' -O2 -g -o chilli_radconfig
> >>>> main-radconfig.o libchilli.la ../bstring/libbstring.la -lssl
> >>>> -lcrypto -lrt
> >>>> libtool: link: gcc -D_GNU_SOURCE -Wall -Werror -fno-builtin
> >>>> -fno-strict-aliasing -O2 -fomit-frame-pointer -funroll-loops -pipe
> >>>> -I../bstring -DDEFCHILLICONF=\"/etc/chilli.conf\"
> >>>> -DDEFPIDFILE=\"/var/run/chilli.pid\" -DDEFSTATEDIR=\"/var/run\"
> >>>> -DSBINDIR=\"/usr/sbin\" -O2 -g -o .libs/chilli_radconfig
> >>>> main-radconfig.o ./.libs/libchilli.so
> >>>> ../bstring/.libs/libbstring.so -lssl -lcrypto -lrt -Wl,-rpath
> >>>> -Wl,/usr/lib64
> >>>> gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -Wall -Werror
> >>>> -fno-builtin -fno-strict-aliasing -O2 -fomit-frame-pointer
> >>>> -funroll-loops -pipe -I../bstring
> >>>> -DDEFCHILLICONF='"/etc/chilli.conf"'
> >>>> -DDEFPIDFILE='"/var/run/chilli.pid"' -DDEFSTATEDIR='"/var/run"'
> >>>> -DSBINDIR='"/usr/sbin"' -O2 -g -MT main-opt.o -MD -MP -MF
> >>>> .deps/main-opt.Tpo -c -o main-opt.o main-opt.c
> >>>> cc1: warnings being treated as errors
> >>>> main-opt.c: In function 'main':
> >>>> main-opt.c:781: error: 'ptr' may be used uninitialized in this
> >>>> function
> >>>> make[3]: *** [main-opt.o] Error 1
> >>>> make[3]: Leaving directory
> >>>> `/root/rpmbuild/BUILD/coova-chilli-1.3.0/src'
> >>>> make[2]: *** [all-recursive] Error 1
> >>>> make[2]: Leaving directory
> >>>> `/root/rpmbuild/BUILD/coova-chilli-1.3.0/src'
> >>>> make[1]: *** [all-recursive] Error 1
> >>>> make[1]: Leaving directory `/root/rpmbuild/BUILD/coova-chilli-1.3.0'
> >>>> make: *** [all] Error 2
> >>>> error: Bad exit status from /var/tmp/rpm-tmp.KiJKs5 (%build)
> >>>>
> >>>>
> >>>> RPM build errors:
> >>>> Bad exit status from /var/tmp/rpm-tmp.KiJKs5 (%build)
> >>>>
> >>>>
> >>>> Is there any dependency problem here or ?
> >>>>
> >>>> OS : centos 6.2 64 bit
> >>>> coovachilli : 1.3.0
> >>>>
> >>>>
> >>>> BR
> >>>> Ben
> >>>> _______________________________________________
> >>>> Chilli mailing list
> >>>> Chilli at coova.org
> >>>> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
> >>>
> >>> _______________________________________________
> >>> Chilli mailing list
> >>> Chilli at coova.org
> >>> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
> >>
> >
>
> _______________________________________________
> Chilli mailing list
> Chilli at coova.org
> http://lists.coova.org/cgi-bin/mailman/listinfo/chilli
More information about the Chilli
mailing list