OK, I have fixed my problem that started this thread below by installing
zlib-devel but now I am getting the following while running 'make'.

Making static dynamic in rlm_x99_token...
gmake[6]: Entering directory
`/tmp/freeradius-1.0.0/src/modules/rlm_x99_token'
gcc  -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall
-D_GNU_SOURCE -DNDEBUG  -I../../include -DX99_MODULE_NAME=\"rlm_x99_token\"
-DFREERADIUS -c x99_rlm.c -o x99_rlm.o
In file included from x99_rlm.c:54:
x99.h:26:42: openssl/des.h: No such file or directory
In file included from x99_rlm.c:54:
x99.h:146: parse error before "des_cblock"
x99.h:146: warning: no semicolon at end of struct or union
x99.h:147: warning: type defaults to `int' in declaration of
`x99_user_info_t'
x99.h:147: warning: data definition has no type or storage class
x99.h:152: parse error before "des_cblock"
x99.h:153: parse error before "des_cblock"
x99.h:165: parse error before "des_cblock"
x99.h:166: warning: type defaults to `int' in declaration of `des_cblock'
x99.h:166: parse error before "keyblock"
x99.h:170: parse error before "x99_user_info_t"
x99.h:180: parse error before "des_cblock"
x99.h:182: warning: type defaults to `int' in declaration of `des_cblock'
x99.h:182: parse error before "keyblock"
x99_rlm.c: In function `x99_token_authorize':
x99_rlm.c:294: parse error before "user_info"
x99_rlm.c:331: `user_info' undeclared (first use in this function)
x99_rlm.c:331: (Each undeclared identifier is reported only once
x99_rlm.c:331: for each function it appears in.)
x99_rlm.c: In function `x99_token_authenticate':
x99_rlm.c:460: parse error before "user_info"
x99_rlm.c:492: `user_info' undeclared (first use in this function)
x99_rlm.c:550: warning: deprecated use of label at end of compound statement
gmake[6]: *** [x99_rlm.o] Error 1
gmake[6]: Leaving directory
`/tmp/freeradius-1.0.0/src/modules/rlm_x99_token'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/tmp/freeradius-1.0.0/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/tmp/freeradius-1.0.0/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/tmp/freeradius-1.0.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/tmp/freeradius-1.0.0/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/tmp/freeradius-1.0.0'
make: *** [all] Error 2

I have made any modifications to the original files from the package so I am
curious as to why I am getting this error now  Any help would be greatly
appreciated.

Troy

-----Original Message-----
From: SPROUSE Troy F 
Sent: Friday, August 20, 2004 1:31 PM
To: '[EMAIL PROTECTED]'
Subject: Compile problem - cannot find -lz

I am having a compile problem on RedHat 9.  I ran configure as ./configure
--includedir=/usr/include/mysql but below is the output after I run make.

gcc -shared  sql_mysql.lo  -L/usr/lib/mysql -lmysqlclient -lz -lcrypt -lnsl
-lm  -Wl,-soname -Wl,rlm_sql_mysql-1.0.0.so -o .libs/rlm_sql_mysql-1.0.0.so
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
gmake[10]: *** [rlm_sql_mysql.la] Error 1
gmake[10]: Leaving directory
`/root/freeradius-1.0.0/src/modules/rlm_sql/drivers/rlm_sql_mysql'
gmake[9]: *** [common] Error 1
gmake[9]: Leaving directory
`/root/freeradius-1.0.0/src/modules/rlm_sql/drivers'
gmake[8]: *** [dynamic] Error 2
gmake[8]: Leaving directory
`/root/freeradius-1.0.0/src/modules/rlm_sql/drivers'
gmake[7]: *** [common] Error 1
gmake[7]: Leaving directory `/root/freeradius-1.0.0/src/modules/rlm_sql'
gmake[6]: *** [dynamic] Error 2
gmake[6]: Leaving directory `/root/freeradius-1.0.0/src/modules/rlm_sql'
gmake[5]: *** [common] Error 1
gmake[5]: Leaving directory `/root/freeradius-1.0.0/src/modules'
gmake[4]: *** [all] Error 2
gmake[4]: Leaving directory `/root/freeradius-1.0.0/src/modules'
gmake[3]: *** [common] Error 1
gmake[3]: Leaving directory `/root/freeradius-1.0.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/root/freeradius-1.0.0/src'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/root/freeradius-1.0.0'
make: *** [all] Error 2

Any help would be appreciated.

Thank you,
Troy

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

Reply via email to