Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A4489CF4 for ; Sun, 8 Jan 2012 00:41:18 +0000 (UTC) Received: (qmail 51637 invoked by uid 500); 8 Jan 2012 00:41:17 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 51563 invoked by uid 500); 8 Jan 2012 00:41:16 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 51555 invoked by uid 99); 8 Jan 2012 00:41:16 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jan 2012 00:41:16 +0000 Received: from localhost (HELO localhost) (127.0.0.1) (smtp-auth username arielch, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jan 2012 00:41:16 +0000 Date: Sat, 7 Jan 2012 21:41:12 -0300 From: Ariel Constenla-Haile To: ooo-dev@incubator.apache.org Subject: Re: Trying to compile on Solaris 11 Message-ID: <20120108004112.GD18745@localhost> References: <4F08ABEA.4050609@optonline.net> <4F08BFF4.80201@optonline.net> <20120107220118.GC18745@localhost> <4F08D866.4060002@optonline.net> <4F08DFB9.4030009@optonline.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="VV4b6MQE+OnNyhkM" Content-Disposition: inline In-Reply-To: <4F08DFB9.4030009@optonline.net> User-Agent: Mutt/1.5.21 (2010-09-15) --VV4b6MQE+OnNyhkM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Paul, On Sat, Jan 07, 2012 at 07:13:45PM -0500, Paul Gress wrote: > Tried a little sooner. EPM does't finish configure: >=20 > Compiling dist.c... > "dist.c", line 61: identifier redeclared: gethostname > current : function(pointer to char, int) returning int > previous: function(pointer to char, unsigned int) returning int : "/u= sr/include/unistd.h", line 334 > cc: acomp failed for dist.c > *** Error code 2 > The following command caused the error: > /opt/solarisstudio12.3/bin/cc -xO4 -I. -I. -c dist.c > make: Fatal error: Command failed for target `dist.o' > bash-4.1$ >=20 >=20 > OK, I know I'm deviating a little from AOO here, but maybe someone has a = quick answer. look in dist.c: /* * Some versions of Solaris don't define gethostname()... */ #ifdef __sun extern int gethostname(char *, int); #endif /* __sun */ but your Solaris 11 defines that function, and for worst with a different signature.=20 Dirty fix: simply remove that declaration or change it to match the one in /usr/include/unistd.h Instead of extern int gethostname(char *, int); extern int gethostname(char *, unsigned int); The proper fix is to patch epm's configure to detect if gethostname() is defined in Solaris. Regards --=20 Ariel Constenla-Haile La Plata, Argentina --VV4b6MQE+OnNyhkM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJPCOYoAAoJEMjP1bm45QNWiGkP/3BPB08MoeKDGovHRsuUJrbZ 5jTFFV8Z7Ovzvh9Eiv2Y9qt1moKe3YW1/D8Hpl2FW0uzGp+QR5q7XSahRWm1IUgZ YrxP5VrySFDutzHWs84muc4PyD7Zrbj4YJnfsIiEimMCCkdWHtveRg7ag8/Mu2R2 mKvKMh8hOCvjC2XUuOhQcR/kcJUpbSJ/RD+4/txeGAhvbsEh07g0Nu37zPqY/OcA FxJwqMANvpw0RMeN6xtVR0pbkgBojuRs4uKlg/wteGOkUDutoIFsX2ktLcjpD4gH VE2dX7I//U7wnpnoOtTfLQttYWHxTUlLe333+sH0eAWUdX2ySH4uG5SwhnaV2Gpc yBHkSCVFJXa4729n2MThw2msAlYneozD5M9Vxu8ExFrvZfRlqCfNt8w83mNJO64d /QlAOIwbR3h9WXJVXM3xWa1yNlNl+ElOWqPMtAcg7Kp/v6E0gky3AZhpW+FNfPt6 ZNYMAmir9zuBuNX3SWqdswPvyxAzgGoaIw/hSWJDIBKMc3wfrxNlI5JU44wr9soD nvlZXcEPlx5Kz8ZHWFEK4poPJhOsoCuvzOM8+fRYJ7D8aMHy8dVS0JtSoVFIp020 MbWc8cs88lT2W5oxmaPbPT4KwYc/Mw1PZvyj9Tr9AvXY23RNBmXqI9nF7v3zeJ7Y Z6U/qURQvrZPqW4d2x2/ =wAz3 -----END PGP SIGNATURE----- --VV4b6MQE+OnNyhkM--