GNU bug report logs - #16825
24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin

Previous Next

Package: emacs;

Reported by: Klaus.Zeitler <at> alcatel-lucent.com

Date: Thu, 20 Feb 2014 14:59:02 UTC

Severity: important

Found in version 24.3

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16825: closed (24.3: conflicting types for `rpl_readlink' on
 powerpc-apple-darwin)
Date: Tue, 25 Feb 2014 19:55:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 25 Feb 2014 11:54:23 -0800
with message-id <530CF4EF.8040602 <at> cs.ucla.edu>
and subject line Re: bug#16825: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
has caused the debbugs.gnu.org bug report #16825,
regarding 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
16825: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16825
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Klaus Zeitler <Klaus.Zeitler <at> alcatel-lucent.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.3: conflicting types for `rpl_readlink' on powerpc-apple-darwin
Date: Thu, 20 Feb 2014 15:58:03 +0100
[Message part 3 (text/plain, inline)]
Building emacs 24.3 on powerpc-apple-darwin gives me the
following error:

--- snip ---

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/lib -I../src -I/Volumes/UFS_exp2/exptools/expmake/build/gnuemacs2src/emacs-24.3/src   -I/opt/exp/gnu/include   -g3 -O2 -MT careadlinkat.o -MD -MP -MF .deps/careadlinkat.Tpo -c -o careadlinkat.o careadlinkat.c
In file included from unistd.h:43,
                 from careadlinkat.h:24,
                 from careadlinkat.c:23:
/usr/include/unistd.h:240: error: conflicting types for `rpl_readlink'
unistd.h:1559: error: previous declaration of `rpl_readlink'

--- snip ---


Looking at the 2 definitions of readlink I see in /usr/include/unistd.h:

int	 readlink(const char *, char *, int);


and in emacs-24.3/lib/unistd.h

_GL_FUNCDECL_RPL (readlink, ssize_t,
                  (const char *file, char *buf, size_t bufsize)
                  _GL_ARG_NONNULL ((1, 2)));


So it seems the 3rd parameter is different. Also I wonder why we include
2 different unistd.h files in the first place.


Attached is the complete configure/compile log.

[expmakeout.powerpc-apple-darwin (application/octet-stream, attachment)]
[Message part 5 (text/plain, inline)]

-- 
 -------------------------------------------------------------------
|  Klaus Zeitler              Alcatel-Lucent                        |
|  Lorenzstrasse 10           D-70435 Stuttgart, Germany            |
|  Department:                MS/E Building: 004  Office: 1/62      |
|  Telefon:                   +49 711 821 43898                     |
|  Email:                     klaus.zeitler <at> alcatel-lucent.com      |
|                                                                   |
| Alcatel-Lucent Deutschland AG                                     |
| Sitz der Gesellschaft: Stuttgart · Amtsgericht Stuttgart HRB 4026 |
| Vorsitzender des Aufsichtsrates: Michael Oppenhoff                |
| Vorstand: Wilhelm Dresselhaus (Chairman) · Hans-Jörg Daub ·       |
|           Andreas Gehe                                            |
 -------------------------------------------------------------------
---
You can only be young once. But you can always be immature. -- Dave Barry
[Message part 6 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Glenn Morris <rgm <at> gnu.org>, Klaus.Zeitler <at> alcatel-lucent.com
Cc: 16825-done <at> debbugs.gnu.org, 14585 <at> debbugs.gnu.org
Subject: Re: bug#16825: 24.3: conflicting types for `rpl_readlink' on
 powerpc-apple-darwin
Date: Tue, 25 Feb 2014 11:54:23 -0800
On 02/25/2014 11:43 AM, Glenn Morris wrote:
> I think this is
>
> http://debbugs.gnu.org/14585

Yes, thanks, that sounds right, so let's continue the conversation about 
this problem at <14585 <at> debbugs.gnu.org>. I'll mark16825 as done, since 
its bug is fixed now.

Peter Dyballa, can you please try the following suggestion for 
Bug#14585?  It's taken from <http://bugs.gnu.org/16825#29>.  Thanks.

---

Please try changing this line in src/Makefile:

LD_SWITCH_SYSTEM_TEMACS= ... 690 ...

so that the 690 is something larger.  This is a hexadecimal number that 
is a multiple of (decimal) 56.  Please try 6C8, 700, etc., until you 
find a number that works, and let us know.  After editing src/Makefile, 
remove src/temacs and then type 'make'.

I don't use Mac OS X, by the way; I'm merely deriving this suggestion 
from David Reitter's email 
<http://lists.gnu.org/archive/html/emacs-devel/2013-05/msg00462.html>.


This bug report was last modified 11 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.