Article View: news.software.nntp
Article #11438Re: Error compiling INN 1.5 b1
From: Heiko W.Rupp
Date: Sat, 05 Oct 1996 00:00
Date: Sat, 05 Oct 1996 00:00
58 lines
2707 bytes
2707 bytes
In <325518B3.1589@uni-paderborn.de>, Matthias Hovestadt wrote:
:|Hello!
:|
:|When I try to compile INN 1.5 b1 under SunOS 5.5, I get the following
:|error:
:|
:|gcc -g -DSUNOS5 -o innd art.o cc.o chan.o his.o icd.o innd.o lc.o nc.o
:|newsfeeds.o ng.o proc.o rc.o site.o tcl.o perl.o ../libinn.a
:|-L/usr/local/lib -lresolv+ -lnsl -lsocket -lelf
:|Undefined first referenced
:| symbol in file
:|dbzwritethrough his.o
This is the usual thing ...
From 5.1 of the INN-FAQ:
Subject: (5.1) ld.so: Undefined symbol: _dbzwritethrough
> Everything compiles correctly, but when I try to test rc.local I get:
>
> hermes# sh /usr/local/etc/rc.news
> ld.so: Undefined symbol: _dbzwritethrough
>
> What am I doing wrong?
This means that you are using a $INN/lib/dbz.c file that hasn't been
patched with the $INN/lib/dbz.pch patch.
The patching is automatic. Running "make" should do the patch without
you even noticing. To force the code to be re-patched (i.e. copy the
original to dbz.c and apply the patch to it), simply delete
$INN/lib/dbz.c and run the usual "make". The Makefile does everything for you.
Why might the patch fail and leave you with an unpatched dbz.c?
1) You don't have Larry Wall's (or the FSF's) "patch" program
installed. It is available at ftp://prep.ai.mit.edu/pub/gnu/patch-2.1.tar.gz
2) Most C++ compilers based on USL's cfront come with a program called
"patch" that does something completely different than Larry Wall's (or
the FSF's) "patch" program. If your path is configured so that this
program is found before Larry Wall's (or the FSF's) "patch" program,
you will get an unpatched dbz.c. To fix this, delete $INN/lib/dbz.c,
change your path, and do the usual "make". If this file is deleted the
Makefile will do everything for you.
See also section "5.2 The DBZ package" of the Install.ms document.
--
Heiko W.Rupp hwr@pilhuhn.de
INN FAQ can be found in ftp://ftp.xlink.net/pub/news/docs/
Stoppt den Kinderwahnsinn !! -- Esst nur deutsche Kinder !!
Technical Details
Message-ID:
<slrn55chhc.53t.hwr@pilhuhn.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<325518B3.1589@uni-paderborn.de>Show Full Headers
Complete Article Headers
Message-ID: <slrn55chhc.53t.hwr@pilhuhn.de> Subject: Re: Error compiling INN 1.5 b1 Date: Sat, 05 Oct 1996 00:00:00 +0000 From: hwr@pilhuhn.de (Heiko W.Rupp) References: <325518B3.1589@uni-paderborn.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 187791222 Organization: The Home Of The Pilhuhn Reply-to: hwr@pilhuhn.de Newsgroups: news.software.nntp