Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Ralf S. Engelschall
On Wed, Jul 30, 2008, Victor G. Bolshakov wrote:

 I`m unable to build FreeRADIUS 2.0.5 under Solaris 10. Buld just stop with

 checking for gcc... /openpkg/bin/cc
 checking for C compiler default output file name...
 configure: error: C compiler cannot create executables

 Many other packages (apache, mysql, postgresql)compiled and worked without 
 any problems.

 Any suggestions?

See the config.log file in the source tree top-level directory of
FreeRADIUS. There is the reason for the problem, usually some libraries
cannot be found or a compiler flag is not understood or something like
this.

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Victor G. Bolshakov

Sorry, I'm just inattentively looked in to config.log for first time...

This is the problem:

configure:2314: checking for C compiler default output file name
configure:2341: /openpkg/bin/cc -I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe -I/openpkg/include 
-I/openpkg/include -L/openpkg/lib conftest.c -llber -lssl -lcrypto 5

/openpkg/bin/ld: cannot find -llber
collect2: ld returned 1 exit status


Ralf S. Engelschall wrote:


I`m unable to build FreeRADIUS 2.0.5 under Solaris 10. Buld just stop with

checking for gcc... /openpkg/bin/cc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables

Many other packages (apache, mysql, postgresql)compiled and worked without any 
problems.

Any suggestions?


See the config.log file in the source tree top-level directory of
FreeRADIUS. There is the reason for the problem, usually some libraries
cannot be found or a compiler flag is not understood or something like
this.


__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread kalou
Hello Victor,

   can you try a ls /usr/lib/liblber*.so ? if the lib is not present, you
might need to pkgadd some ldap packages.


 Sorry, I'm just inattentively looked in to config.log for first time...

 This is the problem:

 configure:2314: checking for C compiler default output file name
 configure:2341: /openpkg/bin/cc
 -I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe
 -I/openpkg/include
 -I/openpkg/include -L/openpkg/lib conftest.c -llber -lssl -lcrypto 5
 /openpkg/bin/ld: cannot find -llber
 collect2: ld returned 1 exit status

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Victor G. Bolshakov

External dependence for OpenPKG packege? I also try to build without LDAP 
(with_openldap=no) without any success...

[EMAIL PROTECTED] wrote:

   can you try a ls /usr/lib/liblber*.so ? if the lib is not present, you
might need to pkgadd some ldap packages.



Sorry, I'm just inattentively looked in to config.log for first time...

This is the problem:

configure:2314: checking for C compiler default output file name
configure:2341: /openpkg/bin/cc
-I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe
-I/openpkg/include
-I/openpkg/include -L/openpkg/lib conftest.c -llber -lssl -lcrypto 5
/openpkg/bin/ld: cannot find -llber
collect2: ld returned 1 exit status


__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Ralf S. Engelschall
On Wed, Jul 30, 2008, Victor G. Bolshakov wrote:

 External dependence for OpenPKG packege? I also try to build without LDAP 
 (with_openldap=no) without any success...

 [EMAIL PROTECTED] wrote:
can you try a ls /usr/lib/liblber*.so ? if the lib is not present, you
 might need to pkgadd some ldap packages.


 Sorry, I'm just inattentively looked in to config.log for first time...

 This is the problem:

 configure:2314: checking for C compiler default output file name
 configure:2341: /openpkg/bin/cc
 -I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe
 -I/openpkg/include
 -I/openpkg/include -L/openpkg/lib conftest.c -llber -lssl -lcrypto 5
 /openpkg/bin/ld: cannot find -llber
 collect2: ld returned 1 exit status

Yes, liblber is part of OpenLDAP. If with_openldap=no doesn't help
then we have to fix something here. But I see already a problem in the
packaging: LDAP libraries are passed in LIBS unconditionally. I've tried
to fix this with the latest freeradius package. Please retry with this
one.
   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Victor G. Bolshakov

Ralf S. Engelschall wrote:

On Wed, Jul 30, 2008, Victor G. Bolshakov wrote:


External dependence for OpenPKG packege? I also try to build without LDAP 
(with_openldap=no) without any success...

[EMAIL PROTECTED] wrote:

   can you try a ls /usr/lib/liblber*.so ? if the lib is not present, you
might need to pkgadd some ldap packages.



Sorry, I'm just inattentively looked in to config.log for first time...

This is the problem:

configure:2314: checking for C compiler default output file name
configure:2341: /openpkg/bin/cc
-I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe
-I/openpkg/include
-I/openpkg/include -L/openpkg/lib conftest.c -llber -lssl -lcrypto 5
/openpkg/bin/ld: cannot find -llber
collect2: ld returned 1 exit status


Yes, liblber is part of OpenLDAP. If with_openldap=no doesn't help
then we have to fix something here. But I see already a problem in the
packaging: LDAP libraries are passed in LIBS unconditionally. I've tried
to fix this with the latest freeradius package. Please retry with this
one.


Better, but got new error:

(cd .libs  /openpkg/bin/cc  -I/openpkg/RPM/TMP/freeradius-server-2.0.5/src/include -O2 -pipe -I/openpkg/include -c 
-fno-builtin radiusdS.c)

rm -f .libs/radiusdS.c .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT
/openpkg/bin/cc .libs/radiusdS.o -o radiusd acct.o auth.o client.o conffile.o crypt.o exec.o files.o listen.o log.o 
mainconfig.o modules.o modcall.o radiusd.o radius_snmp.o session.o smux.o threads.o util.o valuepair.o version.o xlat.o 
event.o realms.o evaluate.o vmps.o detail.o -Wl,--export-dynamic  ../modules/rlm_acctlog/.libs/rlm_acctlog.a 
-L/openpkg/lib ../modules/rlm_acct_unique/.libs/rlm_acct_unique.a ../modules/rlm_always/.libs/rlm_always.a 
../modules/rlm_attr_filter/.libs/rlm_attr_filter.a ../modules/rlm_attr_rewrite/.libs/rlm_attr_rewrite.a 
../modules/rlm_chap/.libs/rlm_chap.a ../modules/rlm_checkval/.libs/rlm_checkval.a 
../modules/rlm_copy_packet/.libs/rlm_copy_packet.a ../modules/rlm_counter/.libs/rlm_counter.a 
../modules/rlm_detail/.libs/rlm_detail.a ../modules/rlm_digest/.libs/rlm_digest.a ../modules/rlm_eap/.libs/rlm_eap.a 
../modules/rlm_exec/.libs/rlm_exec.a ../modules/rlm_expiration/.libs/rlm_expiration.a 
../modules/rlm_expr/.libs/rlm_expr.a ../modules/rlm_fastusers/.libs/rlm_fastusers.a 
../modules/rlm_files/.libs/rlm_files.a ../modules/rlm_ippool/.libs/rlm_ippool.a /openpkg/lib/libgdbm.a 
../modules/rlm_logintime/.libs/rlm_logintime.a ../modules/rlm_mschap/.libs/rlm_mschap.a 
../modules/rlm_pap/.libs/rlm_pap.a ../modules/rlm_passwd/.libs/rlm_passwd.a 
../modules/rlm_preprocess/.libs/rlm_preprocess.a ../modules/rlm_radutmp/.libs/rlm_radutmp.a 
../modules/rlm_realm/.libs/rlm_realm.a ../modules/rlm_sqlcounter/.libs/rlm_sqlcounter.a 
../modules/rlm_sql_log/.libs/rlm_sql_log.a ../modules/rlm_unix/.libs/rlm_unix.a ../modules/rlm_policy/.libs/rlm_policy.a 
../modules/rlm_eap/types/rlm_eap_md5/.libs/rlm_eap_md5.a ../modules/rlm_eap/types/rlm_eap_leap/.libs/rlm_eap_leap.a 
../modules/rlm_eap/types/rlm_eap_sim/.libs/rlm_eap_sim.a 
/openpkg/RPM/TMP/freeradius-server-2.0.5/src/modules/rlm_eap/libeap/.libs/libfreeradius-eap.a 
../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a 
../modules/rlm_eap/types/rlm_eap_gtc/.libs/rlm_eap_gtc.a ../modules/rlm_eap/libeap/.libs/libfreeradius-eap.a 
/openpkg/RPM/TMP/freeradius-server-2.0.5/src/lib/.libs/libfreeradius-radius.a -lnsl -lresolv -lsocket -lcrypt 
/openpkg/lib/libltdl.a -L/openpkg/lib/ -lssl -lcrypto

modules.o: In function `setup_modules':
modules.c:(.text+0x10b4): undefined reference to 
`lt__PROGRAM__LTX_preloaded_symbols'
modules.c:(.text+0x10c4): undefined reference to 
`lt__PROGRAM__LTX_preloaded_symbols'
collect2: ld returned 1 exit status
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Artur Frysiak

Victor G. Bolshakov wrote:


I try to build openldap and also without success:

 /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H 
-I../../../include -I../../../include -I.. -I./.. -I/openpkg/include 
-I/openpkg/include/pth -c monitor.c -o monitor.o

In file included from ../../../include/ac/signal.h:20,
 from ../slap.h:38,
 from ../back-monitor/back-monitor.h:28,
 from back-ldap.h:27,
 from monitor.c:33:
/usr/include/signal.h:222: error: conflicting types for 'pth_sigwait'
/openpkg/include/pth/pth.h:536: error: previous declaration of 
'pth_sigwait' was here

make[3]: *** [monitor.lo] Error 1
make[2]: *** [.backend] Error 1
make[1]: *** [all-common] Error 1
make: *** [all-common] Error 1


On Solaris 9:

/bin/sh ../../..//libtool --tag=disable-shared --mode=compile 
/openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H 
-I../../../include-I../../../include -I.. -I./.. 
-I/openpkg/include -I/openpkg/include/pth-c monitor.c
 /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H 
-I../../../include -I../../../include -I.. -I./.. -I/openpkg/include 
-I/openpkg/include/pth -c monitor.c -o monitor.o

In file included from ../../../include/ac/signal.h:20,
 from ../slap.h:38,
 from ../back-monitor/back-monitor.h:28,
 from back-ldap.h:27,
 from monitor.c:33:
/openpkg/lib/gcc/sparc-sun-solaris2.9/4.2.4/include/signal.h:218: error: 
conflicting types for 'pth_sigwait'
/openpkg/include/pth/pth.h:536: error: previous declaration of 
'pth_sigwait' was here


--
Artur Frysiak

KOELNER S.A. z siedzib? we Wroc?awiu przy ul. Kwidzy?skiej 6,
51-416 Wroc?aw, zarejestrowana w rejestrze przedsi?biorc?w
prowadzonym przez S?d Rejonowy dla Wroc?awia-Fabrycznej
Wydzia? VI Gospodarczy Krajowego Rejestru S?dowego pod
numerem KRS 033537, NIP 895-16-87-880,
kapita? zak?adowy: 32.560.000,00 z? w ca?o?ci wp?acony
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Dieter Klünter
Victor G. Bolshakov [EMAIL PROTECTED] writes:

 Ralf S. Engelschall wrote:
 On Wed, Jul 30, 2008, Victor G. Bolshakov wrote:

 External dependence for OpenPKG packege? I also try to build without LDAP 
 (with_openldap=no) without any success...

 [EMAIL PROTECTED] wrote:

 I try to build openldap and also without success:

  /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H
 -I../../../include -I../../../include -I.. -I./.. -I/openpkg/include
 -I/openpkg/include/pth -c monitor.c -o monitor.o
 In file included from ../../../include/ac/signal.h:20,
  from ../slap.h:38,
  from ../back-monitor/back-monitor.h:28,
  from back-ldap.h:27,
  from monitor.c:33:
 /usr/include/signal.h:222: error: conflicting types for 'pth_sigwait'
 /openpkg/include/pth/pth.h:536: error: previous declaration of 'pth_sigwait' 
 was here
 make[3]: *** [monitor.lo] Error 1
 make[2]: *** [.backend] Error 1
 make[1]: *** [all-common] Error 1
 make: *** [all-common] Error 1

This error is due to gnu-pth, openldap calls epoll on linux and
/dev/poll on solaris.

-Dieter

-- 
Dieter Klünter | Systemberatung
Mobil: +49.176.51126864
Fax: +49.40.64891521
Key ID:8EF7B6C6
__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org


Re: unable to buld FreeRADIUS 2.0.5 under Solaris 10

2008-07-30 Thread Ralf S. Engelschall
On Wed, Jul 30, 2008, Artur Frysiak wrote:

 Victor G. Bolshakov wrote:

 I try to build openldap and also without success:

  /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H
 -I../../../include -I../../../include -I.. -I./.. -I/openpkg/include
 -I/openpkg/include/pth -c monitor.c -o monitor.o
 In file included from ../../../include/ac/signal.h:20,
  from ../slap.h:38,
  from ../back-monitor/back-monitor.h:28,
  from back-ldap.h:27,
  from monitor.c:33:
 /usr/include/signal.h:222: error: conflicting types for 'pth_sigwait'
 /openpkg/include/pth/pth.h:536: error: previous declaration of
 'pth_sigwait' was here
 make[3]: *** [monitor.lo] Error 1
 make[2]: *** [.backend] Error 1
 make[1]: *** [all-common] Error 1
 make: *** [all-common] Error 1

 On Solaris 9:

 /bin/sh ../../..//libtool --tag=disable-shared --mode=compile
 /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H
 -I../../../include-I../../../include -I.. -I./..
 -I/openpkg/include -I/openpkg/include/pth-c monitor.c
  /openpkg/bin/cc -O2 -pipe -I/openpkg/include/pth -D_AVL_H
 -I../../../include -I../../../include -I.. -I./.. -I/openpkg/include
 -I/openpkg/include/pth -c monitor.c -o monitor.o
 In file included from ../../../include/ac/signal.h:20,
  from ../slap.h:38,
  from ../back-monitor/back-monitor.h:28,
  from back-ldap.h:27,
  from monitor.c:33:
 /openpkg/lib/gcc/sparc-sun-solaris2.9/4.2.4/include/signal.h:218: error:
 conflicting types for 'pth_sigwait'
 /openpkg/include/pth/pth.h:536: error: previous declaration of
 'pth_sigwait' was here

Ok, I applied a workaround. Please retry with the latest openldap
package as of this evening.

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
OpenPKG http://openpkg.org
User Communication List  openpkg-users@openpkg.org