🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Frank J. T. Wojcik Fri, 31 Oct 1997 00:00
Tin - 1.3 BETA compilation woes (long)
#36834
Author: Frank J. T. Wojcik
Date: Fri, 31 Oct 1997 00:00
105 lines
4268 bytes
<!--

I am desperately trying to get tin 971018 to compile on my Linux
1.2.13 box using gcc 2.6.3 (no, neither of these can be upgraded. If
this *is* the problem, please let me know). For the most part,
everything goes fine. config.c, however, will just *not* compile. It
all comes down to the fact that makecfg doesn't seem to be designed
for the copy of tincfg.tbl I've got (details below), nor can I find a
matching set via any web search or FTPSearch.

(I fully expect this to be a FAQ, but I've done everything I know how,
and I just can't fix this, nor find any reference to this problem.)

Anyway, makecfg.c becomes makecfg just fine. It chews on tincfg.tbl
w/o any errors. It produces a garbage tincfg.h as follows:

/* This file is generated by MAKECFG */

#ifndef TINTBL_H
#define TINTBL_H 1

/* Macros for defining symbolic offsets that can be ifdef'd */
#undef OINX
#undef OVAL
#undef OEND
#undef OTYP

#ifdef lint
#       define OINX(T, M) 0 /* 'lint -c' cannot be appeased */
#       define OVAL(T, M) char M;
#       define OEND(T, M) char M;
#       define OTYP struct
#else
#       ifdef CPP_DOES_CONCAT
#               define OINX(T, M) T ## M
#               define OVAL(T, M) T ## M,
#               define OEND(T, M) T ## M
#               define OTYP enum
#       else
#               define OINX(T, M) \
                        (((int)&(((T*)0)->M))/ \
                         ((int)&(((T*)0)->Q1) - (int)&(((T*)0)->s_MAX)))
#               define OVAL(T, M) char M;
#               define OEND(T, M) char M;
#               define OTYP struct
#       endif
#endif

enum option_enum {
        OPT_
,
        OPT_    default_savedir                 OPT_STRING
,
        OPT_    default_auto_save               OPT_ON_OFF
,
        OPT_    mark_saved_read                 OPT_ON_OFF
,
        OPT_    default_post_proc_type          txt_post_process POST_PROC_UUD_EXT_ZIP+1
,
        OPT_    process_only_unread             OPT_ON_OFF
,

This is obviously crap of the highest quality, and gcc happily gives
me pages of errors to confirm this.

My tincfg.tbl looks like:

;   Project   : tin - a Usenet reader
;   Module    : tincfg.tbl
;   Author    : Thomas E. Dickey <dickey@clark.net>
;   Created   : 01.11.96
;   Updated   :
;   Notes     : #defines and structs for config.c
;   Copyright 1996 by Thomas E. Dickey
;               You may  freely  copy or  redistribute  this software,
;               so  long as there is no profit made from its use, sale
;               trade or  reproduction.  You may not change this copy-
;               right notice, and it must be included in any copy made

        default_savedir                 OPT_STRING
        default_auto_save               OPT_ON_OFF
        mark_saved_read                 OPT_ON_OFF
        default_post_proc_type          txt_post_process POST_PROC_UUD_EXT_ZIP+1        process_only_unread             OPT_ON_OFF
        prompt_followupto               OPT_ON_OFF

and makecfg.c expects 3 columns IIRC, so this, too, is glaringly wrong.
Some possibly helpful sums:

fjw2:/usr/local/src/tin-971018/src# sum makecfg.c tincfg.tbl tincfg.h
42582     9 makecfg.c
20173     4 tincfg.tbl
12302    21 tincfg.h

It looks like I just need to find the correct tincfg.tbl, but I can't.
I can easily supply any additional infomarion if needed. Please help
me fix whatever is wrong!

-- 
Frank J. T. Wojcik     "| <- You must be smarter than this stick to ride
                        the Internet." - Mike Handler, Bev White     O-
--> If you cannot see the body of this post, you are probably trying to read
news/mail with a web browser, and deserve what you get.

Re: Tin - 1.3 BETA compilation woes (long)
#36828
Author: Frank J. T. Wojcik
Date: Fri, 31 Oct 1997 00:00
33 lines
1932 bytes
T.E.Dickey (dickey@clark.net) wrote:
: Frank J. T. Wojcik <fwojcik@monmouth.com> wrote:
: : I am desperately trying to get tin 971018 to compile on my Linux
: : 1.2.13 box using gcc 2.6.3 (no, neither of these can be upgraded. If
: that (gcc 2.6.3) is probably the problem.  I've tested mostly with gcc 2.7.2
: (and a number of other compilers).  I've heard nothing good about 2.6.3
: (so I skipped that release - I've used 2.4.5, 2.5.8, 2.7.0 etc).

I see. I'll look into upgrading to 2.7.2, but I don't think it'll
happen.

: your example indicates that gcc 2.6.3 token concatenation isn't working
: properly, or that my configure script misdiagnoses it (that's the root
: problem).  try changing the #define that turns on CPP_DOES_CONCAT in
: include/autoconf.h, to see if it's capable of the alternative.

Hmm. Interesting. Let's see what happens.....

Nope. No difference at all in either the generated tincfg.h or the
error messages produced by gcc.

(CPP_DOES_CONCAT was 1, I changed it to 0).

Any other clues?

-- 
Frank J. T. Wojcik     "| <- You must be smarter than this stick to ride
                        the Internet." - Mike Handler, Bev White     O-
--> If you cannot see the body of this post, you are probably trying to read
news/mail with a web browser, and deserve what you get.

Re: Tin - 1.3 BETA compilation woes (long)
#36835
Author: T.E.Dickey
Date: Fri, 31 Oct 1997 00:00
35 lines
1964 bytes
Frank J. T. Wojcik <fwojcik@monmouth.com> wrote:
: I am desperately trying to get tin 971018 to compile on my Linux
: 1.2.13 box using gcc 2.6.3 (no, neither of these can be upgraded. If
that (gcc 2.6.3) is probably the problem.  I've tested mostly with gcc 2.7.2
(and a number of other compilers).  I've heard nothing good about 2.6.3
(so I skipped that release - I've used 2.4.5, 2.5.8, 2.7.0 etc).

well, this is the choice:
: #       ifdef CPP_DOES_CONCAT
: #               define OINX(T, M) T ## M
: #               define OVAL(T, M) T ## M,
: #               define OEND(T, M) T ## M
: #               define OTYP enum
: #       else
: #               define OINX(T, M) \
:                         (((int)&(((T*)0)->M))/ \
:                          ((int)&(((T*)0)->Q1) - (int)&(((T*)0)->s_MAX)))
: #               define OVAL(T, M) char M;
: #               define OEND(T, M) char M;
: #               define OTYP struct
: #       endif
: #endif

your example indicates that gcc 2.6.3 token concatenation isn't working
properly, or that my configure script misdiagnoses it (that's the root
problem).  try changing the #define that turns on CPP_DOES_CONCAT in
include/autoconf.h, to see if it's capable of the alternative.

-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey

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