🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9264

Re: Compilation Problems: nn-tk (fwd)

#9264
From: Paul E J King
Date: Wed, 18 Aug 1999 00:00
90 lines
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"...
> :


Technical Details
Message-ID: <37BA8BA1.8B26CA88@idirect.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <Pine.LNX.4.10.9908180555470.1455-100000@snoopy.schoreder.org>

Show Full Headers
Complete Article Headers
Message-ID: <37BA8BA1.8B26CA88@idirect.com>
Subject: Re: Compilation Problems: nn-tk (fwd)
Date: Wed, 18 Aug 1999 00:00:00 +0000
From: Paul E J King <pking@idirect.com>
References: <Pine.LNX.4.10.9908180555470.1455-100000@snoopy.schoreder.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 514224586
Content-Transfer-Encoding: 7bit
To: toivo@ucs.uwa.edu.au
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: 18 Aug 1999 10:26:28 -0400, ts7-4t-31.idirect.com
Organization: via Internet Direct
MIME-Version: 1.0
Newsgroups: news.software.nn