Compilation errors in 1.0.4
I fixed the shown error but got the following. I set CPPFLAGS in my configure script as follows -- CPPFLAGS="-I/usr/local/include -I/usr/local/pgsql/include" LDFLAGS="-L/usr/local/lib -L/usr/local/pgsql/lib" ./configure --prefix=/usr/local/freeradius --with-raddbdir=/usr/local/freeradius/etc --with-logdir=/var/log/radius --with-radacctdir=/var/log/radacct --without-rlm-krb5 --without-rlm-sql-mysql --without-rlm-sql-oracle --with-iodbc-lib-dir=/usr/local/lib --without-rlm-sql-unixodbc --with-rlm-counter-include-dir=/usr/local/include 2>&1 > sci-freeradius.log -- But it don't help to solve it. -- gcc -g -O2 -pthread -D_THREAD_SAFE -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c rlm_counter.c -o rlm_counter.o rlm_counter.c:38: gdbm.h: No such file or directory gmake[5]: *** [rlm_counter.o] Error 1 gmake[5]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src/modules/rlm_counter' gmake[4]: *** [common] Error 2 gmake[4]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src/modules' gmake[3]: *** [all] Error 2 gmake[3]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src/modules' gmake[2]: *** [common] Error 2 gmake[2]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src' gmake[1]: *** [all] Error 2 gmake[1]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src' gmake: *** [common] Error 2 *** Error code 2 Stop in /usr/home/olmi/com/freeradius-1.0.4 -- Respectively, Oleg Golovanov Krasnoyarsk city Russia
Oleg M. Golovanov wrote:
gcc -g -O2 -pthread -D_THREAD_SAFE -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -I../../include -c rlm_counter.c -o rlm_counter.o rlm_counter.c:38: gdbm.h: No such file or directory
It looks like the compiler didn't find the libgdbm headers on your system. Did you install these headers? Depending on the distribution, you need to install a package named gdbm-devel, libgdbm-dev, or something like that. -- Nicolas Baradakis
participants (2)
-
Nicolas Baradakis -
Oleg M. Golovanov