This is the mail archive of the cygwin-xfree@sourceware.cygnus.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: libXm.a + xmkmf


Kevin Wright Wrote:

> Tom,
> 
> xmkmf uses config files located in the following directory:
> 
> /usr/X11R6/lib/X11/config/
> 
> Look for the cygwin.cf file and edit it to change the include
> paths.

I looked at cygwin.cf and edited the following lines:

#define StdIncDir  `CcCmd --print-libgcc-file-name | sed 's:libgcc.
a:../../../../i386-cygwin32/include:'|sed 's,\\\\,/,g'`

#define PostIncDir `CcCmd --print-libgcc-file-name | sed 's:libgcc.
a:/include:'|sed 's,\\\\,/,g'`


I changed them to this:

#define StdIncDir   `CcCmd --print-libgcc-file-name | sed 's:libgcc.
a:/usr/i686-pc-cygwin/include:'|sed 's,\\\\,/,g'`
#define PostIncDir  `CcCmd --print-libgcc-file-name | sed 's:libgcc.
a:/usr/local/include:'|sed 's,\\\\,/,g'`


This seemes to be the only place where includes are referred to in 
cygwin.cf.  I tried xmkmf -a on the same package again, and 
xmkmf/makedepend is still looking in the following directories:

 /usr/X11R6.4/include/
 /include/
 /usr/local/lib/gcc-include/
 E:/usr/H-i386-cygwin32/i386-cygwin32/include/
 E:/usr/H-i386-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.57/

I think that xmkmf is not looking at cygwin.cf for the include path, 
because the changes which I have made seem to have no effect.

Thanks, 
Tom Weichmann


 
> As to the problem with _ctype_ that is as you said caused by the
> fact that you have updated your cygwin1.dll but not your X files.
> 
> When I upgraded to the new version of cygwin (the "net" release), I
> was fortunate in the fact that I was able to start on a fresh new
> machine and still keep my old machine in tact. This way, I installed
> the cygwin 1.1.0 (then 1.1.1), then got the latest X stuff from the
> xfree (Suhaib's) people. I agree that his directions and file names
> can be confusing. xc-4-binaries
> 
> I was working on this email when I say your follow up. I just 
> can't remember the exact url for the files with the latest
> X files.
> 
> Hope this helps,
> 
> --Kevin Wright
> 
> 
> 
> > -----Original Message-----
> > From: cygwin-xfree-owner@sourceware.cygnus.com
> > [mailto:cygwin-xfree-owner@sourceware.cygnus.com]On Behalf Of Tom
> > Weichmann Sent: Friday, June 02, 2000 1:14 AM To:
> > cygwin-xfree@sourceware.cygnus.com Subject: libXm.a + xmkmf 
> > 
> > 
> > Hello,
> > 
> > I am running cygwin 1.1.1 on Win98.  I an using the binary release
> > of the x clients and libs from the cygwin/xfree86 page.  I am trying
> > to compile a x file manager called mfm, and I an getting the
> > following errors when I xmkmf -a :
> > 
> > makedepend: warning:  pty.c, line 3: cannot find include file
> > "fcntl.h"
> >         not in /usr/X11R6.4/include/fcntl.h
> >         not in /include/fcntl.h
> >         not in /usr/local/lib/gcc-include/fcntl.h
> >         not in E:/usr/H-i386-cygwin32/i386-cygwin32/include/fcntl.h
> >         not in
> >         E:/usr/H-i386-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-
> > 2.91.57/inc
> > lude/fcntl.h
> > 
> > This error is repeated over and over for every file in the tar ball.
> >  Where does xmkmf get its info from?  None of the include
> > directories which make is looking in exist on my system.  I copied
> > all of the include file needed into /include (one of the directories
> > which make was searching) and tried again.  This time xmkmf -a
> > worked correctly.
> > 
> > Next I typed make.  Make died with the following error:
> > 
> > $ make
> > 
> > rm -f mfm.exe
> > gcc -o mfm.exe -O2 -s -mpentium      -L/usr/X11R6.4/lib accels.o    
> >      dd.o d
> > vices.o         fileMgr.o         fileSelectionBox.o    ftp.o  
> > globalLList.o
> >       info.o         menubar.o         mfm.o         pty.o        
> >  typesFile.o
> >        util.o -lXm -lXt -lSM -lICE -lXpm -lXext -lX11
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x145d):ResConvert.c:
> >  undefined re
> > erence to `_ctype_'
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x1478):ResConvert.c:
> >  undefined re
> > erence to `_ctype_'
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x1490):ResConvert.c:
> >  undefined re
> > erence to `_ctype_'
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x1b20):ResConvert.c:
> >  undefined re
> > erence to `_ctype_'
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x1b26):ResConvert.c:
> >  undefined re
> > erence to `_ctype_'
> > /usr/X11R6.4/lib/libXm.a(ResConvert.o)(.text+0x1b46):ResConvert.c:
> >  more undefin
> > d references to `_ctype_' follow
> > collect2: ld returned 1 exit status
> > make: *** [mfm.exe] Error 1
> > 
> > This looks to me like libXm.a needs to be re-compiled with the
> > latest cygwin.  So this leads me to my next question.  Do I need to
> > download XC40-1 - XC40-4 from the ftp site just to build the libs
> > and clients, or is that for the xserver as well?  Is there another,
> > smaller source I can use if I just want to build the libs and
> > clients?
> > 
> > Thank you for your time,
> > 
> > Tom Weichmann
> > 
> 



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