This is the mail archive of the cygwin-xfree@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: help with link error: undefined reference to XGetHostname


 
You can get libX11-fix.tar.bz2 file from
ftp://sources.redhat.com/pub/cygwin/xfree/xc-4-binaries.  This file was
uploaded at 8:30 PM EST and will not avilable at Mirrors sites, yet.  If
sources.redhat.com is busy you need to keep trying until you get in or wait
till it is available at mirrors sites.

It fixes _XGetHostname issues.  This symbol is now exported and is in
libX11.dll.  This also fixes several other export symbols which are rarely
needed, but were missing from libX11.a, those symbols are now exported and
are in libX11.dll.

I will submit the patch to Xfree86.org, which might take upto a couple of
weeks to show up in CVS repository at XFree86

Suhaib
 
-----Original Message-----
From: Suhaib Siddiqi
To: 'Bob McGowan'
Cc: 'cygwin-xfree@sources.redhat.com'
Sent: 2/16/2001 6:13 PM
Subject: RE: help with link error: undefined reference to XGetHostname


Thanks.
Expect a replacement libX11.dll and the corresponding libX11.a import
library, in "xc-4-binaries" at ftp://sources.redhat.com/pub/cygwin/xfree
later tonite.
I figured out what is going on.  I should have renamed the
xfree86-4.0-xxx.tar.bz2 to
xfree-4.0.2-xxx.tar.bz2.  The updated binaries which were uploaded on
Dec
13th, 2000
are actually XFree86 4.0.2.  The next release will be XFree86 4.0.3
which
will be based upon X11R6.5.1.

Suhaib

> -----Original Message-----
> From: Bob McGowan [mailto:rmcgowan@veritas.com]
> Sent: Friday, February 16, 2001 5:57 PM
> To: Suhaib Siddiqi
> Subject: Re: help with link error: undefined reference to XGetHostname
> 
> 
> I'm taking the liberty of sending this direct to you rather 
> than the list, I hope that is OK.  I figured not too many 
> would be interested in 'score.c' without the rest of
> it, which is available elsewhere.
> 
> Thanks for looking into this, I'm not an XWindows programmer, 
> but I'm learning.  I've done a bit of porting to Cygwin for 
> command line stuff and am aware of some of the
> issues, certainly not all.
> 
> The file is attached.  By the way, the Xtetris version is 2.6 
> in case you need it.  Also, I'm using the 
> xfree86-4.0-Prog.tar dated Dec. 3, 2000.
> 
> Once I know what the issue is I will post it to the list so 
> it is archived.
> 
> Thanks again,
> 
> Bob
> 
> Suhaib Siddiqi wrote:
> > 
> > Well not yet.  E-mail me you score.c file from xtetris.  I think you
> > need to fix it.  I cannot see any problems with libX11.a.  
> The XGetHostname
> > routines
> > are in GetDflt.c, XlibInt.c and WMProps.c and they are 
> OK... means need no
> > modification for
> > Cygwin compilers.
> > 
> > Remember, not every code from UNIX compiles without, at least, minor
> > tweaking.
> > 
> > Suhaib
> > 
> > > -----Original Message-----
> > > From: Bob McGowan [mailto:rmcgowan@veritas.com]
> > > Sent: Friday, February 16, 2001 3:07 PM
> > > To: XFree86, Cygwin
> > > Subject: Re: help with link error: undefined reference to 
> XGetHostname
> > >
> > >
> > > Thanks.
> > >
> > > Suhaib Siddiqi wrote:
> > > >
> > > > > $ make
> > > > > rm -f xtetris.exe
> > > > > gcc -o xtetris.exe -O2 -pedantic -fno-strength-reduce
> > > > > -fnative-struct -m486 -g -Wall     -L/usr/X11R6/lib main.o
> > > > > init.o shape.o support.o notify.o window.o
> > > > > score.o                  draw.o -lXaw -lXmu -lXt -lSM -lICE
> > > > > -lXext -lX11 -lXt -lSM -lICE -lXext -lX11 -lXpm -lm
> > > > > score.o(.text+0x225): undefined reference to `_XGetHostname'
> > > > > collect2: ld returned 1 exit status
> > > > > make: *** [xtetris.exe] Error 1
> > > > >
> > > >
> > > > OK, XGetHostname supposed to be libX11.a, but it is not.  I will
> > > > provide a fix by the mid of next week.
> > > >
> > > > Sorry for troubles.
> > > >
> > > > Suhaib
> > > >
> > > > > Looking at this, I see some libraries included twice.  And
> > > > > the second to last, Xpm, I added to get past xpm related
> > > link errors.
> > > > >
> > > > > Thanks.
> > > > >
> > > > > Suhaib Siddiqi wrote:
> > > > > >
> > > > > > Do yu care to post the out put of compile link 
> error messages.
> > > > > > If it is tetris issue, I may not be able to help you but
> > > > > > will do my best to help you if the link time errors 
> were due to
> > > > > > Cygwin/XFree86,
> > > > > > which I doubt.
> > > > > >
> > > > > > However without seeing what kind of errors you are
> > > getting, I cannot
> > > > > > be of any help to you.
> > > > > >
> > > > > > Suhaib
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Bob McGowan [mailto:rmcgowan@veritas.com]
> > > > > > > Sent: Thursday, February 15, 2001 8:24 PM
> > > > > > > To: XFree86, Cygwin
> > > > > > > Subject: help with link error: undefined reference to
> > > XGetHostname
> > > > > > >
> > > > > > >
> > > > > > > I had several other link errors which I have successfully
> > > > > > > fixed, based on searching the list archive.  But I cannot
> > > > > > > find any reference in the archives to this routine.  I
> > > > > > > also did ran nm on the X11 lib files and did not find it.
> > > > > > > I'm trying to compile Xtetris, if that helps.
> > > > > > >
> > > > > > > What am I missing?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > --
> > > > > > > Bob McGowan
> > > > > > > Staff Software Quality Engineer
> > > > > > > VERITAS Software
> > > > > > > rmcgowan@veritas.com
> > > > > > >
> > > > >
> > > > > --
> > > > > Bob McGowan
> > > > > Staff Software Quality Engineer
> > > > > VERITAS Software
> > > > > rmcgowan@veritas.com
> > > > >
> > >
> > > --
> > > Bob McGowan
> > > Staff Software Quality Engineer
> > > VERITAS Software
> > > rmcgowan@veritas.com
> > >
> 
> -- 
> Bob McGowan
> Staff Software Quality Engineer
> VERITAS Software
> rmcgowan@veritas.com
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]