From ooo-dev-return-15897-apmail-incubator-ooo-dev-archive=incubator.apache.org@incubator.apache.org Mon Apr 2 09:07:47 2012 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 5B7E19097 for ; Mon, 2 Apr 2012 09:07:47 +0000 (UTC) Received: (qmail 27436 invoked by uid 500); 2 Apr 2012 09:07:47 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 27361 invoked by uid 500); 2 Apr 2012 09:07:46 -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 27341 invoked by uid 99); 2 Apr 2012 09:07:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 09:07:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [95.128.32.155] (HELO srsyg17.sygroup-int.ch) (95.128.32.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 09:07:41 +0000 Received: from localhost (localhost [127.0.0.1]) by srsyg17.sygroup-int.ch (Postfix) with ESMTP id 93E5F2A08F for ; Mon, 2 Apr 2012 11:07:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at srsyg17.sygroup-int.ch Received: from srsyg17.sygroup-int.ch ([127.0.0.1]) by localhost (srsyg17.sygroup-int.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ToK0-7lPTqeK for ; Mon, 2 Apr 2012 11:07:19 +0200 (CEST) Received: from sherlock.adfinis-int.ch (sherlock.adfinis-int.ch [10.9.4.39]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jean-louis.fuchs@adfinis-sygroup.ch) by srsyg17.sygroup-int.ch (Postfix) with ESMTPSA id 70E572A07D for ; Mon, 2 Apr 2012 11:07:19 +0200 (CEST) From: Jean-Louis 'Hans' Fuchs Content-Type: multipart/signed; boundary="Apple-Mail=_2ED85584-F2FC-4CC5-9B88-7B9E13802567"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Sal Shadow API on Solaris Date: Mon, 2 Apr 2012 11:07:18 +0200 Message-Id: <5B03D962-7F2C-4ACA-A33A-00818E296952@adfinis-sygroup.ch> To: ooo-dev@incubator.apache.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_2ED85584-F2FC-4CC5-9B88-7B9E13802567 Content-Type: multipart/alternative; boundary="Apple-Mail=_AB553A57-403C-425B-A253-1E870D21F46A" --Apple-Mail=_AB553A57-403C-425B-A253-1E870D21F46A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello main/sal/osl/os2/system.h 586 #ifdef OLD_SHADOW_API 587 if (getspnam_r(pszUserName, &spwdStruct, buffer, = sizeof buff er) !=3D NULL) 588 #else 589 if (getspnam_r(pszUserName, &spwdStruct, buffer, = sizeof buff er, NULL) =3D=3D 0) 590 #endif The build on OpenSolaris 2009.06 fails because it has the 4 param = function. I defined OLD_SHADOW_API and it works. IMO it should be = defined by the build-env. Best, Jean-Louis --=20 Adfinis SyGroup AG Jean-Louis 'Hans' Fuchs, Software Engineer Keltenstrasse 98 | CH-3018 Bern Tel.: +41 31 550 31 11 | http://www.adfinis-sygroup.ch --Apple-Mail=_AB553A57-403C-425B-A253-1E870D21F46A Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Hello

main/sal/osl/os2/system.h

586 #ifdef OLD_SHADOW_API
587                 if (getspnam_r(pszUserName, &spwdStruct, buffer, sizeof buff    er) != NULL)
588 #else
589                 if (getspnam_r(pszUserName, &spwdStruct, buffer, sizeof buff    er, NULL) == 0)
590 #endif

The build on OpenSolaris 2009.06 fails because it has the 4 param function. I defined OLD_SHADOW_API and it works. IMO it should be defined by the build-env.

Best,
Jean-Louis

-- 
Adfinis SyGroup AG
Jean-Louis 'Hans' Fuchs, Software Engineer
Keltenstrasse 98 | CH-3018 Bern
Tel.: +41 31 550 31 11 | http://www.adfinis-sygroup.ch

--Apple-Mail=_AB553A57-403C-425B-A253-1E870D21F46A-- --Apple-Mail=_2ED85584-F2FC-4CC5-9B88-7B9E13802567 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) iQEcBAEBAgAGBQJPeWxHAAoJEImltJYw04FOBH8IALntfKaIy2/JviaoT7JGm7fK NrzyotbJb3l5LDHSDzkFtLqZHAmkwn2QjpMucwQIfVYcJ7tkjyCV8ZFe0NgSQOTW MVXHpS9nxI5RR7Xiygk8E6G7UkslNKCLVJTxvRDYIVXAYWcMdQCOASDQkac4u8Uh 7jMqIiIlOlfzQtXaO5P+1tIaLTCPv/GkkONQHS5BVp/pp798W0ycG1ZsYamlnIJm s5LGs876qiO7mfkAoL9sFEvUXJ0iTEJ1Ty8+ibPBvZFxX+0OYhZr6VTvmjIYoCBP qw2nIFBijrawS+VCSufAQDeruqAr8D3XwuY1NGfZ1DzKU9+su9nGmeNv7r2/Hyw= =zdLO -----END PGP SIGNATURE----- --Apple-Mail=_2ED85584-F2FC-4CC5-9B88-7B9E13802567--