🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Matthias Hovestadt Fri, 04 Oct 1996 00:00
Error compiling INN 1.5 b1
#11429
Author: Matthias Hovestadt
Date: Fri, 04 Oct 1996 00:00
30 lines
1578 bytes
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
ld: fatal: Symbol referencing errors. No output written to innd
*** Error code 1
make: Fatal error: Command failed for target `innd'
Current working directory /home/inn-1.5b1/innd
*** Error code 1
make: Fatal error: Command failed for target `all'
Could not build INN.  Fix any problems and start again.


I've got no idea where this funtion is defined. Compiling INN 1.4 with a
similar config.data works fine. What have I got to do to fix this
problem? Is there anything left to include?


     Ciao,
            Matthias

Re: Error compiling INN 1.5 b1
#11438
Author: Heiko W.Rupp
Date: Sat, 05 Oct 1996 00:00
58 lines
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 !!


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