Your message dated Sun, 6 Feb 2005 11:23:47 +0000 with message-id <[EMAIL PROTECTED]> has caused the Debian Bug report #287442, regarding libpri: FTBFS (amd64/gcc-4.0): pointer targets in initialization differ in signedness to be marked as having been forwarded to the upstream software author(s) [EMAIL PROTECTED]
(NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) --------------------------------------- Received: (at 287442-forwarded) by bugs.debian.org; 6 Feb 2005 11:23:49 +0000 >From [EMAIL PROTECTED] Sun Feb 06 03:23:49 2005 Return-path: <[EMAIL PROTECTED]> Received: from anchor-post-36.mail.demon.net [194.217.242.86] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CxkW4-0001vc-00; Sun, 06 Feb 2005 03:23:48 -0800 Received: from markpurcell.demon.co.uk ([158.152.3.103] helo=debian) by anchor-post-36.mail.demon.net with esmtp (Exim 4.42) id 1CxkVz-000CTn-Jr; Sun, 06 Feb 2005 11:23:46 +0000 Received: from msp by debian with local (Exim 3.36 #1 (Debian)) id 1CxkW4-0008AM-00; Sun, 06 Feb 2005 11:23:48 +0000 Date: Sun, 6 Feb 2005 11:23:47 +0000 From: Mark Purcell <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: [EMAIL PROTECTED]: Bug#287442: libpri: FTBFS (amd64/gcc-4.0): pointer targets in initialization differ in signedness] Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i Sender: Mark Purcell <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, HAS_PACKAGE autolearn=ham version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Mark, Find enclosed a patch to build libpri on the amd64 architecture you might like to encorporate upstream. I have applied to the Debian GNU/Linux packaged version of libpri, availbale at http://packages.debian.org/libpri1. Also could I ask you to maintain the Cc: on any further correspondance on this issue to maintain the reporting history for this issue. Thanks, Mark ----- Forwarded message from Andreas Jochens <[EMAIL PROTECTED]> ----- Envelope-to: [EMAIL PROTECTED] Subject: Bug#287442: libpri: FTBFS (amd64/gcc-4.0): pointer targets in init= ialization differ in signedness Reply-To: Andreas Jochens <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Resent-From: Andreas Jochens <[EMAIL PROTECTED]> Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Mark Purcell <[EMAIL PROTECTED]> Resent-Date: Mon, 27 Dec 2004 18:48:11 UTC Resent-Message-ID: <[EMAIL PROTECTED]> X-Debian-PR-Message: report 287442 X-Debian-PR-Package: libpri X-Debian-PR-Keywords: patch To: Debian Bug Tracking System <[EMAIL PROTECTED]> =46rom: Andreas Jochens <[EMAIL PROTECTED]> X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25=20 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=3D-8.0 required=3D4.0 tests=3DBAYES_00,HAS_PACKAGE= =20 autolearn=3Dno version=3D2.60-bugs.debian.org_2004_03_25 X-Spam-Level:=20 Resent-Sender: Debian BTS <[EMAIL PROTECTED]> Package: libpri Severity: normal Tags: patch When building 'libpri' on amd64 with gcc-4.0, I get the following error: q931.c:1402: warning: pointer targets in initialization differ in signedness q931.c:1403: warning: pointer targets in initialization differ in signedness q931.c:1404: warning: pointer targets in initialization differ in signedness q931.c:1405: warning: pointer targets in initialization differ in signedness q931.c:1406: warning: pointer targets in initialization differ in signedness q931.c:1407: warning: pointer targets in initialization differ in signedness q931.c:1408: warning: pointer targets in initialization differ in signedness q931.c:1409: warning: pointer targets in initialization differ in signedness q931.c: In function 'msg2str': q931.c:1560: warning: pointer targets in return differ in signedness q931.c: In function 'disc2str': q931.c:1753: warning: pointer targets in initialization differ in signedness q931.c:1754: warning: pointer targets in initialization differ in signedness q931.c:1755: warning: pointer targets in initialization differ in signedness q931.c:1756: warning: pointer targets in initialization differ in signedness q931.c: In function 'send_message': q931.c:1872: warning: pointer targets in passing argument 3 of 'init_header= ' differ in signedness make[1]: *** [q931.o] Error 1 make[1]: Leaving directory `/libpri-1.0.2' make: *** [build-stamp] Error 2 With the attached patch 'libpri' can be compiled on amd64 using gcc-4.0. Regards Andreas Jochens diff -urN ../tmp-orig/libpri-1.0.2/q931.c ./q931.c --- ../tmp-orig/libpri-1.0.2/q931.c 2004-10-05 04:19:11.000000000 +0200 +++ ./q931.c 2004-12-27 19:41:15.697544000 +0100 @@ -36,7 +36,7 @@ =20 struct msgtype { int msgnum; - unsigned char *name; + char *name; int mandies[MAX_MAND_IES]; }; =20 @@ -775,7 +775,7 @@ =20 static FUNC_DUMP(dump_called_party_number) { - char cnum[256]; + unsigned char cnum[256]; =20 q931_get_number(cnum, sizeof(cnum), ie->data + 1, len - 3); pri_message("%c Called Number (len=3D%2d) [ Ext: %d TON: %s (%d) NPI: %= s (%d) '%s' ]\n", @@ -784,7 +784,7 @@ =20 static FUNC_DUMP(dump_called_party_subaddr) { - char cnum[256]; + unsigned char cnum[256]; q931_get_number(cnum, sizeof(cnum), ie->data + 1, len - 3); pri_message("%c Called Sub-Address (len=3D%2d) [ Ext: %d Type: %s (%d) O= : %d '%s' ]\n", prefix, len, ie->data[0] >> 7, @@ -794,7 +794,7 @@ =20 static FUNC_DUMP(dump_calling_party_number) { - char cnum[256]; + unsigned char cnum[256]; if (ie->data[0] & 0x80) q931_get_number(cnum, sizeof(cnum), ie->data + 1, len - 3); else @@ -808,7 +808,7 @@ =20 static FUNC_DUMP(dump_calling_party_subaddr) { - char cnum[256]; + unsigned char cnum[256]; q931_get_number(cnum, sizeof(cnum), ie->data + 2, len - 4); pri_message("%c Calling Sub-Address (len=3D%2d) [ Ext: %d Type: %s (%d) = O: %d '%s' ]\n", prefix, len, ie->data[0] >> 7, @@ -818,7 +818,7 @@ =20 static FUNC_DUMP(dump_redirecting_number) { - char cnum[256]; + unsigned char cnum[256]; int i =3D 0; /* To follow Q.931 (4.5.1), we must search for start of octet 4 by walking through all bytes until one with ext bit (8) set to 1 */ @@ -845,7 +845,7 @@ =20 static FUNC_DUMP(dump_connected_number) { - char cnum[256]; + unsigned char cnum[256]; int i =3D 0; /* To follow Q.931 (4.5.1), we must search for start of octet 4 by walking through all bytes until one with ext bit (8) set to 1 */ @@ -887,14 +887,14 @@ } } while(!(ie->data[i++] & 0x80)); - q931_get_number(call->redirectingnum, sizeof(call->redirectingnum), ie->d= ata + i, ie->len - i); + q931_get_number((unsigned char*)call->redirectingnum, sizeof(call->redire= ctingnum), ie->data + i, ie->len - i); return 0; } =20 =20 static FUNC_DUMP(dump_redirecting_subaddr) { - char cnum[256]; + unsigned char cnum[256]; q931_get_number(cnum, sizeof(cnum), ie->data + 2, len - 4); pri_message("%c Redirecting Sub-Address (len=3D%2d) [ Ext: %d Type: %s (= %d) O: %d '%s' ]\n", prefix, len, ie->data[0] >> 7, @@ -905,14 +905,14 @@ static FUNC_RECV(receive_calling_party_subaddr) { /* copy digits to call->callingsubaddr */ - q931_get_number(call->callingsubaddr, sizeof(call->callingsubaddr), ie->= data + 2, len - 4); + q931_get_number((unsigned char*)call->callingsubaddr, sizeof(call->calli= ngsubaddr), ie->data + 2, len - 4); return 0; } =20 static FUNC_RECV(receive_called_party_number) { /* copy digits to call->callednum */ - q931_get_number(call->callednum, sizeof(call->callednum), ie->data + 1, = len - 3); + q931_get_number((unsigned char*)call->callednum, sizeof(call->callednum)= , ie->data + 1, len - 3); call->calledplan =3D ie->data[0] & 0x7f; return 0; } @@ -933,11 +933,11 @@ extbit =3D (ie->data[0] >> 7) & 0x01; =20 if (extbit) { - q931_get_number(call->callernum, sizeof(call->callernum), ie->data + 1,= len - 3); + q931_get_number((unsigned char*)call->callernum, sizeof(call->callernum= ), ie->data + 1, len - 3); call->callerpres =3D 0; /* PI presentation allowed SI user-provided, not screened */ =20 } else { - q931_get_number(call->callernum, sizeof(call->callernum), ie->data + 2,= len - 4); + q931_get_number((unsigned char*)call->callernum, sizeof(call->callernum= ), ie->data + 2, len - 4); call->callerpres =3D ie->data[1] & 0x7f; } return 0; @@ -966,7 +966,7 @@ { =20 call->useruserprotocoldisc =3D ie->data[0] & 0xff; if (call->useruserprotocoldisc =3D=3D 4) /* IA5 */ - q931_get_number(call->useruserinfo, sizeof(call->useruserinfo), = ie->data + 1, len - 3); + q931_get_number((unsigned char*)call->useruserinfo, sizeof(call-= >useruserinfo), ie->data + 1, len - 3); return 0; } =20 @@ -1030,7 +1030,7 @@ data++; len--; } - q931_get_number(call->callername, sizeof(call->callername), data, len - 2= ); + q931_get_number((unsigned char*)call->callername, sizeof(call->callername= ), data, len - 2); return 0; } =20 @@ -1064,7 +1064,7 @@ return 0; } if (ie->data[13] + 14 =3D=3D ie->len) { - q931_get_number(call->callername, sizeof(call->callername) - 1, ie->data= + 14, ie->len - 14); + q931_get_number((unsigned char*)call->callername, sizeof(call->callernam= e) - 1, ie->data + 14, ie->len - 14); }=20 return 0; } @@ -1859,7 +1859,7 @@ =20 static int send_message(struct pri *pri, q931_call *c, int msgtype, int ie= s[]) { - unsigned char buf[1024]; + char buf[1024]; q931_h *h; q931_mh *mh; int len; ----- End forwarded message ----- --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCBf5DoCzanz0IthIRAjjTAJwKoAExsN07t0VaTYuUrTTO4jJ1pwCgieuS rMlXdSN/Zv9cypZJDHfu9+o= =zNeE -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]