🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #66476

Re: Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated)

#66476
From: Rudy Taraschi
Date: Fri, 13 Oct 2000 00:00
124 lines
5049 bytes
davis@space.mit.edu (John E. Davis) wrote:

> This seems very complicated to me and I do not find it necessary
> to compile with my version of mingw32.

Leave it to me to overly complicate things :-)  Thanks; your method
worked for me!

For anyone that's stil interested, here's yet another updated version of
my mini-HOWTO.  Cheers!

                                          rudy

- --

Title:   Compiling Slang/Slrn on a PC
Version: 0.3
Author:  Rudy Taraschi - rudy at see aye eee dot see aye
Date:    13 October 2000


I've gotten Slang and Slrn to compile on both Cygwin and MinGW32 with
the following procedure.  For all I know, I could have broken every rule
in the book.  It may not be the right way of doing it, but it worked for
me.  Thanks to *The Master* (John E. Davis) for setting me straight on
the MinGW32 build instructions.


Setup
-----

I have an NT4 system with Cygwin 1.1.4 and MinGW32 2.95.2 (crtdll
version) installed.

To compile under MinGW32, I needed to set the Cygwin stuff to follow the
MinGW32 stuff in order to resolve various Unix commands typically found
in Makefiles (such as 'cp', 'ar', etc).  These commands are now resolved
by Cygwin.  For reference, my Cygwin path starts with:

  /usr/local/bin:/usr/bin:/bin: ....

I didn't have to set this up, it was magically set by the environment.
In order to compile under MinGW32, I needed to modify the mingw32.bat
file found in the MinGW32 home directory to add the Cygwin path
referenced above.  In my case, the path statement looks like this:


PATH=c:\mingw32\bin;c:\cygwin\usr\local\bin;c:\cygwin\usr\bin;c:\cygwin\bin;%PATH%

where c:\mingw32 is where I installed MinGW32 and c:\cygwin is where I
installed Cygwin.

To compile under Cygwin, simply launch a bash shell.  To compile under
MinGW32, open up a MS-DOS command prompt, run the newly modified
mingw32.bat file to set the path, and away you go.


Slang on Cygwin
---------------

  - unpack Slang 1.2.2 into a directory called slang (Note: unpack from
    Cygwin command line, not from WinZip).  I haven't gotten around to
    testing Slang 1.4.2 here yet ...
  - run configure without any options
  - add the following lines in src/sysconf.h

          #undef WIN32
          #undef _WIN32
          #undef __CYGWIN32__
          #undef __MINGW32__
          #undef __NT__

  - run make
  - run make install (Note: this installs in /usr and not /usr/local)


Slrn on Cygwin
--------------

  - unpack Slrn 0.9.6.3 into a directory at the same level as slang
    (Note: unpack from Cygwin command line, not from WinZip)
  - run configure without any options
  - add the following lines in src/sysconf.h

          int h_errno;

          #undef WIN32
          #undef _WIN32
          #undef __CYGWIN32__
          #undef __MINGW32__
          #undef __NT__

  - run make
  - run make slrnpull
  - strip src/objs/slrn.exe and src/objs/slrnpull.exe to shrink the
    executables
  - run make install


Slang on mingw32
----------------

  - unpack Slang 1.4.2 into a directory called slang (Note: unpack from
    mingw32 command line, not from WinZip)
  - run "mkmake WIN32 MINGW32 < makefile.all > ..\Makefile" from the
    'slang\src\mkfiles' directory
  - copy slconfig.h config.h
  - run make


Slrn on mingw32
---------------

  - unpack Slrn 0.9.6.3 into a directory at the same level as slang
    (Note: unpack from mingw32 command line, not from WinZip)
  - run make -f Makefile.g32
  - run make -f Makefile.g32 slrnpull.exe
  - strip src/slrn.exe and src/slrnpull.exe to shrink the executables
  - manually move them to somewhere in your path

That's it, that's all!


Technical Details
Message-ID: <39e718b4.6788210@142.39.20.3>
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
References: <8r9t27$355$1@thingy.apana.org.au> <slrn8thr2h.d7u.rickp@tc.niof.net> <slrn8u434b.7hv.fun@blowtorch.softcell.com.au> <slrn8u15ua.o18.rickp@tc.niof.net> <jnbE5.51$ln6.2335@news.flash.net> <slrn8u9q8l.mrb.fun@blowtorch.softcell.com.au> <slrn8u4v5j.7vm.fhahn@bart.fcjc.net> <d0ME5.1237$44.146136@nnrp3.clara.net> <slrn8u7ges.9a2.fhahn@bart.fcjc.net> <slrn8u8lbp.9a2.fhahn@bart.fcjc.net> <39e477c2.7589212@142.39.20.3> <slrn8u9uto.9a2.fhahn@bart.fcjc.net> <39e5b014.841439@142.39.20.3> <slrn8ucrt3.5qn.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <39e718b4.6788210@142.39.20.3>
Subject: Re: Compiling slang/slrn on a PC (was: slrn for Windows page slightly updated)
Date: Fri, 13 Oct 2000 00:00:00 +0000
From: rudy@cae.DELETE-THIS.ca.invalid (Rudy Taraschi)
References: <8r9t27$355$1@thingy.apana.org.au> <slrn8thr2h.d7u.rickp@tc.niof.net> <slrn8u434b.7hv.fun@blowtorch.softcell.com.au> <slrn8u15ua.o18.rickp@tc.niof.net> <jnbE5.51$ln6.2335@news.flash.net> <slrn8u9q8l.mrb.fun@blowtorch.softcell.com.au> <slrn8u4v5j.7vm.fhahn@bart.fcjc.net> <d0ME5.1237$44.146136@nnrp3.clara.net> <slrn8u7ges.9a2.fhahn@bart.fcjc.net> <slrn8u8lbp.9a2.fhahn@bart.fcjc.net> <39e477c2.7589212@142.39.20.3> <slrn8u9uto.9a2.fhahn@bart.fcjc.net> <39e5b014.841439@142.39.20.3> <slrn8ucrt3.5qn.davis@aluche.mit.edu>
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: 681138458
X-Complaints-To: usenet@news.cae.ca
X-Trace: dns3.cae.ca 971469482 2895 142.39.198.22 (13 Oct 2000 20:38:02 GMT)
Organization: CAE Electronics, Montreal
Reply-To: rudy@cae.DELETE-THIS.ca.invalid
NNTP-Posting-Date: 13 Oct 2000 20:38:02 GMT
Newsgroups: news.software.readers