Re: error in compilation (make)

2004-11-18 Thread Eva Kolega
Costas,
Thanks a lot for your answer.
I am seeing to the matter in a great detail, as I still have problems 
with the version of the S/W components used.

Eva Kolega
NOC -TEI of ATHENS
Kostas Kalevras wrote:
On Thu, 11 Nov 2004, Eva Kolega wrote:
Paul ,
I enclose the whole make report. The problem starts where the lines 
are in bold format. To be precise, I have installed 
mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz with nothing 
else. I mean no mysql client, no devel, no share.  But I guess this 
is the full mysql installation. I mean we run mysql on a number of 
machines for various services. We have not faced any problems yet.  
The ps command output follows:

  root  2159 20585  0 16:16:07 pts/10:00 grep mysql
  root 26783 1  0Oct 11 ?0:00 /bin/sh 
/usr/local/mysql/bin/mysqld_safe --user=mysql
  mysql 26800 26783  0   Oct 11 ?8:20 
/usr/local/mysql/bin/mysqld 
--defaults-extra-file=/usr/local/mysql/data/my.cnf

And this is the configure command for freeradius:
./configure --prefix=/usr/local/freeradius 
--exec-prefix=/usr/local/freeradius 
--with-mysql-include-dir=/usr/local/mysql/include 
with-openldap-include-dir=/usr/local/openldap

Every time I do a google search I find answers consearning freeradius 
installation on  Linux !! Well, I am using Sol 9.

The mysql package probably does not contain the mysql includes and 
dynamic libraries. You need to also install the devel package in order 
to get rlm_mysql compiled.

Thanks in advance,
Eva Kolega
NOC - TEI of ATHENS
Paul Hampson wrote:
On Tue, Nov 09, 2004 at 05:49:56PM +0200, Eva Kolega at NTUA wrote:
I have installed 
mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz, Apache2, 
php4.3.9 and openldap.
The problem is when I try to run make, though configure run ok,


gcc: sql_mysql.c: linker input file unused because linking not done
Can we have the lines above this? At this point whatever the problem is
has already occurred and so we get the error messages below.

/usr/local/src/freeradius-1.0.1/libtool --mode=link ld -module 
-static  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
-DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith 
-Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W 
-Wredundant-decls -Wundef -I../.. -I../../../../include 
-I/usr/local/mysql/include -Xa -xstrconst -mt -D_FORTEC_ -xarch=v9  
sql_mysql.o -o rlm_sql_mysql.a
mkdir .libs
(cd .  ln -s sql_mysql.lo sql_mysql.o)
ar cru rlm_sql_mysql.a sql_mysql.o  ar: cannot open sql_mysql.o
  No such file or directory
ar: sql_mysql.o not found
make[10]: *** [rlm_sql_mysql.a] Error 1


make[1]: Entering directory `/usr/local/src/freeradius-1.0.1'
Making all in src...
make[2]: Entering directory `/usr/local/src/freeradius-1.0.1/src'
make[3]: Entering directory `/usr/local/src/freeradius-1.0.1/src'
Making all in include...
make[4]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/include'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/include'
Making all in lib...
make[4]: Entering directory `/usr/local/src/freeradius-1.0.1/src/lib'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/lib'
Making all in modules...
make[4]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules'
make[5]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules'
Making static dynamic in rlm_acct_unique...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_acct_unique'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_acct_unique'
Making static dynamic in rlm_always...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_always'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_always'
Making static dynamic in rlm_attr_filter...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_filter'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_filter'
Making static dynamic in rlm_attr_rewrite...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_rewrite'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_rewrite'
Making static dynamic in rlm_chap...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_chap'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_chap'
Making static dynamic in rlm_counter...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_counter'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_counter'
Making static dynamic in rlm_dbm...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_dbm'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_dbm'

Re: error in compilation (make)

2004-11-12 Thread Kostas Kalevras
On Thu, 11 Nov 2004, Eva Kolega wrote:
Paul ,
I enclose the whole make report. The problem starts where the lines are in 
bold format. To be precise, I have installed 
mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz with nothing else. I 
mean no mysql client, no devel, no share.  But I guess this is the full mysql 
installation. I mean we run mysql on a number of machines for various 
services. We have not faced any problems yet.  The ps command output follows:

  root  2159 20585  0 16:16:07 pts/10:00 grep mysql
  root 26783 1  0Oct 11 ?0:00 /bin/sh 
/usr/local/mysql/bin/mysqld_safe --user=mysql
  mysql 26800 26783  0   Oct 11 ?8:20 /usr/local/mysql/bin/mysqld 
--defaults-extra-file=/usr/local/mysql/data/my.cnf

And this is the configure command for freeradius:
./configure --prefix=/usr/local/freeradius 
--exec-prefix=/usr/local/freeradius 
--with-mysql-include-dir=/usr/local/mysql/include 
with-openldap-include-dir=/usr/local/openldap

Every time I do a google search I find answers consearning freeradius 
installation on  Linux !! Well, I am using Sol 9.
The mysql package probably does not contain the mysql includes and dynamic 
libraries. You need to also install the devel package in order to get rlm_mysql 
compiled.

Thanks in advance,
Eva Kolega
NOC - TEI of ATHENS
Paul Hampson wrote:
On Tue, Nov 09, 2004 at 05:49:56PM +0200, Eva Kolega at NTUA wrote:
I have installed mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz, 
Apache2, php4.3.9 and openldap.
The problem is when I try to run make, though configure run ok,


gcc: sql_mysql.c: linker input file unused because linking not done
Can we have the lines above this? At this point whatever the problem is
has already occurred and so we get the error messages below.

/usr/local/src/freeradius-1.0.1/libtool --mode=link ld -module -static  -g 
-O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall 
-D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef 
-I../.. -I../../../../include -I/usr/local/mysql/include -Xa -xstrconst 
-mt -D_FORTEC_ -xarch=v9  sql_mysql.o -o rlm_sql_mysql.a
mkdir .libs
(cd .  ln -s sql_mysql.lo sql_mysql.o)
ar cru rlm_sql_mysql.a sql_mysql.o  ar: cannot open sql_mysql.o
  No such file or directory
ar: sql_mysql.o not found
make[10]: *** [rlm_sql_mysql.a] Error 1


make[1]: Entering directory `/usr/local/src/freeradius-1.0.1'
Making all in src...
make[2]: Entering directory `/usr/local/src/freeradius-1.0.1/src'
make[3]: Entering directory `/usr/local/src/freeradius-1.0.1/src'
Making all in include...
make[4]: Entering directory `/usr/local/src/freeradius-1.0.1/src/include'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/include'
Making all in lib...
make[4]: Entering directory `/usr/local/src/freeradius-1.0.1/src/lib'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/lib'
Making all in modules...
make[4]: Entering directory `/usr/local/src/freeradius-1.0.1/src/modules'
make[5]: Entering directory `/usr/local/src/freeradius-1.0.1/src/modules'
Making static dynamic in rlm_acct_unique...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_acct_unique'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_acct_unique'
Making static dynamic in rlm_always...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_always'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_always'
Making static dynamic in rlm_attr_filter...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_filter'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_filter'
Making static dynamic in rlm_attr_rewrite...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_rewrite'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_attr_rewrite'
Making static dynamic in rlm_chap...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_chap'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_chap'
Making static dynamic in rlm_counter...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_counter'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_counter'
Making static dynamic in rlm_dbm...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_dbm'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_dbm'
Making static dynamic in rlm_detail...
make[6]: Entering directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_detail'
make[6]: Leaving directory 
`/usr/local/src/freeradius-1.0.1/src/modules/rlm_detail'
Making 

Re: error in compilation (make)

2004-11-11 Thread Paul Hampson
On Thu, Nov 11, 2004 at 04:46:25PM +0200, Eva Kolega wrote:
 Paul ,

Please do not off-list email me without asking first. My personal email
archives are not available on the web (as far as I know) so any answer I
give privately would have much less value than if I answer on-list.

 I enclose the whole make report. The problem starts where the lines 
 are in bold format. To be precise, I have installed 
 mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz with nothing 
 else. I mean no mysql client, no devel, no share.  But I guess this is 
 the full mysql installation. I mean we run mysql on a number of machines 
 for various services. We have not faced any problems yet.  The ps 
 command output follows:

 ./configure --prefix=/usr/local/freeradius 
 --exec-prefix=/usr/local/freeradius 
 --with-mysql-include-dir=/usr/local/mysql/include 
 with-openldap-include-dir=/usr/local/openldap

 Every time I do a google search I find answers consearning freeradius 
 installation on  Linux !! Well, I am using Sol 9.

That's because you've picked the last problem, not the first:

 Making static dynamic in rlm_eap...
 make[6]: Entering directory 
 `/usr/local/src/freeradius-1.0.1/src/modules/rlm_eap'
 /usr/local/src/freeradius-1.0.1/libtool --mode=link ld \
 -module -static  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
 -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith 
 -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes 
 -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W 
 -Wredundant-decls -Wundef  -I../../include  -I./libeap 
 types/rlm_eap_leap/rlm_eap_leap.a types/rlm_eap_md5/rlm_eap_md5.a 
 rlm_eap.o eap.o mem.o state.o -o rlm_eap.a
 ar cru rlm_eap.a rlm_eap.o eap.o mem.o state.o 
 types/rlm_eap_leap/rlm_eap_leap.a types/rlm_eap_md5/rlm_eap_md5.a 
 types/rlm_eap_leap/rlm_eap_leap.a types/rlm_eap_md5/rlm_eap_md5.a   
 types/rlm_eap_leap/rlm_eap_leap.a types/rlm_eap_md5/rlm_eap_md5.a
 ar: types/rlm_eap_leap/rlm_eap_leap.a is in archive format - embedded 
 archives are not allowed
 ar: types/rlm_eap_md5/rlm_eap_md5.a is in archive format - embedded 
 archives are not allowed
 ar: types/rlm_eap_leap/rlm_eap_leap.a is in archive format - embedded 
 archives are not allowed
 ar: types/rlm_eap_md5/rlm_eap_md5.a is in archive format - embedded 
 archives are not allowed
 ar: types/rlm_eap_leap/rlm_eap_leap.a is in archive format - embedded 
 archives are not allowed
 ar: types/rlm_eap_md5/rlm_eap_md5.a is in archive format - embedded 
 archives are not allowed
 ranlib rlm_eap.a

This batch of errors suggests to me that the toolchain you're using is
not up to the task. I don't think we support non-Gnu toolchains, and in
this case the dynamic linker doesn't appear to support whatever it is we
(or libtool ) are trying to do.

Also, this is a recompile, so there may have been previous errors which
are not showing up in the pre-libtool stage. You might need to 'make
clean' and start again from './configure ...' before posting any more
build output, assuming using a Gnu toolchain doesn't solve the problem.

-- 
Paul TBBle Hampson, on an alternate email client.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


error in compilation (make)

2004-11-09 Thread Eva Kolega at NTUA




Hello everybody.
I have installed mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz,
Apache2, php4.3.9 and openldap.
The problem is when I try to run make, though configure run ok, 

( ./configure --prefix=/usr/local/freeradius --exec-prefix=/usr/local/freeradius
--with-mysql-include-dir=/usr/local/mysql/include  with-openldap-include-dir=/usr/local/openldap
)

I get the following errors. I think it is all about mysql. The pltaform
is Sol 9.
Does anybody have any idea? I have stuck the whole day here.

Thanks a lot.

Eva Kolega 


gcc: sql_mysql.c: linker input file unused because linking not done
/usr/local/src/freeradius-1.0.1/libtool --mode=link ld -module -static -g
-O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE
-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls
-Wundef -I../.. -I../../../../include -I/usr/local/mysql/include -Xa -xstrconst
-mt -D_FORTEC_ -xarch=v9 sql_mysql.o -o rlm_sql_mysql.a
mkdir .libs
(cd .  ln -s sql_mysql.lo sql_mysql.o)
ar cru rlm_sql_mysql.a sql_mysql.o 
ar: cannot open sql_mysql.o
 No such file or directory
ar: sql_mysql.o not found
make[10]: *** [rlm_sql_mysql.a] Error 1
make[10]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/modules/rlm_sql/drivers/rlm_sql_mysql'
make[9]: *** [common] Error 1
make[9]: Leaving directory `/usr/local/src/freeradius-1.0.1/src/modules/rlm_sql/drivers'
make[8]: *** [static] Error 2





Re: error in compilation (make)

2004-11-09 Thread Paul Hampson
On Tue, Nov 09, 2004 at 05:49:56PM +0200, Eva Kolega at NTUA wrote:
 I have installed 
 mysql-standard-4.0.21-sun-solaris2.9-sparc-64bit.tar.gz, Apache2, 
 php4.3.9 and openldap.
 The problem is when I try to run make, though configure run ok,

 gcc: sql_mysql.c: linker input file unused because linking not done

Can we have the lines above this? At this point whatever the problem is
has already occurred and so we get the error messages below.

 /usr/local/src/freeradius-1.0.1/libtool --mode=link ld -module -static  
 -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall 
 -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align 
 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
 -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef  
 -I../.. -I../../../../include -I/usr/local/mysql/include -Xa -xstrconst 
 -mt -D_FORTEC_ -xarch=v9  sql_mysql.o -o rlm_sql_mysql.a
 mkdir .libs
 (cd .  ln -s sql_mysql.lo sql_mysql.o)
 ar cru rlm_sql_mysql.a sql_mysql.o  
 ar: cannot open sql_mysql.o
No such file or directory
 ar: sql_mysql.o not found
 make[10]: *** [rlm_sql_mysql.a] Error 1

-- 
Paul TBBle Hampson, on an alternate email client.

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html