bug-coreutils
[Top][All Lists]
Advanced

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

Re: build failure on sparc64-sun-solaris2.9


From: Paul Eggert
Subject: Re: build failure on sparc64-sun-solaris2.9
Date: Thu, 05 Jan 2006 14:45:42 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Aleksandar Milivojevic <address@hidden> writes:

> if gcc -DHAVE_CONFIG_H -DLIBDIR=\"/opt/pbl/lib/sparcv9\" -I. -I../../lib -I.. 
> -I.. -I../../lib   -g -O2 -MT canon-host.o -MD -MP -MF ".deps/canon-host.Tpo"
> -c -o canon-host.o ../../lib/canon-host.c; \
> then mv -f ".deps/canon-host.Tpo" ".deps/canon-host.Po"; else rm -f
> ".deps/canon-host.Tpo"; exit 1; fi
> In file included from ../../lib/getaddrinfo.h:28,
>                  from ../../lib/canon-host.c:27:
> /usr/include/sys/socket.h:61: error: two or more data types in declaration
> specifiers

Shouldn't you be using "gcc -m64" if you want to build a 64-bit version?
(Or perhaps you have a special gcc that defaults to 64-bit?)

I tried to reproduce your problem with coreutils 5.93 on a Solaris 9
sparc host with GCC 4.0.2, using "configure CC='gcc -m64'", and didn't
have that problem.

Perhaps you're using an older coreutils release?  If so, please upgrade.


> Looking at the sys/socket.h, the line 61 reads:
>
> typedef uint32_t        socklen_t;

Most likely your "configure" went wrong, and put a "#define socklen_t
int" into config.h.  If so, you should investigate why.  But first,
upgrade to 5.93.




reply via email to

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