It looks like FreeRadius isn't portable to OpenBSD due to semaphores issue.

There are no (POSIX?) semaphores in OpenBSD, nor /usr/include/semaphore.h.
While pthreads correctly found in libc_r by configure, absence of
semaphore.h, indicated by undefined HAVE_SEMAPHORE_H, is ignored by
uncoditional include <semaphore.h> in src/main/threads.c

OpenBSD has SVID compatible semaphores (/usr/include/sys/sem.h)
semget() etc. Could these be used instead of POSIX?



Other (minor) issue: while libgdbm.a  found in /usr/local/lib by
configure, it is not found when building rlm_dbm (needs adding -L/usr/local/lib
to RLM_LIBS in rlm_dbm/Makefile).



Both of these are confirmed to exist in both 0.4 and 12/26 CVS FreeRadius and
OpenBSD 3.0.


IIRC if I disable threads altogether, resulting radiusd will be unusable,
right?


                                     Andrew P. Kokarev

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to