You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to compile your module, but since I'm not a C programer I'm probably doing somthing wrong.
I've done this to complie your src code:
# autoconf
# ./configure
# mkdir build
# cd build
# cmake ..
# make
After doing this, i had all kind of problems with headers. I downloaded the freeradius src code, and include all the headers in /usr/include/freeradius
I had to change the code in some headers because they were pointing to #include <freeradius-develop/.h> so I change to <freeradius/.h>
After doing all of this, I started to have some errors in the compilation:
`[root@truss construccion]# make
[100%] Building C object CMakeFiles/rlm_mongodb.dir/rlm_mongodb.c.o
In file included from /usr/include/freeradius/connection.h:30:0,
from /usr/include/freeradius/radiusd.h:34,
from /usr/freeradius-mongodb/rlm_mongodb.c:1:
/usr/include/freeradius/stats.h:84:26: error: unknown type name ‘REQUEST’
void request_stats_final(REQUEST *request);
^
/usr/include/freeradius/stats.h:85:26: error: unknown type name ‘REQUEST’
void request_stats_reply(REQUEST *request);
^
In file included from /usr/include/freeradius/radiusd.h:34:0,
from /usr/freeradius-mongodb/rlm_mongodb.c:1:
/usr/include/freeradius/connection.h:156:62: error: unknown type name ‘REQUEST’
int fr_connection_pool_reconnect(fr_connection_pool_t *pool, REQUEST *request);
^
/usr/include/freeradius/connection.h:163:53: error: unknown type name ‘REQUEST’
void *fr_connection_get(fr_connection_pool_t *pool, REQUEST *request);
^
/usr/include/freeradius/connection.h:165:56: error: unknown type name ‘REQUEST’
void fr_connection_release(fr_connection_pool_t *pool, REQUEST *request, void *conn);
^
/usr/include/freeradius/connection.h:167:59: error: unknown type name ‘REQUEST’
void *fr_connection_reconnect(fr_connection_pool_t *pool, REQUEST *request, void *conn);
^
/usr/include/freeradius/connection.h:169:53: error: unknown type name ‘REQUEST’
int fr_connection_close(fr_connection_pool_t *pool, REQUEST *request, void *conn);
^
In file included from /usr/freeradius-mongodb/rlm_mongodb.c:1:0:
/usr/include/freeradius/radiusd.h:58:30: fatal error: freeradius/tls.h: No such file or directory
# include <freeradius/tls.h>
^
compilation terminated.
make[2]: *** [CMakeFiles/rlm_mongodb.dir/rlm_mongodb.c.o] Error 1
make[1]: *** [CMakeFiles/rlm_mongodb.dir/all] Error 2
make: *** [all] Error 2
`
Can you help me with this?
Kindly regards,
Rodrigo
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to compile your module, but since I'm not a C programer I'm probably doing somthing wrong.
I've done this to complie your src code:
After doing this, i had all kind of problems with headers. I downloaded the freeradius src code, and include all the headers in /usr/include/freeradius
I had to change the code in some headers because they were pointing to #include <freeradius-develop/.h> so I change to <freeradius/.h>
After doing all of this, I started to have some errors in the compilation:
Can you help me with this?
Kindly regards,
Rodrigo
The text was updated successfully, but these errors were encountered: