[Asterisk-Users] Compiling * on OpenBSD 3.5
mpwspam-digiumlist at yahoo.com
mpwspam-digiumlist at yahoo.com
Sat Jul 31 08:32:07 MST 2004
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.
andrewg at felinemenace.org wrote:
On Fri, Jul 30, 2004 at 06:33:14PM -0700, mpwspam-digiumlist at yahoo.com 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.
....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040731/4b2a6558/attachment.htm
More information about the asterisk-users
mailing list