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: compile problems Xutf8TextListToTextProperty not defined


Suhaib,

I checked the lib/X11/X11-def.cpp that I used to build with and it
already had the Xutf8TextListToTextProperty symbol listed (one
of the last ones).

Regarding the windows.h file being used, It is included in
/usr/include/cygwin/cygwin_dll.h which for me is being used
when creating dll's. For example:

In file included from junk.c:1:
/usr/include/cygwin/cygwin_dll.h:14: windows.h: No such file or directory
make[4]: *** [junk.o] Error 1

Here's all the entire compile section: (I've broken it up to make it easier
to read)

gcc -c -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunk
s -m486
-Wall -I../.. -I../../exports/include  -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_
LOCALE
-D_MT -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_REENTRAN
T
-D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DX_SOU
RCE
-DFUNCPROTO=15 -DNARROWPROTO   -DUSE_MAKEDEPEND  -D_XLIBINT_  -D_DLL junk.c

When I hack the makefile to change this to "gcc -mwin32", I don't have
any problem.

Perhaps there's something different about my environment. I'm pretty much
up-to-date with everything in cygwin. In any case, I'm just happy it works
for me.
If there's something I'm doing wrong, please let me know. I'm open to
suggestions.

--Kevin

> -----Original Message-----
> From: cygwin-xfree-owner@sources.redhat.com
> [mailto:cygwin-xfree-owner@sources.redhat.com]On Behalf Of Suhaib
> Siddiqi
> Sent: Wednesday, February 21, 2001 6:55 PM
> To: 'Robert Collins '; 'cygwin-xfree@cygwin.com '
> Subject: RE: compile problems Xutf8TextListToTextProperty not defined
>
>
>
> X uses nothing from /usr/include/w32api.
> xutf8xxxx misisng symbol was because exported symbols for each library
> are defined in XXX-def.cpp  (e.h lib/X11/X11-def.cpp for X11, and
> GL-def.cpp
> for libGL).  In case of a missing symbol, add it to corresponding
> XXX-def.cpp file, recompile and you should be fine...
>
> Suhaib
>
>
> -----Original Message-----
> From: Robert Collins
> To: cygwin-xfree@cygwin.com
> Sent: 2/21/2001 7:20 PM
> Subject: FW: compile problems Xutf8TextListToTextProperty not defined
>
>
>
> > -----Original Message-----
> > From: Kevin Wright [mailto:kevin@wright.org]
> > Sent: Thursday, February 22, 2001 10:23 AM
> > To: Robert Collins
> > Subject: RE: compile problems Xutf8TextListToTextProperty not defined
> >
> >
> > Rob,
> >
> > Thanks for pointing that out. When they were discussing this
> > change on the list it sounded like a great idea...
> >
> > OTOH, even though this is marked as experimental, I think they
> > are planning on making this type of change permanent. In
> > which case, the makefiles (actually, I think it's the cygwin.cf
> > for imake) for Xfree86 will have to be updated. Another
> > possibility is to set an environment variable. I couldn't figure
> > out a way to make this work. It seems the makefiles don't pick
> > up any environment variables.
> >
> > --Kevin
> >
> > > -----Original Message-----
> > > From: Robert Collins [mailto:robert.collins@itdomain.com.au]
> > > Sent: Wednesday, February 21, 2001 4:30 PM
> > > To: Kevin Wright; Cygwin Xfree Mailing List
> > > Subject: RE: compile problems Xutf8TextListToTextProperty
> > not defined
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Kevin Wright [mailto:kevin@wright.org]
> > > > Sent: Thursday, February 22, 2001 8:23 AM
> > > > To: Cygwin Xfree Mailing List
> > > > Subject: RE: compile problems Xutf8TextListToTextProperty
> > not defined
> > > >
> > > >
> > > > Suhaib,
> > > >
> > > <snip>
> > > >
> > > > The bad news is that due to changes in cygwin's compiler
> > > > (version 2.95.2-7), the windows header files aren't found by
> > > > default. I had to change the makefiles for the dll's to gcc
> > > > -mwin32 to get this to work. IIRC, they recently went from
> > > > -DWIN32 being the default to having to use -mwin32 to get the
> > > > windows headers. Also the these files are now located in
> > > > /usr/include/w32api. (gcc 2.95.2-8 is due out soon, so this
> > > > might change again)
> > > >
> > >
> > > Kevin, this is due to you downloading the "experimental" gcc. Gcc
> > > 2.95.2-7 is marked as experimental for cygwin's setup, and
> > by default
> > > you would have got an older, more stable gcc.
> > >
> > > Rob
> > >
> >
>


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