🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #4923

tin1.2PL1 patch for BSD-based systems

#4923
From: Colin Perkins
Date: Wed, 14 Jul 1993 16:15
41 lines
1859 bytes
Hi,

There is a problem in tin1.2PL1 when building on BSD based systems,
due to the lack of a getcwd function on these machines. When doing a
"make bsd" the build fails at the link stage with an undefined symbol
_getcwd, and defining -DDONT_HAVE_GETCWD in the CCOPTS of the makefile
doesn't help.

This can be solved by changing the file misc.c as follows:

[This is part of the very last function in misc.c]

--------------------------------------------------------------------

jerez:~/programs/tin/tin-1.21-next > diff misc.c misc.c.orig
1659,1667c1659,1660
<
< /*    [Modified 14-7-1993 csp@ohm.york.ac.uk]
<  *
<  *    getcwd (currentdir, sizeof (currentdir));
<  */
<       get_cwd(currentdir);
< /*
<  *    [End of modification]
<  */
---
>
>       getcwd (currentdir, sizeof (currentdir));

--------------------------------------------------------------------

This seems to solve the problem and allows tin to build okay. 

Hope this helps,
Colin


-- 
Colin Perkins 				
Computer Systems Engineering Group,	Email: csp@ohm.york.ac.uk
University of York, YO1 5DD, UK.	Phone: +44 904 432379
Technical Details
Message-ID: <1993Jul14.161530.17744@ohm.york.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!agate!doc.ic.ac.uk!pipex!bnr.co.uk!uknet!yorkohm!csp

Show Full Headers
Complete Article Headers
Message-ID: <1993Jul14.161530.17744@ohm.york.ac.uk>
Subject: tin1.2PL1 patch for BSD-based systems
Date: Wed, 14 Jul 1993 16:15:30 +0000
From: csp@ohm.york.ac.uk (Colin Perkins)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!agate!doc.ic.ac.uk!pipex!bnr.co.uk!uknet!yorkohm!csp
Newsgroups: news.software.readers
Summary: tin1.2PL1 bug fix
Keywords: tin newsreader
Organization: Computer Systems Engineering Group, University of York, UK.
X-Newsreader: TIN [version 1.2 PL1]
Lines: 41