ports/140074: www/oops does not compile
Dmitry Afanasiev
KOT at MATPOCKuH.Ru
Thu Oct 29 10:10:01 UTC 2009
>Number: 140074
>Category: ports
>Synopsis: www/oops does not compile
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 29 10:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Afanasiev
>Release: FreeBSD 9.0-CURRENT sparc64
>Organization:
>Environment:
FreeBSD sunrise-new 9.0-CURRENT FreeBSD 9.0-CURRENT #7: Wed Oct 7 16:44:38 MSD 2009 root at sunrise-new:/usr/obj/usr/src/sys/sunrise sparc64
>Description:
# cd /usr/ports/www/oops && make
[skipped]
cd modules; make
cc -O2 -pipe -fno-strict-aliasing -fPIC -D_REENTRANT -DFREEBSD -D_THREAD_SAFE -DFD_SETSIZE=2048 -I. -DWITH_LARGE_FILES -I/usr/local/include/db4 -export-dynamic -DHAVE_CONFIG_H -I/usr/local/include/db4 -shared -c log_dummy.c
ld -shared -o log_dummy.so log_dummy.o -pthread -lfl -lfl -lpam -lcrypt -L/usr/local/lib -ldb4
ld: unrecognized option '-pthread'
ld: use the --help option for usage information
*** Error code 1
Stop in /var/ports/usr/ports/www/oops/work/oops-1.5.24/src/modules.
*** Error code 1
Stop in /var/ports/usr/ports/www/oops/work/oops-1.5.24/src.
*** Error code 1
Stop in /var/ports/usr/ports/www/oops/work/oops-1.5.24.
*** Error code 1
Stop in /usr/ports/www/oops.
*** Error code 1
Stop in /usr/ports/www/oops.
*** Error code 1
Stop in /usr/ports/www/oops.
>How-To-Repeat:
cd /usr/ports/www/oops && make
>Fix:
I'm not sure of the correctness of the patch, but with this patch www/oops builds successfully:
--- Mk.orig/bsd.port.mk 2009-10-29 12:56:49.575342495 +0300
+++ Mk/bsd.port.mk 2009-10-29 12:57:06.901943794 +0300
@@ -2220,7 +2220,7 @@
.endif
PTHREAD_CFLAGS?=
-PTHREAD_LIBS?= -pthread
+PTHREAD_LIBS?= -lpthread
.if exists(/usr/bin/fetch)
FETCH_BINARY?= /usr/bin/fetch
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list