Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Feb 2012 23:59:42 -0600 (CST)
From:      Tony Morlan <tony@scroner.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164785: [patch] devel/bglibs: linking with libbg causes time(3) to fail
Message-ID:  <201202050559.q155xg1V089924@krusty.scroner.com>
Resent-Message-ID: <201202050600.q1560LaP069504@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 05 06:00:21 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Tony Morlan
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD hoover.servadmin.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
	
>Description:
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.
>How-To-Repeat:
make
>Fix:

--- 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
 
 post-patch:
-	${REINPLACE_CMD} '/main/s/void/int/' ${WRKSRC}/sys/try*.c
+	${REINPLACE_CMD} '/main/s/^void/int/' ${WRKSRC}/sys/try*.c
 
 do-configure:
 	${ECHO_CMD} "${CC} ${CFLAGS}"	> ${WRKSRC}/conf-cc
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202050559.q155xg1V089924>