-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi While attempting to build the RPMs for FreeRadius version 1.1.1, I get an error during the build of libradius. Extract of the output is shown below. Build being done with 'rpmbuild -ba /usr/src/redhat/SPECS/freeradius.spec', where the spec file is taken from the 'redhat' directory in the tarball. The build is being done on Redhat Enterprise Server 3 (ES) Update 6. Looks like the Makefile in the tarball's src/lib directory is removing the '/var/tmp/freeradius-root/usr/lib/' directory and the symbolic link creation then does not find it. Making install in lib... gmake[4]: Entering directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src/lib' /usr/bin/libtool --mode=install /usr/src/redhat/BUILD/freeradius- 1.1.1/install-sh -c -c libradius.la /var/tmp/freeradius- root/usr/lib /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius-1.1.1.so /var/tmp/freeradius-root/usr/libradius- 1.1.1.so (cd /var/tmp/freeradius-root/usr && rm -f libradius.so && ln -s libradius-1.1.1.so libradius.so) /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.lai /var/tmp/freeradius-root/usr/libradius.la /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.a /var/tmp/freeradius-root/usr/libradius.a ranlib /var/tmp/freeradius-root/usr/libradius.a chmod 644 /var/tmp/freeradius-root/usr/libradius.a libtool: install: warning: remember to run `libtool --finish /usr/lib' rm -f /var/tmp/freeradius-root/usr/lib/libradius-1.1.1.la; ln -s libradius.la /var/tmp/freeradius-root/usr/lib/libradius- 1.1.1.la ln: creating symbolic link `/var/tmp/freeradius- root/usr/lib/libradius-1.1.1.la' to `libradius.la': No such file or directory gmake[4]: *** [install] Error 1 gmake[4]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src/lib' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src' gmake[2]: *** [install] Error 2 gmake[2]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.72933 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.72933 (%install) -----BEGIN PGP SIGNATURE----- Note: This signature can be verified at https://www.hushtools.com/verify Version: Hush 2.5 wkYEARECAAYFAkQfptQACgkQmw4BJyaatJ3CjQCgkE3PssxUgCxIgcQCyCOF/7akj1cA n3uM4/Yu6y5ko1XNO+2j9dfwvd3j =Kl6m -----END PGP SIGNATURE-----
Hi,
Making install in lib... ln: creating symbolic link `/var/tmp/freeradius- root/usr/lib/libradius-1.1.1.la' to `libradius.la': No such file or directory
same for me. Not just an rpm problem: the subdir $PREFIX/lib isn't created by "make install". If you install from source, the workaround is to try a make install, then go into $PREFIX and create the directory lib by hand, then again issuing "make install". But this is something that should be fixed in the Makefile properly... Greetings, Stefan Winter -- Stefan WINTER RESTENA Foundation - Réseau Téléinformatique de l'Education Nationale et de la Recherche R&D Engineer 6, rue Richard Coudenhove-Kalergi L-1359 Luxembourg email: stefan.winter@restena.lu Tel.: +352 424409-1 http://www.restena.lu Fax: +352 422473
same for me. But at me it fails with: /home/frank/RPM/BUILD/freeradius-1.1.1/libtool --mode=link gcc -static -o radeapclient radeapclient.lo libeap/libeap.la -lnsl -lresolv -lpthread gcc -o radeapclient radeapclient.o libeap/.libs/libeap.so /home/frank/RPM/BUILD/freeradius-1.1.1/src/lib/.libs/libradius.so -lcrypt -lnsl -lresolv -lpthread -Wl,--rpath -Wl,/home/frank/RPM/BUILD/freeradius-1.1.1/src/modules/rlm_eap/libeap/.libs -Wl,--rpath -Wl,/home/frank/RPM/BUILD/freeradius-1.1.1/src/lib/.libs gcc: radeapclient.o: No such file or directory gmake[6]: *** [radeapclient] Error 1 Sandworm schrieb:
Hi
While attempting to build the RPMs for FreeRadius version 1.1.1, I get an error during the build of libradius. Extract of the output is shown below. Build being done with 'rpmbuild -ba /usr/src/redhat/SPECS/freeradius.spec', where the spec file is taken from the 'redhat' directory in the tarball. The build is being done on Redhat Enterprise Server 3 (ES) Update 6. Looks like the Makefile in the tarball's src/lib directory is removing the '/var/tmp/freeradius-root/usr/lib/' directory and the symbolic link creation then does not find it.
Making install in lib... gmake[4]: Entering directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src/lib' /usr/bin/libtool --mode=install /usr/src/redhat/BUILD/freeradius- 1.1.1/install-sh -c -c libradius.la /var/tmp/freeradius- root/usr/lib /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius-1.1.1.so /var/tmp/freeradius-root/usr/libradius- 1.1.1.so (cd /var/tmp/freeradius-root/usr && rm -f libradius.so && ln -s libradius-1.1.1.so libradius.so) /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.lai /var/tmp/freeradius-root/usr/libradius.la /usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.a /var/tmp/freeradius-root/usr/libradius.a ranlib /var/tmp/freeradius-root/usr/libradius.a chmod 644 /var/tmp/freeradius-root/usr/libradius.a libtool: install: warning: remember to run `libtool --finish /usr/lib' rm -f /var/tmp/freeradius-root/usr/lib/libradius-1.1.1.la; ln -s libradius.la /var/tmp/freeradius-root/usr/lib/libradius- 1.1.1.la ln: creating symbolic link `/var/tmp/freeradius- root/usr/lib/libradius-1.1.1.la' to `libradius.la': No such file or directory gmake[4]: *** [install] Error 1 gmake[4]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src/lib' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src' gmake[2]: *** [install] Error 2 gmake[2]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/usr/src/redhat/BUILD/freeradius- 1.1.1' make: *** [install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.72933 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.72933 (%install)
Frank Büttner wrote:
same for me. But at me it fails with: /home/frank/RPM/BUILD/freeradius-1.1.1/libtool --mode=link gcc -static -o radeapclient radeapclient.lo libeap/libeap.la -lnsl -lresolv -lpthread
In the previous post rpmbuild was using the system libtool, but in your case the output shows that it's using the libtool in the FreeRADIUS tarball. Did you edit freeradius.spec ? -- Nicolas Baradakis
Nicolas Baradakis schrieb:
Frank Büttner wrote:
same for me. But at me it fails with: /home/frank/RPM/BUILD/freeradius-1.1.1/libtool --mode=link gcc -static -o radeapclient radeapclient.lo libeap/libeap.la -lnsl -lresolv -lpthread
In the previous post rpmbuild was using the system libtool, but in your case the output shows that it's using the libtool in the FreeRADIUS tarball. Did you edit freeradius.spec ?
yes. here the config part: %configure \ 103 --disable-static \ 104 --with-gnu-ld \ 105 --with-threads \ 106 --with-thread-pool \ 107 --disable-ltdl-install \ 108 --with-rlm-sql_postgresql-include-dir=/usr/include/pgsql \ 109 --with-rlm-sql_mysql-include-dir=/usr/include/mysql \ 110 --with-mysql-lib-dir=%{_libdir}/mysql \ 111 --with-rlm-dbm-lib-dir=%{_libdir} \ 112 --with-rlm-krb5-include-dir=/usr/kerberos/include
Nicolas Baradakis schrieb:
Frank Büttner wrote:
Did you edit freeradius.spec ?
yes. here the config part:
%configure \ 103 --disable-static \
Don't use the --disable-static option, it's the cause of the message "radeapclient.o: No such file or directory"
Ok now compiling works, but at make install I get another error: /home/frank/RPM/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.lai /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/libradius.la /home/frank/RPM/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius.a /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/libradius.a ranlib /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/libradius.a chmod 644 /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/libradius.a libtool: install: warning: remember to run `libtool --finish /usr/lib' rm -f /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/lib/libradius-1.1.1.la; ln -s libradius.la /var/tmp/freeradius-1.1.1-Frank-buildroot/usr/lib/libradius-1.1.1.la ln: creating symbolic link `/var/tmp/freeradius-1.1.1-Frank-buildroot/usr/lib/libradius-1.1.1.la' to `libradius.la': No such file or directory
Sandworm wrote:
Looks like the Makefile in the tarball's src/lib directory is removing the '/var/tmp/freeradius-root/usr/lib/' directory and the symbolic link creation then does not find it.
I don't think so: there is no directory removal in src/lib/Makefile.
/usr/bin/libtool --mode=install /usr/src/redhat/BUILD/freeradius- 1.1.1/install-sh -c -c libradius.la /var/tmp/freeradius- root/usr/lib
Here the Makefile command tells libtool to install the library in /var/tmp/freeradius-root/usr/lib.
/usr/src/redhat/BUILD/freeradius-1.1.1/install-sh -c -c .libs/libradius-1.1.1.so /var/tmp/freeradius-root/usr/libradius- 1.1.1.so
But the next line shows that installation is done in the parent directory /var/tmp/freeradius-root/usr. I really have no idea why this happens. -- Nicolas Baradakis
participants (4)
-
Frank Büttner -
Nicolas Baradakis -
Sandworm -
Stefan Winter