Date: Fri, 12 Oct 2007 10:02:15 +0200 (CEST) From: Johan van Selst <johans@stack.nl> To: FreeBSD-gnats-submit@FreeBSD.org Cc: martin@libchipcard.de Subject: ports/117131: [patch] devel/libchipcard: fix compile with gcc 4.2 Message-ID: <200710120802.l9C82Fo2016873@roadrunner.gletsjer.net> Resent-Message-ID: <200710120830.l9C8U3tp088136@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710120802.l9C82Fo2016873>