Date: Thu, 20 Jun 1996 18:20:04 +0200 (MET DST) From: Juergen Lock <nox@jelal.hb.north.de> To: steve@emmert.com (Steve Emmert) Cc: ports@freebsd.org Subject: Re: TKdesk port trouble Message-ID: <199606201620.SAA05232@saturn.hb.north.de> In-Reply-To: <Pine.BSI.3.93.960619214622.9422A-100000@free.emmert.com> from Steve Emmert at "Jun 19, 96 10:03:27 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Steve Emmert writes: > Hi, moin (<- thats what we say here in northern germany...) > > Tried the port of Tkdesk, went ok until: > > gcc -Wall -pipe -O2 -g -I/usr/local/include -I/usr/local/include > -I/usr/X11R6/include -c tixImgXpm.c > tixImgXpm.c:78: parse error before `Tk_ImageMaster' > tixImgXpm.c:78: warning: no semicolon at end of struct or union > tixImgXpm.c:82: parse error before `imageCmd' > tixImgXpm.c:82: warning: data definition has no type or storage class >... hmm looks like some kind of include file version mismatch!? can you do a cc -E -I/usr/local/include -I/usr/X11R6/include tixImgXpm.c |less in that directory (work/tkdesk-1.0b1/libdesk) and see what unparsable nonsense cc1 is getting there? and you can also |grep '^# ' to see what its actually including, here is what i get: # 1 "tixImgXpm.c" # 1 "../blt/src/bltConfig.h" 1 # 46 "tixImgXpm.c" 2 # 1 "/usr/include/stdlib.h" 1 3 # 1 "/usr/include/machine/ansi.h" 1 3 # 39 "/usr/include/stdlib.h" 2 3 # 1 "/usr/include/sys/cdefs.h" 1 3 # 100 "/usr/include/sys/cdefs.h" 3 # 76 "/usr/include/stdlib.h" 2 3 # 47 "tixImgXpm.c" 2 # 1 "/usr/include/stdio.h" 1 3 # 1 "/usr/include/sys/types.h" 1 3 # 1 "/usr/include/machine/endian.h" 1 3 # 92 "/usr/include/machine/endian.h" 3 # 108 "/usr/include/machine/endian.h" 3 # 48 "/usr/include/sys/types.h" 2 3 # 1 "/usr/include/machine/types.h" 1 3 # 100 "/usr/include/sys/types.h" 2 3 # 166 "/usr/include/sys/types.h" 3 # 43 "/usr/include/stdio.h" 2 3 # 356 "/usr/include/stdio.h" 3 # 48 "tixImgXpm.c" 2 # 1 "/usr/include/string.h" 1 3 # 49 "tixImgXpm.c" 2 # 1 "/usr/include/ctype.h" 1 3 # 1 "/usr/include/runetype.h" 1 3 # 51 "/usr/include/ctype.h" 2 3 # 185 "/usr/include/ctype.h" 3 # 50 "tixImgXpm.c" 2 # 1 "/usr/include/sys/stat.h" 1 3 # 1 "/usr/include/sys/time.h" 1 3 # 118 "/usr/include/sys/time.h" 3 # 1 "/usr/include/time.h" 1 3 # 119 "/usr/include/sys/time.h" 2 3 # 50 "/usr/include/sys/stat.h" 2 3 # 52 "tixImgXpm.c" 2 # 1 "/usr/include/fcntl.h" 1 3 # 109 "/usr/include/fcntl.h" 3 # 53 "tixImgXpm.c" 2 # 1 "/usr/include/unistd.h" 1 3 # 1 "/usr/include/sys/unistd.h" 1 3 # 41 "/usr/include/unistd.h" 2 3 # 54 "tixImgXpm.c" 2 # 1 "/usr/local/include/tk.h" 1 # 1 "/usr/local/include/tcl.h" 1 # 67 "/usr/local/include/tcl.h" # 115 "/usr/local/include/tcl.h" # 356 "/usr/local/include/tcl.h" # 381 "/usr/local/include/tcl.h" # 25 "/usr/local/include/tk.h" 2 # 1 "/usr/X11R6/include/X11/Xlib.h" 1 # 1 "/usr/X11R6/include/X11/X.h" 1 # 345 "/usr/X11R6/include/X11/X.h" # 56 "/usr/X11R6/include/X11/Xlib.h" 2 # 1 "/usr/X11R6/include/X11/Xfuncproto.h" 1 # 59 "/usr/X11R6/include/X11/Xlib.h" 2 # 1 "/usr/X11R6/include/X11/Xosdefs.h" 1 # 60 "/usr/X11R6/include/X11/Xlib.h" 2 # 1 "/usr/include/stddef.h" 1 3 # 71 "/usr/X11R6/include/X11/Xlib.h" 2 # 32 "/usr/local/include/tk.h" 2 # 55 "tixImgXpm.c" 2 # 1 "/usr/X11R6/include/X11/Xutil.h" 1 # 56 "tixImgXpm.c" 2 and this is all get compiling it, tixImgXpm.c: In function `ImgXpmGetData': tixImgXpm.c:384: warning: `data' might be used uninitialized in this function tixImgXpm.c:385: warning: `isAllocated' might be used uninitialized in this function (oh and dont blame the author, i put the -Wall there :) > Any clues?? Well could be an old tcl.h/tk.h, or something to do with the version of X on your system(?), or the system itself(??) or a .h from some other port in /usr/local/include that got picked up instead of a system one... if you find out what it was let me know, if not send me your preprocessor output (that cc -E command, preferably gzip'd) maybe then i can make a better guess... > > --Steve ATB Juergen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606201620.SAA05232>