Re: wine's winhelp doesn't compile

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

 



[cc'd wine-devel]

gerard patel wrote:
> 
> On Wed, 28 Nov 2001 18:19:05 +0100 (CET),
> =?iso-8859-1?q?Sylvain=20Petreolle?= <spetreolle@yahoo.fr> wrote:
> 
> >Hi,
> >
> >using latest cvs code,
> >i can't compile the winhelp program.
> >There's a conflict for the gethostname fonction :
> >
> >gcc -c -I. -I. -I../../include -I../../include  -g -O2
> >-Wall -mpreferred-stack-boundary=2 -fPIC -DSTRICT
> >-DNONAMELESSUNION -DNONAMELESSSTRUCT  -D_REENTRANT
> >-I/usr/X11R6/include -o lex.yy.o lex.yy.c
> >In file included from ../../include/winsock2.h:30,
> >                 from ../../include/windows.h:39,
> >                 from macro.h:7,
> >                 from ./macro.lex.l:10:
> >../../include/winsock.h:886: conflicting types for
> >`gethostname'
> >/usr/include/unistd.h:734: previous declaration of `gethostname'
> 
> All I can say is that the thing compiles for me - useless as it
> is- under gcc 2.96 (not the RedHat special edition :-)) with
> cvs as of this morning (30 nov 2001)

I think this may be a glibc issue, rather than a compiler issue.  I get
the same error as Sylvain.  I'm using a Red Hat 7.2 machine.  The exact
same error occurs with Red Hat's gcc-2.96-98 and gcc3-3.0.1-3.

Gerard, what is the prototype for gethostname in /usr/include/unistd.h
for gethostname?

james[1]%rpm -qf /usr/include/unistd.h
glibc-devel-2.2.4-19
james[2]%grep gethostname /usr/include/unistd.h
extern int gethostname (char *__name, size_t __len) __THROW;
   Called just like `gethostname' and `sethostname'.
james[3]%grep gethostname ../../include/winsock.h
int WINAPI WS(gethostname)(char*,int);
james[4]%rpm -q gcc
gcc-2.96-98
james[5]%rpm -q gcc3
gcc3-3.0.1-3
james[6]%gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
james[7]%gcc3 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.0.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --host=i386-redhat-linux
Thread model: posix
gcc version 3.0.2 20010905 (Red Hat Linux 7.1 3.0.1-3)


--
James Juran
jamesjuran@alumni.psu.edu


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux