Installation failure during make and general confusion
Mathieu Devos
mathieu.devos at intopalo.com
Wed Jul 19 12:31:20 CEST 2017
Hello,
Recently started as a part time system admin at this work, and in an
effort to upgrade our systems we're looking at installing a RADIUS
server. We only have 1 office, with around 50 employees, who all have
the same access rights (just plain Internet access). As such the idea
is to set up a very straightforward authentication RADIUS server, no
need for accounting yet.
My eye spotted freeradius, and I've started working with it.
Throughout the Internet I found a mixed bag of tutorials (quite
confusing tbh) who mostly all suggest to run apt-get install
freeradius and just work with that. Now I've tried that but ran into
issues when moving towards TTLS (maybe another email will follow once
I have set that up).
I also found the git repo, and have cloned this (I'm on the v4
branch), however, the ./configure runs properly fine.
I have attempted to run the ./configure as both normal user, and as
root, both with the same output (they complete).
However running the make is where issues arise. I'm not getting very
far in this entire endeavor.
CC src/protocols/dhcpv4/packet.c
In file included from src/protocols/dhcpv4/packet.c:31:0:
src/freeradius-devel/dhcpv4/dhcpv4.h:138:1: error: unknown type name
‘RADIUS_PACKET’
RADIUS_PACKET *fr_dhcpv4_udp_packet_recv(int sockfd);
^
src/freeradius-devel/dhcpv4/dhcpv4.h:139:31: error: unknown type name
‘RADIUS_PACKET’
int fr_dhcpv4_udp_packet_send(RADIUS_PACKET *packet);
^
src/freeradius-devel/dhcpv4/dhcpv4.h:146:1: error: unknown type name
‘RADIUS_PACKET’
RADIUS_PACKET *fr_dhcpv4_packet_ok(uint8_t const *data, ssize_t
data_len, fr_ipaddr_t src_ipaddr,
^
src/freeradius-devel/dhcpv4/dhcpv4.h:169:30: error: unknown type name
‘RADIUS_PACKET’
int fr_dhcpv4_packet_decode(RADIUS_PACKET *packet);
^
src/freeradius-devel/dhcpv4/dhcpv4.h:171:30: error: unknown type name
‘RADIUS_PACKET’
int fr_dhcpv4_packet_encode(RADIUS_PACKET *packet);
^
In file included from src/protocols/dhcpv4/packet.c:31:0:
src/freeradius-devel/dhcpv4/dhcpv4.h:180:70: error: unknown type name
‘RADIUS_PACKET’
int fr_dhcpv4_raw_packet_send(int sockfd, struct sockaddr_ll *p_ll,
RADIUS_PACKET *packet);
^
src/freeradius-devel/dhcpv4/dhcpv4.h:182:1: error: unknown type name
‘RADIUS_PACKET’
RADIUS_PACKET *fr_dhcv4_raw_packet_recv(int sockfd, struct
sockaddr_ll *p_ll, RADIUS_PACKET *request);
^
src/freeradius-devel/dhcpv4/dhcpv4.h:182:79: error: unknown type name
‘RADIUS_PACKET’
RADIUS_PACKET *fr_dhcv4_raw_packet_recv(int sockfd, struct
sockaddr_ll *p_ll, RADIUS_PACKET *request);
^
src/protocols/dhcpv4/packet.c:101:29: error: unknown type name ‘RADIUS_PACKET’
int fr_dhcpv4_packet_decode(RADIUS_PACKET *packet)
^
src/protocols/dhcpv4/packet.c:295:29: error: unknown type name ‘RADIUS_PACKET’
int fr_dhcpv4_packet_encode(RADIUS_PACKET *packet)
^
scripts/boiler.mk:635: recipe for target
'/home/vagrant/freeradius-server/build/objs/src/protocols/dhcpv4/packet.lo'
failed
make: *** [/home/vagrant/freeradius-server/build/objs/src/protocols/dhcpv4/packet.lo]
Error 1
this is the output I'm getting from make.
As such my questions are the following:
1) how to fix this issue?
2) should I just ignore the entire git repo and straightforward run
apt-get install freeradius
BR,
Mathieu
More information about the Freeradius-Users
mailing list