FreeRadius
I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm : : ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_mac.o)(.text+0x71): In function `x99_mac': : undefined reference to `DES_cbc_encrypt' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x3c4): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x5ea): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0xde6): In function `x99_pw_valid':: undefined reference to `MD5' collect2: ld returned 1 exit status rm -f .libs/radiusdS.o gmake[4]: *** [radiusd] Error 1 gmake[3]: *** [common] Error 1 gmake[2]: *** [all] Error 2 gmake[1]: *** [common] Error 1 make: *** [all] Error 2 error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.85465 (%build) Why is this happining ? I'm used to build packages with: openpkg build package But this only works for release packages. How should I proceed with a packages of current ? Am I missing somthing ? Do I need to download/build somthing from current to mix release-21 and current packages ? Thanks, Alex -- ATIX Tecnologia e Com Ltda Tel.: +55-(11) 4667-5900 This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm : ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_mac.o)(.text+0x71): In function `x99_mac': : undefined reference to `DES_cbc_encrypt' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x3c4): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x5ea): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0xde6): In function `x99_pw_valid':: undefined reference to `MD5' collect2: ld returned 1 exit status rm -f .libs/radiusdS.o gmake[4]: *** [radiusd] Error 1 gmake[3]: *** [common] Error 1 gmake[2]: *** [all] Error 2 gmake[1]: *** [common] Error 1 make: *** [all] Error 2 error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.85465 (%build) Why is this happining ? I'm used to build packages with: openpkg build package But this only works for release packages. How should I proceed with a packages of current ? Am I missing somthing ? Do I need to download/build somthing from current to mix release-21 and current packages ? Well, the package is brand-new in OpenPKG-CURRENT and still not well tested. But it at least builds fine for me under FreeBSD 4. Under what OS are you trying to build this? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
;-(( I'm locked to RH7.3 Citando Ralf S. Engelschall [EMAIL PROTECTED]: On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm : ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_mac.o)(.text+0x71): In function `x99_mac': : undefined reference to `DES_cbc_encrypt' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x3c4): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x5ea): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0xde6): In function `x99_pw_valid':: undefined reference to `MD5' collect2: ld returned 1 exit status rm -f .libs/radiusdS.o gmake[4]: *** [radiusd] Error 1 gmake[3]: *** [common] Error 1 gmake[2]: *** [all] Error 2 gmake[1]: *** [common] Error 1 make: *** [all] Error 2 error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.85465 (%build) Why is this happining ? I'm used to build packages with: openpkg build package But this only works for release packages. How should I proceed with a packages of current ? Am I missing somthing ? Do I need to download/build somthing from current to mix release-21 and current packages ? Well, the package is brand-new in OpenPKG-CURRENT and still not well tested. But it at least builds fine for me under FreeBSD 4. Under what OS are you trying to build this? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
I was checking my system trying to find out whats wrong. I realy don't understand exactly where things come from, but perhaps this information can help you to help me :-)) I search for references of DES_cbc_encrypt, where I found: a) In /opkg/include/openssl/des.h is a definition of a function with that name b) From RH7.3 I also have a des.h under /usr/include/openssl/des.h that do not have that function defined. Could it be that building freeradius it uses the wrong ver of des.h ? I do not know if it should be using the headers from OPKG or RH, but I guess it should be from OPKG as my servers are all from OPKG and if they need I guess they use OPKG version of openssl. Thanks for any tip that could bring me further. Alex Citando Ralf S. Engelschall [EMAIL PROTECTED]: On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm : ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_mac.o)(.text+0x71): In function `x99_mac': : undefined reference to `DES_cbc_encrypt' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x3c4): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0x5ea): In function `x99_pw_valid':: undefined reference to `MD4' ../modules/rlm_x99_token/.libs/rlm_x99_token.a(x99_pwe.o)(.text+0xde6): In function `x99_pw_valid':: undefined reference to `MD5' collect2: ld returned 1 exit status rm -f .libs/radiusdS.o gmake[4]: *** [radiusd] Error 1 gmake[3]: *** [common] Error 1 gmake[2]: *** [all] Error 2 gmake[1]: *** [common] Error 1 make: *** [all] Error 2 error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.85465 (%build) Why is this happining ? I'm used to build packages with: openpkg build package But this only works for release packages. How should I proceed with a packages of current ? Am I missing somthing ? Do I need to download/build somthing from current to mix release-21 and current packages ? Well, the package is brand-new in OpenPKG-CURRENT and still not well tested. But it at least builds fine for me under FreeBSD 4. Under what OS are you trying to build this? Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- ATIX Tecnologia e Com Ltda Tel.: +55-(11) 4667-5900 This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
On Wed, Sep 01, 2004 at 02:59:22PM -0300, Alexander Belck wrote: Could it be that building freeradius it uses the wrong ver of des.h ? It is either using the wrong des.h or the wrong crypto library. The names of the crypto API changed between openssl 0.9.6 and 0.9.7. -- Michael van Elst Internet: [EMAIL PROTECTED] A potential Snark may lurk in every tree. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm I have a slightly different freeradius SRPMS that's based on the one I've been using for a couple of years now. It has a couple of options to support a private gdbm password file, and a hack to work with Nortel/Baynetworks Annex RACs that generate bogus header information. The other thing that's different is that I'm using daemontools to control freeradius, and I've written a radiusd-conf script that generates the appropriate /service structure. ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.1/SRC/freeradius-1.0.0-20040812.src.rpm Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Do not meddle in the affairs of cats, for they are subtle and will piss on your computer.'' --Bruce Graham __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
But shouldn't openpkg use libs/headers from openpkg version ? Why does it seams to be mixing the underlaying OS-stuff with the OPKG ones ? From RH7.3 I have openssl-0.9.6b-35.7 and from OPKG2.1 I have openssl-0.9.7d-2.1.0 It seams to me that when building it takes the headers from OpenPKG (thus refering to DES_cbc_encrypt), but when linking it use the lib from RH7.3 where it could not find this function. Can I be interpreting this write ? Any sugestion how to fix it ? Thanks, Alex Citando Michael van Elst [EMAIL PROTECTED]: On Wed, Sep 01, 2004 at 02:59:22PM -0300, Alexander Belck wrote: Could it be that building freeradius it uses the wrong ver of des.h ? It is either using the wrong des.h or the wrong crypto library. The names of the crypto API changed between openssl 0.9.6 and 0.9.7. -- Michael van Elst Internet: [EMAIL PROTECTED] A potential Snark may lurk in every tree. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- ATIX Tecnologia e Com Ltda Tel.: +55-(11) 4667-5900 This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
I tryed to rebuild Bill's version and got: Installing freeradius-1.0.0-20040812.src.rpm error: File /opkg/RPM/SRC/freeradius/%{Name}-%{Version}-CSYS.patch: No such file or directory Thanks, Alex Citando Bill Campbell [EMAIL PROTECTED]: On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm I have a slightly different freeradius SRPMS that's based on the one I've been using for a couple of years now. It has a couple of options to support a private gdbm password file, and a hack to work with Nortel/Baynetworks Annex RACs that generate bogus header information. The other thing that's different is that I'm using daemontools to control freeradius, and I've written a radiusd-conf script that generates the appropriate /service structure. ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.1/SRC/freeradius-1.0.0-20040812.src.rpm Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Do not meddle in the affairs of cats, for they are subtle and will piss on your computer.'' --Bruce Graham __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
On Wed, Sep 01, 2004, [EMAIL PROTECTED] wrote: Hi Bill Do you know if I can use an LDAP backand with your version of FreeRadius ? I'm trying to integrate this with ISPman, that holds all account infos on LDAP. I don't see why not although I haven't built it with ldap support. If I remember correctly, there may have been issues with the LDAP support which could well be the same problems you've found. Thanks, Alex Citando Bill Campbell [EMAIL PROTECTED]: On Wed, Sep 01, 2004, Alexander Belck wrote: I'm trying to install freeradius. I got freeradius-1.0.0-20040810.src.rpm from current, then: openpkg rpm --rebuild freeradius-1.0.0-20040810.src.rpm I have a slightly different freeradius SRPMS that's based on the one I've been using for a couple of years now. It has a couple of options to support a private gdbm password file, and a hack to work with Nortel/Baynetworks Annex RACs that generate bogus header information. The other thing that's different is that I'm using daemontools to control freeradius, and I've written a radiusd-conf script that generates the appropriate /service structure. ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.1/SRC/freeradius-1.0.0-20040812.src.rpm Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ ``Do not meddle in the affairs of cats, for they are subtle and will piss on your computer.'' --Bruce Graham __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] -- Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Software LLC UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ If the Democrats had wanted Gore to be president, they should have voted for impeachment. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
On Wed, Sep 01, 2004, [EMAIL PROTECTED] wrote: I tryed to rebuild Bill's version and got: Installing freeradius-1.0.0-20040812.src.rpm error: File /opkg/RPM/SRC/freeradius/%{Name}-%{Version}-CSYS.patch: No such file or directory If you install this, it provides some additional Macros that I've been using from the old Caldera version of RPM. ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.1/SRC/csrpmutils-0.90-20030119.src.rpm Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ Memoirs -- Bill Clinton is getting $12 million for his memoirs, and his wife Hillary got $8 million for hers. That's $20 million for memories from two people who for eight years repeatedly testified they couldn't remember anything. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
Now I rebuild with: openpkg rpm --rebuild -D with_gdbm_passwd=no freeradius-1.0.0-20040812.src.rpm Executing(%install): env -i /opkg/lib/openpkg/bash --norc --noprofile --posix -e /opkg/RPM/TMP/rpm-tmp.9186 + cd /opkg/RPM/TMP + cd freeradius-1.0.0 + DESTDIR=/opkg/RPM/TMP/freeradius-1.0.0-root + export DESTDIR + GZIP=-v9nf + export GZIP + perl -e '$_=$ENV{DESTDIR}./; exit (!m:/tmp/\w\S+/:i || m:/\.\./:)' + rm -rf /opkg/RPM/TMP/freeradius-1.0.0-root + mkdir -p /opkg/RPM/TMP/freeradius-1.0.0-root + ginstall -d /opkg/RPM/TMP/freeradius-1.0.0-root/etc/logrotate.d /opkg/RPM/TMP/freeradius-1.0.0-root/etc/pam.d /opkg/RPM/TMP/freeradius-1.0.0-root/etc/rc.d/init.d /opkg/RPM/TMP/rpm-tmp.9186: line 39: ginstall: command not found error: Bad exit status from /opkg/RPM/TMP/rpm-tmp.9186 (%install) RPM build errors: Bad exit status from /opkg/RPM/TMP/rpm-tmp.9186 (%install) Should I have ginstall ?? Citando Bill Campbell [EMAIL PROTECTED]: On Wed, Sep 01, 2004, [EMAIL PROTECTED] wrote: I tryed to rebuild Bill's version and got: Installing freeradius-1.0.0-20040812.src.rpm error: File /opkg/RPM/SRC/freeradius/%{Name}-%{Version}-CSYS.patch: No such file or directory If you install this, it provides some additional Macros that I've been using from the old Caldera version of RPM. ftp://ftp.celestial.com/private/ftp.openpkg.org/release/2.1/SRC/csrpmutils-0.90-20030119.src.rpm Bill -- INTERNET: [EMAIL PROTECTED] Bill Campbell; Celestial Systems, Inc. UUCP: camco!bill PO Box 820; 6641 E. Mercer Way FAX:(206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676 URL: http://www.celestial.com/ Memoirs -- Bill Clinton is getting $12 million for his memoirs, and his wife Hillary got $8 million for hers. That's $20 million for memories from two people who for eight years repeatedly testified they couldn't remember anything. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED] This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]
Re: FreeRadius
Since Bill's version required lib-tool, I build it from Opkg-2.1. Than I give freeradius-1.0.0 from CURRENT an other try I think I it passes the previus point, but now it stops when linking radiusd. Can someone take a look to see if it is visible where things ar taken from wrong place and perhaps fix some PREFIX or LIB orther so that it can finish building ? when the /opkg/bin/cc command line adds option -lssl is it taken ssl from RH or from OPKG ? extracting global C symbols from `../modules/rlm_eap/types/rlm_eap_gtc/.libs/rlm_eap_gtc.a' (cd .libs /opkg/bin/cc -c -fno-builtin -fno-rtti -fno-exceptions radiusdS.c) cc1: warning: command line option -fno-rtti is valid for C++/ObjC++ but not for C rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT /opkg/bin/cc .libs/radiusdS.o -O2 -pipe -I/opkg/include -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -I../include -DHOSTINFO=\\ -DRADIUSD_VERSION=\1.0.0\ -o radiusd radiusd.o files.o util.o acct.o nas.o log.o valuepair.o version.o proxy.o exec.o auth.o timestr.o conffile.o modules.o modcall.o session.o xlat.o threads.o smux.o radius_snmp.o client.o request_list.o mainconfig.o -Wl,--export-dynamic ../modules/rlm_acct_unique/.libs/rlm_acct_unique.a -lresolv ../modules/rlm_always/.libs/rlm_always.a -lresolv ../modules/rlm_attr_filter/.libs/rlm_attr_filter.a -lresolv ../modules/rlm_attr_rewrite/.libs/rlm_attr_rewrite.a -lresolv ../modules/rlm_chap/.libs/rlm_chap.a -lresolv ../modules/rlm_counter/.libs/rlm_counter.a -lresolv ../modules/rlm_detail/.libs/rlm_detail.a -lresolv ../modules/rlm_digest/.libs/rlm_digest.a -lresolv ../modules/rlm_eap/.libs/rlm_eap.a -L/opkg/RPM/TMP/freeradius-1.0.0/src/modules/rlm_eap/libeap /opkg/RPM/TMP/freeradius-1.0.0/src/modules/rlm_eap/libeap/.libs/libeap.a -lresolv ../modules/rlm_exec/.libs/rlm_exec.a -lresolv ../modules/rlm_expr/.libs/rlm_expr.a -lresolv ../modules/rlm_fastusers/.libs/rlm_fastusers.a -lresolv ../modules/rlm_files/.libs/rlm_files.a -lresolv ../modules/rlm_ippool/.libs/rlm_ippool.a -lresolv ../modules/rlm_ldap/.libs/rlm_ldap.a /usr/lib/libsasl.so -L/usr/kerberos/lib /usr/lib/libgdbm.so -lcrypt -lresolv -lresolv -L/opkg/lib /opkg/lib/libldap.a /opkg/lib/liblber.a -lresolv -lssl -lcrypto -lresolv ../modules/rlm_mschap/.libs/rlm_mschap.a -lresolv ../modules/rlm_ns_mta_md5/.libs/rlm_ns_mta_md5.a -lresolv ../modules/rlm_pam/.libs/rlm_pam.a -lpam -ldl -lresolv ../modules/rlm_pap/.libs/rlm_pap.a -lresolv ../modules/rlm_passwd/.libs/rlm_passwd.a -lresolv ../modules/rlm_preprocess/.libs/rlm_preprocess.a -lresolv ../modules/rlm_radutmp/.libs/rlm_radutmp.a -lresolv ../modules/rlm_realm/.libs/rlm_realm.a -lresolv ../modules/rlm_unix/.libs/rlm_unix.a -lcrypt -lresolv ../modules/rlm_x99_token/.libs/rlm_x99_token.a -lresolv ../modules/rlm_checkval/.libs/rlm_checkval.a -lresolv ../modules/rlm_eap/types/rlm_eap_md5/.libs/rlm_eap_md5.a -lresolv ../modules/rlm_eap/types/rlm_eap_leap/.libs/rlm_eap_leap.a -lresolv ../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a -lresolv ../modules/rlm_eap/types/rlm_eap_gtc/.libs/rlm_eap_gtc.a -lresolv -L/opkg/RPM/TMP/freeradius-1.0.0/src/lib -lcrypt -lnsl -lresolv /opkg/RPM/TMP/freeradius-1.0.0/src/lib/.libs/libradius.a -lcrypt modules.o(.text+0xab): In function `detach_modules': : undefined reference to `lt_dlclose' modules.o(.text+0x28d): In function `find_module_instance': : : l o t s o f e r r o r s : This message was sent using IMP, the Internet Messaging Program. __ The OpenPKG Projectwww.openpkg.org User Communication List [EMAIL PROTECTED]