I'd like to be able to provide NT binaries, but now is not
the time to try to freeze, build and test standalone NT binaries.
The upgrade to gcc-2.95.1 caused various minor problems.
Once 0.7.2 is out (no date yet), then it will be time to look at
producing NT binaries. I've built installers for CVS and SSH under
NT, and it is non-trivial. Many NT users expect shrinkwrapped
software, so the installer needs to be right.
This problem:
> In file included from ../../../../src/octtools/vem/bags/bags.c:44:
> ../include/general.h:1: parse error before `!'
> ../include/general.h:1: parse error at `..'
Is probably caused by symbolic links. My guess is that
include/general.h is a symbolic link, which is causing the problem.
Under Cygwin, symbolic links are sort of hacked in. I'm not sure
why this would be affecting your installation, but not mine.
Make sure that your files are not mounted via samba, and that you are
running make from a cygwin bash window.
What is the contents of include/general.h?
If you use the type command, you might see something that starts with
a !. I don't have a Ptolemy Classic tree on the laptop I'm using
right now, but you an use the type command from the MSDOS command
window to look at the contents of the file:
D:\TMP>type general.h
!<symlink>foo
The real way to solve these sorts of things is to use the C
preprocessor to track down the issue. Appendix A of the Ptolemy
Classic User's manual has some info, see
http://ptolemy.eecs.berkeley.edu/ptolemyclassic/almagest/docs/user/html/install.doc5.html#
Using cpp to diagnose .h file problems
One workaround would be to just copy the octtools .h files
into the tree at the proper location, rather than relying on symbolic
links.
I think if you solve this problem, then many of the other errors
will go away.
> /usr/X11R6.4/include/X11/Xlib.h:3340: ANSI C++ forbids declaration
> `XPutImage' with no type
> /usr/X11R6.4/include/X11/Xlib.h:3399: ANSI C++ forbids declaration
> `XQueryColor' with no type
I have not seen this sort of problem lately with NT, but under Solaris
with Openwin and gcc-2.95.1, I added the following to config-sol2.mk:
# -isystem is necessary for gcc-2.95.1 and Openwindows, otherwise we get:
# /usr/openwin/include/X11/Xlib.h:1894: ANSI C++ forbids declaration
# `XSetTransientForHint' with no type
X11_INCSPEC = -isystem /usr/openwin/include
You may need to use something similar.
I have another task on my plate today and tomorrow, but I hope to
revist the NT build next week.
-Christopher
--------
Hello,
thanks for comments.
I meant only ptolemy final binaries :
- I'was able to install all other binaries according to instructions:
- cygwin 20.1
- X11R6.4 binaries
- Starnet X server (I couldn't test it under ptolemy, but it seems like
fairly good - free version has to be restarted after 2 hours).
Now if some more experienced developer tests such configuration and is able
to compile binaries, why not contribute them. It doesn't have to be exactly
like that, but maybe one (fairly tested and good) configuration could be
presented.
At some stage, when compiling under cygwin is succesful, maybe win sources
could be momentarily 'freezed' till another sucessful NT compile.
Now to my compiling:
I'm including some highlights from errors from make.out, but I'm afraid
that my compiling stops at early stages, so maybe it'll take too much time
from all of us (especially ptolemy guys).
highlights form make.out :
making header in Packages
making header in avl
make[3]: Nothing to be done for `header'.
making header in cp
make[3]: Nothing to be done for `header'.
making header in da
make[3]: Nothing to be done for `header'.
making header in errtrap
make[3]: Nothing to be done for `header'.
making header in fang ....
In file included from ../../../../src/octtools/vem/bags/bags.c:44:
../include/general.h:1: parse error before `!'
../include/general.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/bags/bags.c:47:
../include/message.h:1: parse error before `!'
../include/message.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/bags/bags.c:48:
../../include/oct.h:55: parse error before `octCoord'
../../include/oct.h:55: warning: type defaults to `int' in declaration of
`octCoord'
../../include/oct.h:55: warning: data definition has no type or storage
class
../../include/oct.h:67: parse error before `octId'
../../include/oct.h:67: warning: type defaults to `int' in declaration of
`octId'
../../include/oct.h:67: warning: data definition has no type or storage
class
../../include/oct.h:115: parse error before `int32'
../../include/oct.h:115: warning: no semicolon at end of struct or union
../../include/oct.h:117: parse error before `}'
../../include/oct.h:123: parse error before `int32'
../../include/oct.h:123: warning: no semicolon at end of struct or union
../../include/oct.h:123: warning: no semicolon at end of struct or union
../../include/oct.h:126: parse error before `id'
../../../../src/octtools/vem/bags/bags.c:209: storage size of `parentBag'
isn't known
../../../../src/octtools/vem/bags/bags.c:209: storage size of `primary'
isn't known
../../../../src/octtools/vem/bags/bags.c:2: warning: `SccsId' defined but
not used
make[3]: *** [bags.o] Error 1
make[2]: *** [bags/bags.o] Error 2
gcc -fwritable-strings -Wall -Wsynth -Wno-non-virtual-dtor -g -DPTNT
-DPT_NO_TIMER -DUSE_DIRENT_H -DNO_SYS_SIGLIST -DPT_ERRNO_IS_A_FUNCTION
-I../include -I../bitmaps -I../../include -I../../../../src/compat/ptolemy
-I/usr/X11R6.4/include -c
./../../../src/octtools/vem/buffers/bufinternal.c
In file included from
./../../../src/octtools/vem/buffers/bufinternal.h:45,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../include/ansi.h:1: parse error before `!'
../include/ansi.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/buffers/buffer.h:44,
from
./../../../src/octtools/vem/buffers/bufinternal.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../include/ansi.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/buffers/buffer.h:45,
from
./../../../src/octtools/vem/buffers/bufinternal.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../include/general.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/buffers/buffer.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../include/tech.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/buffers/buffer.h:47,
from
./../../../src/octtools/vem/buffers/bufinternal.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../include/bindings.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/buffers/buffer.h:48,
from
./../../../src/octtools/vem/buffers/bufinternal.h:46,
from
./../../../src/octtools/vem/buffers/bufinternal.c:43:
../../../../src/octtools/vem/buffers/open.c:56: parse error before
`get_sprop'
../../../../src/octtools/vem/buffers/open.c:56: warning: type defaults to
`int' in declaration of `get_sprop'
../../../../src/octtools/vem/buffers/open.c:56: warning: data definition
has no type or storage class
gcc -fwritable-strings -Wall -Wsynth -Wno-non-virtual-dtor -g -DPTNT
-DPT_NO_TIMER -DUSE_DIRENT_H -DNO_SYS_SIGLIST -DPT_ERRNO_IS_A_FUNCTION
-DCUR_VER=\"8-2\" -I../include -I../bitmaps -I../../include
-I../../../../src/compat/ptolemy -I/usr/X11R6.4/include -c
./../../../src/octtools/vem/dispatch/bindings.c
In file included from ../../../../src/octtools/vem/dispatch/bindings.c:117:
../include/general.h:1: parse error before `!'
../include/general.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/dispatch/bindings.h:44,
from ../../../../src/octtools/vem/dispatch/bindings.c:118:
../include/ansi.h:1: parse error at `..'
In file included from ../../../../src/octtools/vem/dispatch/bindings.h:45,
from ../../../../src/octtools/vem/dispatch/bindings.c:118:
../include/general.h:1: parse error at `..'
In file included from /usr/X11R6.4/include/X11/Xlib.h:50,
from ../../../../src/octtools/vem/dispatch/bindings.h:46,
from ../../../../src/octtools/vem/dispatch/bindings.c:118:
/usr/X11R6.4/include/X11/X.h:77: parse error before `Window'
/usr/X11R6.4/include/X11/X.h:77: warning: type defaults to `int' in
declaration of `Window'
/usr/X11R6.4/include/X11/X.h:77: warning: data definition has no type or
storage class
/usr/X11R6.4/include/X11/X.h:78: parse error before `Drawable'
/usr/X11R6.4/include/X11/X.h:78: warning: type defaults to `int' in
declaration of `Drawable'
/usr/X11R6.4/include/X11/X.h:78: warning: data definition has no type or
storage class
/
/usr/X11R6.4/include/X11/Xlib.h:3340: ANSI C++ forbids declaration
`XPutImage' with no type
/usr/X11R6.4/include/X11/Xlib.h:3399: ANSI C++ forbids declaration
`XQueryColor' with no type
/usr/X11R6.4/include/X11/Xlib.h:3408: ANSI C++ forbids declaration
`XQueryColors' with no type
/usr/X11R6.4/include/X11/Xlib.h:3425: ANSI C++ forbids declaration
`XQueryKeymap' with no type
/usr/X11R6.4/include/X11/Xlib.h:3452: ANSI C++ forbids declaration
`XQueryTextExtents' with no type
/usr/X11R6.4/include/X11/Xlib.h:3465: ANSI C++ forbids declaration
`XQueryTextExtents16' with no type
/usr/X11R6.4/include/X11/Xlib.h:3483: ANSI C++ forbids declaration
`XRaiseWindow' with no type
/
making itcldocs in java
echo "Nothing need be done for in ptolemy/plot)"
Nothing need be done for in ptolemy/plot)
make[1]: Target `install' not remade because of errors.
make: *** [install] Error 2
make: Target `ntbuild' not remade because of errors.
--------
----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list. Please send administrative
mail for this list to: [EMAIL PROTECTED]