bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with solaris 2.5.1 and gettext-0.12.1


From: Bruno Haible
Subject: Re: problem with solaris 2.5.1 and gettext-0.12.1
Date: Tue, 18 Nov 2003 16:25:41 +0100
User-agent: KMail/1.5

Warren L Dodge wrote:
> I got a copy of gettext-0.12.1.tar.gz and tried to install it on
>
> Solaris 8
> Solaris 2.5.1
> Linux
>
> It worked fin on Linux and Solaris 8
>
> On Solaris 2.5.1 I get this error.
>
> gcc -DDEPENDS_ON_LIBINTL=1 -DHAVE_CONFIG_H -I.
> -I../../../gettext-0.12.1/gettext-runtime/lib -I.. -I.
> -I../../../gettext-0.12.1/gettext-runtime/lib -I.. -I../intl
> -I../../../gettext-0.12.1/gettext-runtime/lib/../intl
> -I../../gettext-tools/lib
> -I../../../gettext-0.12.1/gettext-runtime/lib/../../gettext-tools/lib    -g
> -O2 -c ../../../gettext-0.12.1/gettext-runtime/lib/canonicalize.c In file
> included from ../../../gettext-0.12.1/gettext-runtime/lib/canonicalize.c:1:
> ../../../gettext-0.12.1/gettext-tools/lib/canonicalize.c:90: conflicting
> types for `rpl_realpath'
> /proj/wdt/gnu_sun5.1/gcc-3.2.1/lib/gcc-lib/sparc-sun-solaris2.5.1/3.2.1/inc
>lude/stdlib.h:178: previous declaration of `rpl_realpath' make[3]: ***
> [canonicalize.o] Error 1
> make[3]: Leaving directory
> `/proj/wdtold/warrend/gnusrc/000040-gettext-0.12.1/gettext-0.12.1_sun5.1/ge
>ttext-runtime/lib'
>
> This is what is in the stdio.h file
>
> extern char *realpath(char *, char *);
>
> I am not sure if there is a problem with the gcc install or if there is a
> collision in solaris 2.5.1

Hi,

Thanks for reporting this. It's not a problem with gcc. This patch should
fix it.

*** gettext-tools/lib/canonicalize.c    Tue Oct 21 22:53:27 2003
--- gettext-tools/lib/canonicalize.c    Tue Nov 18 00:48:13 2003
***************
*** 21,26 ****
--- 21,30 ----
  # include <config.h>
  #endif
  
+ /* Avoid a clash of our rpl_realpath() function with the prototype in
+    <stdlib.h> on Solaris 2.5.1.  */
+ #undef realpath
+ 
  #if !HAVE_CANONICALIZE_FILE_NAME || defined _LIBC
  
  #include <alloca.h>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]