ports/117131: [patch] devel/libchipcard: fix compile with gcc 4.2

Johan van Selst johans at stack.nl
Fri Oct 12 08:30:04 UTC 2007


>Number:         117131
>Category:       ports
>Synopsis:       [patch] devel/libchipcard: fix compile with gcc 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 12 08:30:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Johan van Selst
>Release:        FreeBSD 7.0-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD roadrunner.gletsjer.net 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Thu Oct 11 13:58:38 CEST 2007 root at roadrunner.gletsjer.net:/usr/obj/usr/src/sys/GENERIC amd64


	
>Description:
	
	libchipcard does not compile on FreeBSD 64-bit machines because
	in a debug statement a pointer gets cast to integer and printed.

>How-To-Repeat:
	
>Fix:

	
	Print pointers with %p

--- src/libchipcard/cards/hbcicard.cpp.orig	2007-10-12 09:54:53.000000000 +0200
+++ src/libchipcard/cards/hbcicard.cpp	2007-10-12 09:53:18.000000000 +0200
@@ -684,8 +684,8 @@
   case k_HBCICARD_TYPE_1:
     return _hash2mac1(hash,mac);
   default:
-    DBG_INFO("LIBCHIPCARD: unknown chip card type (%8x) (%d).",
-	     (unsigned int)this,
+    DBG_INFO("LIBCHIPCARD: unknown chip card type (%p) (%d).",
+	     this,
 	    _type);
     return false;
   }

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



More information about the freebsd-ports-bugs mailing list