Compilling error

Черкендов Александр Армаисович CherkendovAA at yug.so-ups.ru
Fri Jan 11 14:11:33 CET 2013


Cann’t compile for CYGWIN version 2.2.1 & 2.2.0(stable) 
gcc -I/cygdrive/d/fr/freeradius-server-2.2.1 -I/cygdrive/d/fr/freeradius-server-2.2.1/src -g -O2 -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -I/cygdrive/d/fr/freeradius-server-2.2.1/libltdl -I/cygdrive/d/fr/freeradius-server-2.2.1/src -I/cygdrive/d/fr/freeradius-server-2.2.1/libltdl    radeapclient.c   -o radeapclient
radeapclient.c:40:23: фатальная ошибка: eap_types.h: No such file or directory
Компиляция прервана.
<builtin>: recipe for target `radeapclient' failed
make[6]: *** [radeapclient] Error 1

File eap_types.h is situated in  src/modules/rlm_eap/lib_eap dir. If I launch gcc -I lib_eap, I get:
...
/tmp/ccD7XqGk.o: In function `debug_packet':
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:182: undefined reference to `_fr_packet_codes'
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:195: undefined reference to `_vp_prints'
/tmp/ccD7XqGk.o: In function `send_packet':
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:212: undefined reference to `_rad_send'
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:268: undefined reference to `_rad_verify'
/tmp/ccD7XqGk.o: In function `process_eap_challenge':
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:502: undefined reference to `_pairfind'
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:503: undefined reference to `_pairfind'
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:521: undefined reference to `_pairfind'
/cygdrive/d/fr/freeradius-server-2.2.1/src/modules/rlm_eap/radeapclient.c:522: undefined reference to `_pairfind'
...
As I found_pairfind is defined in xlat.c. 
How can I compile it?


More information about the Freeradius-Users mailing list