Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems at compilation. #2

Open
PuertoArenero opened this issue Jan 27, 2017 · 1 comment
Open

Problems at compilation. #2

PuertoArenero opened this issue Jan 27, 2017 · 1 comment

Comments

@PuertoArenero
Copy link

PuertoArenero commented Jan 27, 2017

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

@PuertoArenero
Copy link
Author

Problem fixed... the procedure I was doing was wrong. I did this:

download the source code

git clone https://github.com/intersvyaz/freeradius-mongodb.git
wget ftp://ftp.freeradius.org/pub/freeradius/old/freeradius-server-3.0.10.tar.gz
mkdir freeradius-server/src/modules/rlm_mongodb
mv freeradius-mongodb/* /freeradius-server/src/modules/rlm_mongodb/
cd freeradius-server
autoconf
./configure
make
make install

and now I can see "./lib/rlm_mongodb.so" I will thell you leater how does it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant