🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217506

Building slrn on Slackware 12.0 (was: [slrn] colourise headers)

#217506
From: Rudy Taraschi
Date: Fri, 07 Mar 2008 05:55
49 lines
3828 bytes
andrew wrote:

> > BTW, a Slack 12 install is probably coming this weekend on my
> > son's new computer, so I'll take a look soon.
> 
> I will be very interested to see how you go with installing slrn
> on this computer. I had a frustrating time getting any of the
> Slackware people interested in this problem other than
> acknowledging it as a bug.

I can confirm your findings.  Basically, there's an older
slang.h in one of the gcc directories.  If you do a "cpp -v"
you'll see the default search path.

Basically, we have two viable options, both of which affect system
files.  I think both are legitimate as they fix the system
permanentlys, although my choice is Option 1.  There is no reason
to sentimentally try to keep a broken system.

  Option 1) permanently delete the slang.h file in the gcc directory

  Option 2) cp /usr/include/slang.h /usr/local/include

Note that Option 2 is not very different from installing a local
copy of slang.

My humble suggestion for your personal SlackBuild is first fix
your system permanently using one of the above choices, then
remove those few lines that skirt around the problem in your build
script.

If you *really* want to keep the system as-delivered, then you
have two other options.  Both will work, but are not recommended!

  Option 3) patch chkslang.c so as not to fail if it receives a
  mismatch, but only print a warning.  The rest of the build will
  happen with the 2.0.6 slang.h, but it's so close to the 2.0.7
  version that slrn will compile and link without fatal errors.

  Option 4) add the following to your SlackBuild (1) cp
  /usr/include/slang.h to the slrn src directory (2) ./configure
  --with-slanginc=./ and (3) patch the code to change all instances
  of #include <slang.h> to #include "slang.h" - not elegant at all.

I hope this inconsistency is fixed in slackware-current, which uses
s-lang 2.1.3.

-- 
R/T
Technical Details
Message-ID: <slrnft1m04.nrt.rudy@news.motzarella.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
References: <9631471233a843486b334cc2f84954f0@mixmaster.it> <20080304063433.544@usenet.piggo.com> <slrnfssa8m.mfc.rudy@news.motzarella.org> <20080305151617.155@usenet.piggo.com> <slrnfsscr3.mh7.rudy@news.motzarella.org> <20080305165945.676@ilium.andrews-corner.org> <slrnfstch5.mtk.rudy@news.motzarella.org> <20080306065528.120@ilium.andrews-corner.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnft1m04.nrt.rudy@news.motzarella.org>
Subject: Building slrn on Slackware 12.0 (was: [slrn] colourise headers)
Date: Fri, 07 Mar 2008 05:55:30 +0000
From: Rudy Taraschi <rudy@this.address.is.invalid>
References: <9631471233a843486b334cc2f84954f0@mixmaster.it> <20080304063433.544@usenet.piggo.com> <slrnfssa8m.mfc.rudy@news.motzarella.org> <20080305151617.155@usenet.piggo.com> <slrnfsscr3.mh7.rudy@news.motzarella.org> <20080305165945.676@ilium.andrews-corner.org> <slrnfstch5.mtk.rudy@news.motzarella.org> <20080306065528.120@ilium.andrews-corner.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 49
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: feeder.motzarella.org
 U2FsdGVkX196JQMfB+w4+/Us+IffcMhtecXpTndKGVg0krV8SJdMPzk1v+XTtzcTOSpFrgaFer8PWIPtJnfUsQMZ5+g5FWyzjfMTgP5ElADnbE+NEcnQHV32VtCpbtN1/zWom9t1SIc=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Fri, 7 Mar 2008 05:55:30 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1/w8iQxscwT+G9jyUv+T5m0onAocu1SM6M=
X-Face: (WrD*bX*:"j.$(|G/9Wky*T3hTx&09g_~|H3=5[WK$o8oQHIuw0@'Z.-{uz+O{/OQ<:yD
 quEpI!LJG_jn#a+=drl'V:8{a\WI*iSDIU9xV`bHsN+[y_P1QN-,=fTY4dP:5*z8G?; =v(*g0As)X
 c^t6p#OO6d05Tg/}i,).V-O;|[PH/T9*bcANx/A>m)cVi_Y
Cancel-Lock: sha1:IrLEAtylfv3OqSogwwp4KdKFvkA=
User-Agent: slrn/pre0.9.9-97/rt (Linux)
X-Files: The truth is out there