Subject: Re: Sempahore on NetBSD work or no ?
To: Daniel Dias =?unknown-8bit?Q?Gon=E7alves?= <f22@proveritauna.com.br>
From: David Ferlier <david@netbsd-fr.org>
List: current-users
Date: 01/26/2003 11:49:48
I know the whole problem, cause i packaged freeradius. The configure
script lets you compile it, but in fact it shouldn't : you need a little
library called libsem, that you can find at :

ftp://ftp.freeradius.org/ftp/radius/contrib/libsem.tar.gz

I packaged it also, and it went fine. But it seems like it's part of the
FreeBSD tree, so there are extern values that get unresolved.

Well, all that is very simple to hack, since we can now use the pthread
lib of our tree. I'll send you patches for the configure.in :)

David

On Sun, Jan 26, 2003 at 10:39:55AM -0000, Daniel Dias Gonçalves wrote:
> I compiled freeradius 0.8.1 in NetBSD 1.6  but when I go run it 
> the following error:
> 
> # radiusd
> Sun Jan 26 10:22:39 2003 : Info: Starting - reading 
> configuration files ...
> /usr/local/lib/rlm_sql-0.8.1.so: Undefined PLT symbol "sem_init" 
> (reloc type = 7, symnum = 54)
> #
> 
> I tried to install port of libsem it for BSDI (
> ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 ), but the following 
> problem occurs: 
> 
> 
> # make
> cc -O2 -g -I. -c -o uthread_sem.o uthread_sem.c
> In file included from uthread_sem.c:36:
> pthread.h:23: warning: `PTHREAD_RWLOCK_INITIALIZER' redefined
> /usr/include/pthread.h:313: warning: this is the location of the 
> previous definition
> pthread.h:24: warning: `PTHREAD_PROCESS_PRIVATE' redefined
> /usr/include/pthread.h:265: warning: this is the location of the 
> previous definition
> pthread.h:25: warning: `PTHREAD_PROCESS_SHARED' redefined
> /usr/include/pthread.h:266: warning: this is the location of the 
> previous definition
> In file included from uthread_sem.c:36:
> pthread.h:20: conflicting types for `pthread_rwlock_t'
> /usr/include/pthread.h:291: previous declaration of 
> `pthread_rwlock_t'
> pthread.h:21: conflicting types for `pthread_rwlockattr_t'
> /usr/include/pthread.h:290: previous declaration of 
> `pthread_rwlockattr_t'
> pthread.h:28: conflicting types for `pthread_rwlock_destroy'
> /usr/include/pthread.h:410: previous declaration of 
> `pthread_rwlock_destroy'
> pthread.h:30: conflicting types for `pthread_rwlock_init'
> /usr/include/pthread.h:409: previous declaration of 
> `pthread_rwlock_init'
> pthread.h:31: conflicting types for `pthread_rwlock_rdlock'
> /usr/include/pthread.h:411: previous declaration of 
> `pthread_rwlock_rdlock'
> pthread.h:32: conflicting types for `pthread_rwlock_tryrdlock'
> /usr/include/pthread.h:412: previous declaration of 
> `pthread_rwlock_tryrdlock'
> pthread.h:33: conflicting types for `pthread_rwlock_trywrlock'
> /usr/include/pthread.h:414: previous declaration of 
> `pthread_rwlock_trywrlock'
> pthread.h:34: conflicting types for `pthread_rwlock_unlock'
> /usr/include/pthread.h:415: previous declaration of 
> `pthread_rwlock_unlock'
> pthread.h:35: conflicting types for `pthread_rwlock_wrlock'
> /usr/include/pthread.h:413: previous declaration of 
> `pthread_rwlock_wrlock'
> pthread.h:36: conflicting types for `pthread_rwlockattr_init'
> /usr/include/pthread.h:403: previous declaration of 
> `pthread_rwlockattr_init'
> pthread.h:38: conflicting types for 
> `pthread_rwlockattr_getpshared'
> /usr/include/pthread.h:406: previous declaration of 
> `pthread_rwlockattr_getpshared'
> pthread.h:40: conflicting types for 
> `pthread_rwlockattr_setpshared'
> /usr/include/pthread.h:405: previous declaration of 
> `pthread_rwlockattr_setpshared'
> pthread.h:41: conflicting types for `pthread_rwlockattr_destroy'
> /usr/include/pthread.h:404: previous declaration of 
> `pthread_rwlockattr_destroy'
> *** Error code 1
> 
> Stop.
> make: stopped in /root/libsem
> #
> 
> I am using pthread pth-1.4.1nb6 of /usr/pkgsrc/devel/pth
> 
> I ask, the NetBSD I support semaphore? No this in the hour to 
> place one port of freeradius in pkgsrc? 
> Any solution for my problem? 
> 
> 
> --
> Daniel Dias Gon?alves
> f22@netbsd.com.br, f22@proveritauna.com.br
> 

-- 

David Ferlier	- david@netbsd-fr.org     || 
		  dferlier@BonBon.net

www.NetBSD.org	- Of Course It Runs NetBSD