ports/164785: [patch] devel/bglibs: linking with libbg causes time(3) to fail

Tony Morlan tony at scroner.com
Sun Feb 5 06:00:22 UTC 2012

>Number:         164785
>Category:       ports
>Synopsis:       [patch] devel/bglibs: linking with libbg causes time(3) to fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 05 06:00:21 UTC 2012
>Originator:     Tony Morlan
>Release:        FreeBSD 9.0-RELEASE amd64
System: FreeBSD hoover.servadmin.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
The post-patch step intended to fix some "void main()" functions will also change a valid "int main(void)" into "int main(int)". That makes the tryclockgettime test fail, which causes an incompatible clock_gettime to be built into the library.

--- Makefile.old	2012-02-03 18:45:39.840292000 -0600
+++ Makefile	2012-02-03 18:45:43.416990000 -0600
@@ -31,7 +31,7 @@
 MAN1=		cli-generate.1
-	${REINPLACE_CMD} '/main/s/void/int/' ${WRKSRC}/sys/try*.c
+	${REINPLACE_CMD} '/main/s/^void/int/' ${WRKSRC}/sys/try*.c
 	${ECHO_CMD} "${CC} ${CFLAGS}"	> ${WRKSRC}/conf-cc

More information about the freebsd-ports-bugs mailing list