This is the mail archive of the
cygwin-xfree@sources.redhat.com
mailing list for the Cygwin project.
Compiling Errors - Xserver
- To: "'cygwin-xfree at sourceware dot cygnus dot com'" <cygwin-xfree at sourceware dot cygnus dot com>
- Subject: Compiling Errors - Xserver
- From: "Mark A. Lawson" <lawson at iwvisp dot com>
- Date: Fri, 14 Jul 2000 12:43:06 -0700
- Organization: home
Xserver from CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src
Linking xf86cfg.exe fails due to undefined reference to
`XF86VidModeSwitchToMode' and 'XF86VidModeAddModeLine'.
They are defined in 'xc/lib/xxf86vm/XF86VMode.c' and the library
libxxf86vm.a was linked by options -L../../../../../exports/lib -lXxf86vm
xc/exports/lib/libXxf86vm.a -> ../../lib/Xxf86vm/libXxf86vm.a
The included text file contents, attempts to briefly describe what software
and procedure was used and the Error message. If additional information is
required it will be gladly provided.
Thanks in Advance,
Mark A Lawson
lawson@iwvisp.com
voice/fax (760)384-1621
616 Yellow Astor Ave., Ridgecrest, CA
Operating System
Microsoft Windows 98 4.10.2222 A
Software installed
cvs co src/cygwin-xfree export CVSROOT=:pserver:anoncvs@anoncvs.cygnus.com:/cvs/src
XC40-[1-4].tar.bz2 ftp://sourceware.cygnus.com/pub/cygwin/xfree/xc-4/
ncurses-5.0.tar.gz http://cygutils.netpedia.net/V1.1
lesstif-0.91.3.tar.gz Lesstiff latest ver http://www.lesstif.org
System Setup
BASH.EXE-2.04$ mount
Device Directory Type Flags
C:\personal\project /Project user textmode
C:\CYGWIN\bin /usr/bin user binmode
C:\CYGWIN\lib /usr/lib user binmode
C:\CYGWIN / user binmode
/usr/local/lib
-rw-r--r-- 1 lawsonk6 unknown 26038 Feb 23 21:49 libcygipc.a
lrw-r--r-- 1 lawsonk6 unknown 22 Jul 5 07:09 libipc.a -> libcygipc.a
Config Changes
*site.def
#define ProjectRoot /usr/X11R6.4
#define StandardIncludes -I/usr/include -I/usr/i686-pc-cygwin/include -I/usr/local/include
#define DefaultUserPath /bin:/usr/bin:$(BINDIR):/usr/local/bin:~/bin
*cygwin.cf
#define ExtraLibraries -lipc
#UseGccMakeDepend YES
#define HasShm YES
Procedure
cd /usr/X11R6.4/xc/programs/Xserver
imake -Iconfig/cf
Edit Makefile TOP = ../.. & CURRENT_DIR = programs/Xserver instead both were "."
BASH.EXE-2.04$ make Makefiles &> XF_Makefiles1.log
BASH.EXE-2.04$ make includes &> XF_includes1.log
BASH.EXE-2.04$ make &> XF_all1.log
ERROR******************************************************************************ERROR
gcc -c -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunks -m
486 -Wall -I../../../../.. -I../../../../../exports/include -I/usr/include -
I/usr/1-pc-cygwin/include -I/usr/local/include -D__i386__ -DWIN32_LEAN_AND_MEAN
-DX_LOCALE -D_MT -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_R
EENTRANT -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D
X_SOURCE -DFUNCPROTO=15 -DNARROWPROTO vidmode.c
rm -f xf86config.o
gcc -c -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtable-thunks -m
486 -Wall -I../../../../.. -I../../../../../exports/include -I/usr/include -
I/usr/1-pc-cygwin/include -I/usr/local/include -D__i386__ -DWIN32_LEAN_AND_MEAN
-DX_LOCALE -D_MT -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_R
EENTRANT -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D
X_SOURCE -DFUNCPROTO=15 -DNARROWPROTO xf86config.c
rm -f xf86cfg.exe
gcc -o xf86cfg.exe -O2 -pedantic -fno-strength-reduce -fpcc-struct-return -fvtab
le-thunks -m486 -Wall -L../../../../../exports/lib accessx.o cards.o
config.o card-cfg.o help.o interface.o keyboard-cfg.o monitor-
cfg.o mouse-cfg.o options.o screen-cfg.o screen.o startx.o
vidmode.o xf86config.o -lxkbui -lxkbfile -lxf86config -lXxf86misc
-lXxf86vm -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lXt -lSM -
lICE -lXpm -lXext -lX11 -lm -L/usr/X11R6.4/lib -lipc
vidmode.o(.text+0x2154):vidmode.c: undefined reference to `XF86VidModeSwitchToMo
de'
vidmode.o(.text+0x24f7):vidmode.c: undefined reference to `XF86VidModeAddModeLin
e'
collect2: ld returned 1 exit status
make[2]: *** [xf86cfg.exe] Error 1
make[2]: Leaving directory `/usr/X11R6.4/xc/programs/Xserver/hw/xfree86/xf86cfg'