Article View: news.software.readers
Article #36834Tin - 1.3 BETA compilation woes (long)
From: Frank J. T. Wojcik
Date: Fri, 31 Oct 1997 00:00
Date: Fri, 31 Oct 1997 00:00
105 lines
4268 bytes
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.
Technical Details
Message-ID:
<63bqhn$m1d$1@news.monmouth.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <63bqhn$m1d$1@news.monmouth.com> Subject: Tin - 1.3 BETA compilation woes (long) Date: Fri, 31 Oct 1997 00:00:00 +0000 From: fwojcik@monmouth.com (Frank J. T. Wojcik) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 286110165 Organization: Monmouth Internet Newsgroups: news.software.readers