ports/84482: Makefile error: linuxthreads does not build on 5.0

Brent B.Powers bbp2006 at columbia.edu
Tue Aug 2 14:00:41 UTC 2005


>Number:         84482
>Category:       ports
>Synopsis:       Makefile error: linuxthreads does not build on 5.0
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 02 14:00:37 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Brent B. Powers
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
Department of Pathology, Columbia University
>Environment:
System: FreeBSD service.pathology.columbia.edu 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 root at hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386



>Description:

Attempting to build /usr/ports/devel/linuxthreads gives:

# make
"Makefile", line 232: warning: String comparison operator should be either == or !=
"Makefile", line 232: Malformed conditional ((defined(NOPROFILE) && ${OSVERSION} < 600007) || (defined(NO_PROFILE) && ${OSVERSION} >= 600007))
"Makefile", line 232: Need an operator
"Makefile", line 234: if-less else
"Makefile", line 234: Need an operator
"Makefile", line 236: if-less endif
"Makefile", line 236: Need an operator
"Makefile", line 237: warning: String comparison operator should be either == or !=
"Makefile", line 237: Malformed conditional ((defined(NOPIC) && ${OSVERSION} < 600007) || (defined(NO_PIC) && ${OSVERSION} >= 600007))
"Makefile", line 237: Need an operator
"Makefile", line 239: if-less else
"Makefile", line 239: Need an operator
"Makefile", line 241: if-less endif
"Makefile", line 241: Need an operator
make: fatal errors encountered -- cannot continue

>How-To-Repeat:
	attempt to build on 5.0

>Fix:

Apply the following patch (Note that the patch only adds some spaces...)



--- Makefile.orig	Mon Jul 25 10:58:02 2005
+++ Makefile	Tue Aug  2 09:38:56 2005
@@ -229,12 +229,12 @@
 
 #	@sh ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 
-.if (defined(NOPROFILE) && ${OSVERSION} < 600007) || (defined(NO_PROFILE) && ${OSVERSION} >= 600007)
+.if (defined(NOPROFILE) && ${OSVERSION} < 600007 ) || (defined(NO_PROFILE) && ${OSVERSION} >= 600007 )
 PLIST_SUB=	PROFILE:="@comment "
 .else
 PLIST_SUB=	PROFILE:=""
 .endif
-.if (defined(NOPIC) && ${OSVERSION} < 600007) || (defined(NO_PIC) && ${OSVERSION} >= 600007)
+.if (defined(NOPIC) && ${OSVERSION} < 600007 ) || (defined(NO_PIC) && ${OSVERSION} >= 600007 )
 PLIST_SUB+=	PIC:="@comment "
 .else
 PLIST_SUB+=	PIC:=""



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list