This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: 4.0.3 compilation errors again
- To: "'daniele dot disco at virgilio dot it'" <daniele dot disco at virgilio dot it>, cygwin-xfree at sourceware dot cygnus dot com
- Subject: RE: 4.0.3 compilation errors again
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Wed, 28 Mar 2001 11:13:02 -0500
> Related to Xfree4.0.3 compilation on WInNt40, I still have problems.
>
> After modifying the Makefile in xc/programs/xdm about the order of
> Xinerama library (thanks to Suhaib), chooser.exe could be compiled.
>
> Unfortunately, I still have problems with my compilations.
>
> For example:
> ...
> gcc -O2 -pedantic -fno-strength-reduce -fpcc-struct-return
> -fvtable-thunks -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_REENTRANT
> -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE
> -D_GNU_SOURCE -DX_SOURCE
> -DFUNCPROTO=15 -DNARROWPROTO -DUSE_MAKEDEPEND
> -DOSMAJORVERSION=1 -DOSMINORVERSION=1
> -c -o get_load.o get_load.c
> get_load.c:56: nlist.h: No such file or directory
> make[3]: *** [get_load.o] Error
> ...
Right xload does not compile with Cygwin and it will not until cygwin
supports
nls. It has not nlstypes.h. you do not need xload.exe anyway.
> gcc -o resize.exe -O2 -pedantic -fno-strength-reduce
> -fpcc-struct-return
> -fvtable-thunks -m486 -Wall
> -L../../exports/lib resize.o xstrings.o -L/usr/X11R6/lib
> -ltermcap
> resize.o(.text+0x4f9):resize.c: undefined reference to `_imp__tgetent'
> collect2: ld returned 1 exit status
> make[3]: *** [resize.exe] Error 1
The xterm in the recent code insists on using libncurses.a. In Cygwin.cf
file change -ltermcap to lncurses.
> ....
> gcc -o glxinfo.exe -O2 -pedantic -fno-strength-reduce
> -fpcc-struct-return
> -fvtable-thunks -m486 -Wall
> -L../../exports/lib glxinfo.o -lGL -lGLU -lXext -lX11
> -L/usr/X11R6/lib
> -lm
> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2-6/../../../../i686-pc-c
> ygwin/bin/ld: cannot find -lGLU
> collect2: ld returned 1 exit status
> make[3]: *** [glxinfo.exe] Error 1
> ....
Beucase it did not compile? go to xc/lib/GLU and type make there if it
returns errors...
then go to each subdirectory under xc/lib/GLU and type make in each
subdriectory and go back to
xc/lib/GLU and type make again, this might compile it. Somehow it does
fails sometimes
and that is annoying, I have not find a fix why it compiled once and failed
other times.
But that si what I do when it fails.
then go back to xc/programs and type make that should compile clinets which
needs libGLU.dll.
Suhaib
>
> etc. etc...
>
> Should someone be interested in the complete log file I can
> send it to him.
>
> Any suggestions?
>
> TIA
> Daniele
>
> ----------------------------------------------
> Virgilio Mail - Il tuo indirizzo E-mail gratis
> http://mail.virgilio.it
>
>