Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Feb 2004 14:29:20 -0500 (EST)
From:      Hendrik Scholz <hendrik@scholz.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ale@FreeBSD.org
Subject:   ports/63183: amd64-fix: net/lmd
Message-ID:  <20040221192920.676A139845@slurmcan.wormulon.net>
Resent-Message-ID: <200402211930.i1LJUMBQ048203@freefall.freebsd.org>

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

>Number:         63183
>Category:       ports
>Synopsis:       amd64-fix: net/lmd
>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:   Sat Feb 21 11:30:22 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Hendrik Scholz
>Release:        FreeBSD 5.2.1-RC amd64
>Organization:
>Environment:
System: FreeBSD slurmcan.wormulon.net 5.2.1-RC FreeBSD 5.2.1-RC #0: Sat Jan 31 12:38:34 GMT 2004 root@ngoc.NUXI.com:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
Fix lmd on amd64:
http://bento.freebsd.org/errorlogs/amd64-5-latest/lmd-0.8.log

Add -fPIC on amd64 and make modules_check/Makefile recognize it.

>How-To-Repeat:
	
>Fix:

	

--- lmd-amd64.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/net/lmd/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	18 Jan 2004 10:50:13 -0000	1.6
+++ Makefile	21 Feb 2004 19:27:28 -0000
@@ -20,8 +20,6 @@
 DOCS=		INSTALL LICENSE README
 PKGMESSAGE=	${WRKDIR}/pkg-message
 
-MAKE_ENV+=	CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\""
-
 post-patch:
 	${REINPLACE_CMD} -i.bak -e 's|varargs.h|stdarg.h|' \
 		${WRKSRC}/chkmodules.h \
@@ -50,4 +48,10 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${ARCH} == "amd64"
+MAKE_ENV+=	CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\" -fPIC"
+.else
+MAKE_ENV+=	CPPFLAGS="-DPREFIX=\\\"${PREFIX}\\\""
+.endif
+.include <bsd.port.post.mk>
Index: files/patch-modules_check::Makefile
===================================================================
RCS file: /home/FreeBSD-CVS/ports/net/lmd/files/patch-modules_check::Makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-modules_check::Makefile
--- files/patch-modules_check::Makefile	16 May 2002 10:25:45 -0000	1.1
+++ files/patch-modules_check::Makefile	21 Feb 2004 19:27:28 -0000
@@ -1,5 +1,5 @@
---- modules_check/Makefile.orig	Mon Nov 26 07:31:09 2001
-+++ modules_check/Makefile	Tue May 14 14:16:16 2002
+--- modules_check/Makefile.orig	Sun Nov 25 17:31:09 2001
++++ modules_check/Makefile	Sat Feb 21 14:25:58 2004
 @@ -1,14 +1,15 @@
  # If you want to debug lmd comment out this line and recompile it
  # Launch lmd with -v option to see debug messages
@@ -16,7 +16,7 @@
  
  socket.o:
 -	gcc -c ../socket.c -o socket.o
-+	${CC} -c ../socket.c -o socket.o
++	${CC} ${OPTS} -c ../socket.c -o socket.o
  
  clean:
  	rm *.so *.o
--- lmd-amd64.diff ends here ---


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



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