Thread View: news.software.readers
2 messages
2 total messages
Started by Frank Slootweg
Fri, 21 Jan 2000 00:00
tin 1.4.0 on NT: (Cygwin B20) Linking errors.
Author: Frank Slootweg
Date: Fri, 21 Jan 2000 00:00
Date: Fri, 21 Jan 2000 00:00
45 lines
3164 bytes
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)! :-)
Re: tin 1.4.0 on NT: (Cygwin B20) Linking errors.
Author: Frank Slootweg
Date: Tue, 25 Jan 2000 00:00
Date: Tue, 25 Jan 2000 00:00
37 lines
2323 bytes
2323 bytes
Urs Jan?en <urs@buil.tin.org> wrote:
> In <869n32$bke$1@news.neth.hp.com>,
> Frank Slootweg <franks@neth.hp.com> wrote:
>> I am trying to compile/link tin 1.4.0 on Windows NT 4.0 with Cygwin
>> B20, but get linking errors.
>>> ../pcre/libpcre.a(study.o)(.text+0x9f9):study.c: undefined reference to `_im
p__pcre_malloc'
>>> collect2: ld returned 1 exit status
>>> make: *** [tin.exe] Error 1
>
> add -DSTATIC to the CFLAGS (i.e. in src/Makefile or in $CFLAGS) -
> that should fix the problem (and is documented in README.WIN in the
> 1.4.1-release from dec. 1st last year).
Thanks! I had already tried with -DSTATIC because that was already in
the 1.4.0 version of the README.WIN. However *earlier*, I had used your
older (pre-1.4.0) notes [1], which did *not* mention -DSTATIC. While I
*did* redo the configure after adding -DSTATIC (I am not a complete
idiot, you know! :-)), the make/link still failed.
After reading your response, I redid the exports, configure and make,
but again the link failed. But, because you (normally :-)) know what you
are 'talking' about, and your response 'sounded' so sure, I removed
everything (i.e. all the files which were created/modified after
extracting the tar archive) and started from scratch, and now, again
with -DSTATIC, the link succeeded.
My only conclusion can be that apparently some of the earlier
configure/make stuff 'stuck', even after re-doing the configure and the
make.
Thanks again. I now have a tin.exe waiting to be tried out.
[1] Your January 29, 1999 article <78rr9u$4k4$1@news.hamburg.pop.de>
"Re: Tin for Windows or DOS." in this group.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads