Thread View: news.software.nn
3 messages
3 total messages
Started by pking
Wed, 18 Aug 1999 00:00
Re: Compilation Problems: nn-tk (fwd)
Author: pking
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
70 lines
3011 bytes
3011 bytes
---------- Forwarded message ----------
Date: Wed, 18 Aug 1999 05:53:40 -0400 (EDT)
From: "pking@idirect.com" <pking@idirect.com>
To: Toivo Pedaste <toivo@ucs.uwa.edu.au>
Subject: Re: Compilation Problems: nn-tk
On Wed, 18 Aug 1999, Toivo Pedaste wrote:
: Date: Wed, 18 Aug 1999 13:41:45 +0800
: From: Toivo Pedaste <toivo@ucs.uwa.edu.au>
: To: pking@idirect.com
: Newsgroups: news.software.nn
: Subject: Re: Compilation Problems: nn-tk
:
: Does it compile with the new libraries
Version 15.x goes so far. I just tried version 16.4 (the latest?), to
get you some fresh error messages. The compilation died after
attempting to compile the first source file, nn.c (having compiled
libuu.a):
gcc: cannot specify -o with -c or -S and multiple compilations
The command line was parsed very strngely:
gcc -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ \
1 / -I/usr/local/src/tcl7.6/ 1 / -c nn.c -o nn.o
Note the stray "1" and "/", which both occur twice
So, I corrected ymakefile so that CFLAGS is set to:
CFLAGS = -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ \
-I/usr/local/src/tcl7.6/
The error message now is:
make[1]: Entering directory `/usr/local/src/nn-tk.16.4'
gcc -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ -I/usr/local/src/tcl7.6/ -c nn.c -o nn.o
In file included from config.h:444,
from nn.c:7:
global.h:187: macro `strchr' used without args
make[1]: *** [nn.o] Error 1
make[1]: Leaving directory `/usr/local/src/nn-tk.16.4'
make: *** [all] Error 2
=====================
In version 15.0, the compilation goes as far as the creation of
libuu.a, but crashes again in an attempt to compile nn.c:
gcc -Iconf -g -O -I/usr/include -c nn.c -o nn.o
In file included from config.h:433,
from nn.c:7:
global.h:186: macro `strchr' used without args
make[1]: *** [nn.o] Error 1
make[1]: Leaving directory `/usr/local/src/nn'
make: *** [all] Error 2
:
: --
: Toivo Pedaste Email: toivo@ucs.uwa.edu.au
: University Computing Services, Phone: +61 8 9 380 2605
: University of Western Australia Fax: +61 8 9 380 1109
: "The time has come", the Walrus said, "to talk of many things"...
:
Re: Compilation Problems: nn-tk (fwd)
Author: Paul E J King
Date: Wed, 18 Aug 1999 00:00
Date: Wed, 18 Aug 1999 00:00
90 lines
3947 bytes
3947 bytes
Sorry, Toivo: I was in a rush when I wrote that response:
Corrections below:
"pking@idirect.com" wrote:
> ---------- Forwarded message ----------
> Date: Wed, 18 Aug 1999 05:53:40 -0400 (EDT)
> From: "pking@idirect.com" <pking@idirect.com>
> To: Toivo Pedaste <toivo@ucs.uwa.edu.au>
> Subject: Re: Compilation Problems: nn-tk
>
> On Wed, 18 Aug 1999, Toivo Pedaste wrote:
>
> : Date: Wed, 18 Aug 1999 13:41:45 +0800
> : From: Toivo Pedaste <toivo@ucs.uwa.edu.au>
> : To: pking@idirect.com
> : Newsgroups: news.software.nn
> : Subject: Re: Compilation Problems: nn-tk
> :
> : Does it compile with the new libraries
>
>
This first compilation is under version 16.4, specifying the latest Tcl/Tk libraries under "config.h",
by uncommenting the "tklib line. Here is the result on a freshly-installed, un-edited library (save for
config.h):
gcc -Iconf -g -O -I/usr/include -c nn.c -o nn.o
In file included from config.h:440,
from nn.c:7:
global.h:186: macro `strchr' used without args
make[1]: *** [nn.o] Error 1
make[1]: Leaving directory `/usr/local/src/nn-tk.16.4'
make: *** [all] Error 2
In other words, the same error all over again. I noticed that you have #included "strings.h", so I am
not sure why it dies on "strchr".
> Version 15.x goes so far. I just tried version 16.4 (the latest?), to
> get you some fresh error messages. The compilation died after
> attempting to compile the first source file, nn.c (having compiled
> libuu.a):
>
> gcc: cannot specify -o with -c or -S and multiple compilations
>
> The command line was parsed very strngely:
>
> gcc -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ \
> 1 / -I/usr/local/src/tcl7.6/ 1 / -c nn.c -o nn.o
>
> Note the stray "1" and "/", which both occur twice. Also, I
> So, I corrected ymakefile so that CFLAGS is set to:
>
> CFLAGS = -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ \
> -I/usr/local/src/tcl7.6/
>
> The error message now is:
>
> make[1]: Entering directory `/usr/local/src/nn-tk.16.4'
> gcc -Iconf -O -I/usr/include/ -I/usr/local/src/tk4.2/ -I/usr/local/src/tcl7.6/ -c nn.c -o nn.o
> In file included from config.h:444,
> from nn.c:7:
> global.h:187: macro `strchr' used without args
> make[1]: *** [nn.o] Error 1
> make[1]: Leaving directory `/usr/local/src/nn-tk.16.4'
> make: *** [all] Error 2
>
> =====================
> In version 15.0, the compilation goes as far as the creation of
> libuu.a, but crashes again in an attempt to compile nn.c:
>
> gcc -Iconf -g -O -I/usr/include -c nn.c -o nn.o
> In file included from config.h:433,
> from nn.c:7:
> global.h:186: macro `strchr' used without args
> make[1]: *** [nn.o] Error 1
> make[1]: Leaving directory `/usr/local/src/nn'
> make: *** [all] Error 2
>
> :
> : --
> : Toivo Pedaste Email: toivo@ucs.uwa.edu.au
> : University Computing Services, Phone: +61 8 9 380 2605
> : University of Western Australia Fax: +61 8 9 380 1109
> : "The time has come", the Walrus said, "to talk of many things"...
> :
Re: Compilation Problems: nn-tk (fwd)
Author: Toivo Pedaste
Date: Thu, 19 Aug 1999 00:00
Date: Thu, 19 Aug 1999 00:00
13 lines
1080 bytes
1080 bytes
I've put a version of nn-tk on ftp://ftp.uwa.edu.au/pub/nn/nn-tk It fixes the compile problem and has some other minor fixes -- Toivo Pedaste Email: toivo@ucs.uwa.edu.au University Computing Services, Phone: +61 8 9 380 2605 University of Western Australia Fax: +61 8 9 380 1109 "The time has come", the Walrus said, "to talk of many things"...
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads