🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #57029

tin 1.4.0 on NT: (Cygwin B20) Linking errors.

#57029
From: Frank Slootweg
Date: Fri, 21 Jan 2000 00:00
45 lines
3164 bytes
  I am trying to compile/link tin 1.4.0 on Windows NT 4.0 with Cygwin
B20, but get linking errors.

  I followed the instructions in README.WIN of the tin package, but 
did not use "--with-ncurses" for configure, because I do not have
ncurses. The configure succeeds, but the "cd src ; make" fails with:

[deleted]
> Linking tin.exe v1.4...
> gcc  -o ./tin.exe  ./active.o ./art.o ./attrib.o ./auth.o ./charset.o ./color.o ./config.o ./curses.o ./debug.o ./envarg.o ./feed.o ./filter.o ./getline.o ./gro up.o ./hashstr.o ./header.o ./help.o ./inews.o ./init.o ./joinpath.o ./lang.o ./ list.o ./mail.o ./main.o ./memory.o ./misc.o ./newsrc.o ./nntplib.o ./nrctbl.o .  /open.o ./page.o ./parsdate.o ./pgp.o ./post.o ./prompt.o ./read.o ./refs.o ./re gex.o ./rfc1521.o ./rfc1522.o ./save.o ./screen.o ./search.o ./select.o ./sigfil e.o ./signal.o ./strfti
me.o ./string.o ./tcurses.o ./thread.o ./wildmat.o ./xref .o   -L../pcre -lpcre    -ltermcap
> ../pcre/libpcre.a(study.o)(.text+0x9f9):study.c: undefined reference to `_imp__pcre_malloc'
> collect2: ld returned 1 exit status
> make: *** [tin.exe] Error 1

  I found many references to "pcre_malloc" (not to "_imp__pcre_malloc")
in the pcre subdirectory. I understand that pcre_malloc and pcre_free
are global variables which should be set to point to malloc and free.
However I do not know which component is responsible for that.

  I played around with the stuff in the pcre directory and also did a
make there, but got the same kind of linking errors for
"_imp__pcre_malloc" and "_imp__pcre_free", and do not know how to
proceed. (I only compile/link/install Open Source software and have very
limited and outdated programming experience.)

  It should be noted that this is the first time I am using Cygwin, so I
might well have a Cygwin problem. I can compile/link/run a simple "Hello
world!" program, but have not tried anything else, mainly because I do
not have anything else to try.

  Especially I am wondering if the library paths are correct. What does
the configure "--libdir=/usr/local/lib" option define? Where it *puts*
libraries, or where it expects to *find* libraries? The reason for this
question is that the Cygwin *.a libraries are in rather strange
(compared to UNIX) paths, i.e.
C:\cygnus\cygwin-b20\H-i586-cygwin32\i586-cygwin32\lib and
C:\cygnus\cygwin-b20\H-i586-cygwin32\lib.

  Looking forward to any suggestions on how to proceed.

P.S. As you can see in the header of this posting, I *did* manage to get
     tin 1.4.0 compiled/linked on UNIX (HP-UX)! :-)

Technical Details
Message-ID: <869n32$bke$1@news.neth.hp.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-mail

Show Full Headers
Complete Article Headers
Message-ID: <869n32$bke$1@news.neth.hp.com>
Subject: tin 1.4.0 on NT: (Cygwin B20) Linking errors.
Date: Fri, 21 Jan 2000 00:00:00 +0000
From: Frank Slootweg <franks@neth.hp.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-mail
X-Deja-AN: 575712399
Organization: NOYB
User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (HP-UX/B.10.20 (9000/847))
Newsgroups: news.software.readers