Article View: news.software.nntp
Article #18786Re: actived portability patches
From: Dan Foster
Date: Thu, 26 Jun 1997 00:00
Date: Thu, 26 Jun 1997 00:00
42 lines
2340 bytes
2340 bytes
In article <slrn5r5o7b.6h4.kevin@worf.netins.net>, Kevin Houle <kevin@netins.net> wrote: >In article <5orsd3$81o$1@news.wco.com>, paul@yummyspam.wco.com wrote: >> >>> I'll make sure Joe gets a copy of these patches, as he might want to >>> include >>> them in a future release of actived. I've successfully compiled the >>> patched >>> version on Solaris 2.4, Solaris 2.5.1, SunOS 4.1.4, Linux 2.0.30, and >>> OpenBSD 2.1, so I think it's damn near portable to any UNIX you can throw >>> at it now. News if your success or failure with these patches is quite >>> welcome. > >DEC UNIX 3.2C using DEC's cc results in : >sh# make >cc -I../include -g -DNOV_MMAP -DNOV_UNORDERED -c actived.c >cc -I../include -g -DNOV_MMAP -DNOV_UNORDERED -c group.c >cc -I../include -g -DNOV_MMAP -DNOV_UNORDERED -c udp.c >cc -I../include -g -DNOV_MMAP -DNOV_UNORDERED -c activedstats.c >cc -g -o actived actived.o group.o udp.o activedstats.o ../libinn.a >ld: >Unresolved: >daemon >*** Exit 1 >Stop. > >What's that daemon() function all about? It's a BSD function - not sure if you have that in any of the libraries in Digital Unix, but how I tackled the problem was to take the code from FreeBSD 2.2.2-RELEASE's libc function, and copy'n'pasted it into its own file, 'daemon.c' in the actived directory, added daemon.o and daemon.c to their respective lines in the Makefile, and did a 'make'. Mail me if you want a copy of daemon.c - it's not long, about a page of C code. I also posted it in this newsgroup a few hours ago. -Dan Foster Internet: dsf@frontiernet.net
Technical Details
Message-ID:
<5ov5af$1bkg$1@node17.cwnet.frontiernet.net>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:
<5orhi4$aak$1@synthemesc.insync.net> <5orsd3$81o$1@news.wco.com> <slrn5r5o7b.6h4.kevin@worf.netins.net>Show Full Headers
Complete Article Headers
Message-ID: <5ov5af$1bkg$1@node17.cwnet.frontiernet.net> Subject: Re: actived portability patches Date: Thu, 26 Jun 1997 00:00:00 +0000 From: dsf@node6.frontiernet.net (Dan Foster) References: <5orhi4$aak$1@synthemesc.insync.net> <5orsd3$81o$1@news.wco.com> <slrn5r5o7b.6h4.kevin@worf.netins.net> 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: 252848600 Distribution: inet X-Trace: 867375247 44688 dsf@node6.frontiernet.net 205.232.174.25 Organization: Frontier Internet, A reliable part of your life Newsgroups: news.software.nntp