From owner-freebsd-gnome@FreeBSD.ORG Sun Sep 12 18:46:21 2004 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46EDF16A4CE for ; Sun, 12 Sep 2004 18:46:21 +0000 (GMT) Received: from copernicus.clarkeadvertising.com (uslec-63-243-39-65.cust.uslec.net [63.243.39.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8E5F43D39 for ; Sun, 12 Sep 2004 18:46:20 +0000 (GMT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rrcs-24-172-16-118.midsouth.biz.rr.com [24.172.16.118] (may be forged)) i8CIkFFF084843; Sun, 12 Sep 2004 14:46:15 -0400 (EDT) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) i8CIj07Q064663; Sun, 12 Sep 2004 14:45:00 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Kevin Oberman In-Reply-To: <20040910224445.26B925D04@ptavv.es.net> References: <20040910224445.26B925D04@ptavv.es.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NYsmK0IQgB/70tR96mhx" Organization: MarcusCom, Inc. Message-Id: <1095014744.2740.3.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 12 Sep 2004 14:45:45 -0400 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on copernicus.clarkeadvertising.com cc: FreeBSD GNOME Users Subject: Re: Porting problem on V5 with gettext/libintl X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2004 18:46:21 -0000 --=-NYsmK0IQgB/70tR96mhx Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-09-10 at 18:44, Kevin Oberman wrote: > I am attempting to port the current release of GnomeMeeting to FreeBSD > and especially FreeBSD V5. I am not a C++ programmer and not much of a C > programmer, so I am not surprised that I'm having a problem. >=20 > I have one module that uses gettext and I am getting errors on the > inclusion of the libintl.h header file. >=20 > In file included from main_window.cpp:71: > /usr/local/include/libintl.h:118: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:118: error: expected `)' before "const" > /usr/local/include/libintl.h:118: error: expected init-declarator before = "const"/usr/local/include/libintl.h:118: error: expected `,' or `;' before = "const" > /usr/local/include/libintl.h:134: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:134: error: expected `)' before "const" > /usr/local/include/libintl.h:134: error: expected init-declarator before = "const"/usr/local/include/libintl.h:134: error: expected `,' or `;' before = "const" > /usr/local/include/libintl.h:152: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:152: error: expected `)' before "const" > /usr/local/include/libintl.h:152: error: expected init-declarator before = "const"/usr/local/include/libintl.h:152: error: expected `,' or `;' before = "const" > /usr/local/include/libintl.h:233: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:233: error: expected `)' before "const" > /usr/local/include/libintl.h:233: error: expected init-declarator before = "const"/usr/local/include/libintl.h:233: error: expected `,' or `;' before = "const" > /usr/local/include/libintl.h:251: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:251: error: expected `)' before "const" > /usr/local/include/libintl.h:251: error: expected init-declarator before = "const"/usr/local/include/libintl.h:251: error: expected `,' or `;' before = "const" > /usr/local/include/libintl.h:269: error: expected unqualified-id before "= const" > /usr/local/include/libintl.h:269: error: expected `)' before "const" > /usr/local/include/libintl.h:269: error: expected init-declarator before = "const"/usr/local/include/libintl.h:269: error: expected `,' or `;' before = "const" >=20 > The exact lines in the header file are very similar: > 118: extern char *gettext (const char *__msgid) > _INTL_ASM (libintl_gettext); >=20 > 134: extern char *dgettext (const char *__domainname, const char *__msgid= ) > _INTL_ASM (libintl_dgettext); >=20 > 152: extern char *dcgettext (const char *__domainname, const char *__msgi= d, > int __category) > _INTL_ASM (libintl_dcgettext); >=20 > 233: extern char *textdomain (const char *__domainname) > _INTL_ASM (libintl_textdomain); >=20 > 251: extern char *bindtextdomain (const char *__domainname, const char *_= _dirname) > _INTL_ASM (libintl_bindtextdomain); >=20 > 259: extern char *bind_textdomain_codeset (const char *__domainname, > const char *__codeset) > _INTL_ASM (libintl_bind_textdomain_codeset); >=20 > I do notice that all are #ifdefed to compile when _INTL_REDIRECT_INLINE > is not defined. >=20 > Any idea what this is caused by? Do I need to include some things before > including it? It clearly works OK on Linux, so it's either a gcc 3.4 > issue or a Linuxism nd I would suspect that it would have popped up on > other ports. >=20 > Any clues? I'm no C++ expert, but it looks like an extern C { ... } maybe required around the libintl.h include. Joe >=20 > Thanks! --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-NYsmK0IQgB/70tR96mhx Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBRJlYb2iPiv4Uz4cRApLpAJoCJKlZvkQFCRh6FZxerXBefFti1QCfb6Pq FDkw9mEM3tJdKsj57/y2y/c= =uVo3 -----END PGP SIGNATURE----- --=-NYsmK0IQgB/70tR96mhx--