ports/75349: irc/anope fails to compile with threads support [possible fix]
Axel Gonzalez
loox at e-shell.net
Tue Dec 21 09:10:24 UTC 2004
>Number: 75349
>Category: ports
>Synopsis: irc/anope fails to compile with threads support [possible fix]
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 21 09:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Axel Gonzalez
>Release: 4.10-RELEASE-p2
>Organization:
>Environment:
FreeBSD sophia3.e-shell.net 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0: Tue Aug24 01:15:51 CDT 2004 root at sophia3.e-shell.net:/usr/obj/usr/src/sys/LXKERNEL i386
>Description:
There is a bug in the (anope) configure script that prevents compiling with thread support (maybe other modules too)
Problem is.. when it tries to test compile:
if run $CC $CC_FLAGS -D_THREAD_SAFE tmp/test.c -pthread -o tmp/test ; then
CC_FLAGS="$CC_FLAGS -D_THREAD_SAFE"
CC_LIBS="$CC_LIBS -pthread"
echo2 "-pthread "
it tries to compile an non-existent tmp/test.c, so it fails, and disables thread support
>How-To-Repeat:
cd /usr/ports/irc/anope
make config (configure with threads)
make
>Fix:
This is a temp fix on the Makefile, it would be better to patch the configure script (or fix it :)
--- Makefile.orig Fri Nov 26 05:55:41 2004
+++ Makefile Tue Dec 21 02:51:12 2004
@@ -77,6 +77,8 @@
.endif
.if defined(WITH_THREAD)
@${ECHO_CMD} THREAD=\"USE_THREADS\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} CC_LIBS=\"-pthread\" >> ${CONFIG_CACHE}
+ @${ECHO_CMD} CC_FLAGS=\"-D_THREAD_SAFE\" >> ${CONFIG_CACHE}
.endif
.if defined(WITH_DREAM)
@${ECHO_CMD} IRCTYPE=1 >> ${CONFIG_CACHE}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list