Fantastic - Many thanks!
 
For the purposes of the archive, this is what I did..
 
Edited /usr/src/asterisk/Makefile
Just after:-
ifeq (${OSARCH},Darwin)
LIBS+=-lresolv
endif
ifeq (${OSARCH},FreeBSD)
LIBS+=-lcrypto
endif
LIBS+=-lssl
I added:-
 
ifeq (${OSARCH},OpenBSD)
LIBS=-lcrypto -lpthread
endif
 
And it compiled just fine..
 
Is this something us OpenBSD fans will always have to do - or should I submit this to the -dev list?
 
Michael.

[EMAIL PROTECTED] wrote:

On Fri, Jul 30, 2004 at 06:33:14PM -0700, [EMAIL PROTECTED] wrote:
> Hi,
>
> Has anyone had any success?

....
> sched.o: In function `sched_context_create':
> /usr/src/asterisk/asterisk/include/asterisk/lock.h:299: undefined reference to `pthread_mutexattr_init'
> /usr/src/asterisk/asterisk/include/asterisk/lock.h:300: undefined reference to `pthread_mutexattr_settype'
> /usr/src/asterisk/asterisk/include/asterisk/lock.h:301: undefined reference to `pthread_mutex_init'
> sched.o: In function `sched_context_destroy':
>

Modify the above Makefile (or CFLAGS) to include -pthread for gcc (or possibly,
-lpthread, but I think in general for BSD's its -pthread).

>
> and
>

....
> /usr/lib/libssl.so.8.0: undefined reference to `ERR_load_strings'
> /usr/lib/libssl.so.8.0: undefined reference to `EVP_md2'
> /usr/lib/libssl.so.8.0: undefined reference to `HMAC_CTX_init'
> /usr/lib/libssl.so.8.0: undefined reference to `EVP_get_digestbyname'
> collect2: ld returned 1 exit status
> gmake: *** [asterisk] Error 1
>
>
>

Try adding -lcrypto to the above Makefile entry (and/or CFLAGS) as well.


....

Reply via email to