[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

compiling xboard on debian # No such file or directory # error: `XtNdefaultDistance' undeclared here (not in a function)



Hello list readers,

I'd like to  download  compile and run xboard  under debian.



morten@debian:/tmp/xboard-4.2.7$ ./configure
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes

checking whether we are cross compiling... no
/*-----------------------------------------!!---------------------------------------*/

This is ok since I only want to run it under debian, from the /tmp directory. I am not interested in installing and probably overwriting and crashing my existing xboard. Only from /tmp with no disturbances of any other files.
/*----------------------------------------------------------------------------------*/


checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for library containing strerror... none required
checking for a BSD-compatible install... /usr/bin/install -c
checking for lex... lex
checking for flex... (cached) lex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for remsh... no


/*-----------------------------!!-------------------------------------------------*/


What is this ? Do I need it ?
/*--------------------------------------------------------------------------------*/




checking for rsh... rsh
checking for nroff... nroff -man
checking for awk... /usr/bin/awk
checking for perl... /usr/bin/perl
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking return type of signal handlers... void
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking stropts.h usability... yes
checking stropts.h presence... yes
checking for stropts.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes

checking sys/systeminfo.h usability... no
checking sys/systeminfo.h presence... no
checking for sys/systeminfo.h... no

/*-------------------------------------------!!-----------------------------------------------*/

What is this ?  Do I need it ?

/*--------------------------------------------------------------------------------------------*/


checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for _getpty... no

/*----------------------------!!-----------------------------------------------*/

What is this ?   Do I need it ?

/*-----------------------------------------------------------------------------*/




checking for grantpt... yes
checking for setitimer... yes
checking for usleep... yes
checking for gettimeofday... yes
checking for random... yes
checking for gethostname... yes
checking for setlocale... yes
checking for getpseudotty in -lseq... no

/*-------------------------------------------------!!-------------------------------*/
What is this ? Do I need it ?

/*-----------------------------------------------------------------------------------*/

checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking X11/xpm.h usability... yes
checking X11/xpm.h presence... yes
checking for X11/xpm.h... yes
checking for XpmReadFileToPixmap in -lXpm... yes
checking whether ptys or pipes should be used... pipes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cmail
config.status: creating xboard.texinfo
config.status: creating config.h
config.status: executing default commands



/*---------------------------------------------------*/

The real problems starts when I run make

/*---------------------------------------------------*/





morten@debian:/tmp/xboard-4.2.7$ make
gcc -DHAVE_CONFIG_H -I. -I.  -I/usr/X11R6/include  -I/usr/X11R6/include
-DINFODIR=\"/usr/local/share/info\" -c parser.c

gcc -DHAVE_CONFIG_H -I. -I.  -I/usr/X11R6/include  -I/usr/X11R6/include
-DINFODIR=\"/usr/local/share/info\" -c xboard.c

xboard.c:159:28: X11/Xaw/Dialog.h: No such file or directory


/*-----------------------------------------------------------------------------------------------------*/

and then I get lots of     No such file or directory

/*-----------------------------------------------------------------------------------------------------*/

xboard.c:160:26: X11/Xaw/Form.h: No such file or directory
xboard.c:161:26: X11/Xaw/List.h: No such file or directory
xboard.c:162:27: X11/Xaw/Label.h: No such file or directory
xboard.c:163:32: X11/Xaw/SimpleMenu.h: No such file or directory
xboard.c:164:28: X11/Xaw/SmeBSB.h: No such file or directory
xboard.c:165:29: X11/Xaw/SmeLine.h: No such file or directory
xboard.c:166:25: X11/Xaw/Box.h: No such file or directory
xboard.c:167:32: X11/Xaw/MenuButton.h: No such file or directory
xboard.c:168:26: X11/Xaw/Text.h: No such file or directory
xboard.c:169:31: X11/Xaw/AsciiText.h: No such file or directory

/*--------------------------------------------------------------*/

and then I get  hundreds  of  errors.

/*--------------------------------------------------------------*/


xboard.c:693: error: `XtNdefaultDistance' undeclared here (not in a function)
xboard.c:693: error: initializer element is not constant
xboard.c:693: error: (near initialization for `layoutArgs[1].name')
xboard.c:693: error: initializer element is not constant
xboard.c:693: error: (near initialization for `layoutArgs[1]')
xboard.c:698: error: `XtNresizable' undeclared here (not in a function)

xboard.c:6903: warning: assignment makes pointer from integer without a cast
xboard.c: In function `AskQuestion':
xboard.c:6946: error: `XtNresizable' undeclared (first use in this function)
xboard.c:6953: error: `formWidgetClass' undeclared (first use in this function) xboard.c:6960: error: `dialogWidgetClass' undeclared (first use in this function)
make: *** [xboard.o] Error 1


morten@debian:/tmp/xboard-4.2.7$


I got the files  from here:


http://www.tim-mann.org/xboard.html

http://www.tim-mann.org/xboard/FAQ.html#[B.7]

http://www.tim-mann.org/xboard/FAQ.html#[B0]

http://ftp.gnu.org/gnu/xboard/xboard-4.2.7.tar.gz


Here is my operating system details:
morten@debian:/tmp$ uname -a
Linux debian 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 GNU/Linux


morten@debian:/tmp$ gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr--mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared--enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)



What can I do,
I would prefer not to overwrite or destroy any existing installation.


best regards

Morten Gulbrandsen



	

	
		
___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



Reply to: