🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
10 messages
10 total messages Started by aos Wed, 25 Jun 1997 00:00
actived portability patches
#18722
Author: aos
Date: Wed, 25 Jun 1997 00:00
23 lines
1538 bytes
My portability patches to Joe Greco's nnrpd active file server (actived) are
now available.  You can find them at http://www.insync.net/~aos/actived/.

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.

Joe's original patch page (which has a bunch of other neat patches too) can
be found at http://www.nntp.sol.net/patches/.

Thanks Joe for being so helpful when I was working on these patches.

-- 
 Andrew Smith -- Sysadmin, Insync Internet Services |    PGP Fingerprint:
----------------------------------------------------| 2A 50 AE 6D 51 53 18 77
"A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C
 they hear may make them change."     --Gloria Gery |  (finger for full key)

Re: actived portability patches
#18691
Author: aos
Date: Wed, 25 Jun 1997 00:00
18 lines
1357 bytes
aos@insync.net wrote:
> Sounds like you're not compiling the udp.c that came with actived.  You
> need to compile it (just a 'make udp.o' should do it), and link it in with
> the rest.

(talking to myself again)...  Forgot to mention, that udp.o comes from the
actived source, not the nnrpd source.  Just add a nice little
../actived/udp.o to your link line for nnrpd (assuming you've got actived
in .., which you should).

-- 
 Andrew Smith -- Sysadmin, Insync Internet Services |    PGP Fingerprint:
----------------------------------------------------| 2A 50 AE 6D 51 53 18 77
"A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C
 they hear may make them change."     --Gloria Gery |  (finger for full key)

Re: actived portability patches
#18716
Author: paul
Date: Wed, 25 Jun 1997 00:00
26 lines
1556 bytes
aos@insync.net wrote:
> My portability patches to Joe Greco's nnrpd active file server (actived) are
> now available.  You can find them at http://www.insync.net/~aos/actived/.

> 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.

> Joe's original patch page (which has a bunch of other neat patches too) can
> be found at http://www.nntp.sol.net/patches/.

> Thanks Joe for being so helpful when I was working on these patches.

Absolutely fabulous! I'm up and running with actived. Thank you so much,
Joe and Andrew!

-- 
Paul Theodoropoulos     admin@wco.com     VP, West Coast Online, Inc.

   Crre-erivrjrq fghqvrf pbasvez: Gur Avprfg Thl ba gur Vagrearg

Re: actived portability patches
#18717
Author: aos
Date: Wed, 25 Jun 1997 00:00
18 lines
1300 bytes
Chris Wilson <cbw@atlantic.net> wrote:
> gcc  -o nnrpd article.o group.o commands.o misc.o newnews.o nnrpd.o  perl.o post
> .o loadave.o ../libinn.a -lutil -lcrypt
> group.c:107: Undefined symbol `_write_udp' referenced from text segment
<snip>

Sounds like you're not compiling the udp.c that came with actived.  You
need to compile it (just a 'make udp.o' should do it), and link it in with
the rest.

-- 
 Andrew Smith -- Sysadmin, Insync Internet Services |    PGP Fingerprint:
----------------------------------------------------| 2A 50 AE 6D 51 53 18 77
"A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C
 they hear may make them change."     --Gloria Gery |  (finger for full key)

Re: actived portability patches
#18731
Author: Chris Wilson
Date: Wed, 25 Jun 1997 00:00
30 lines
1920 bytes
aos@insync.net wrote:
: My portability patches to Joe Greco's nnrpd active file server (actived) are
: now available.  You can find them at http://www.insync.net/~aos/actived/.

Has anyone tried compiling this under FreeBSD 2.2.2? I'm getting the
following errors:

gcc  -o nnrpd article.o group.o commands.o misc.o newnews.o nnrpd.o  perl.o post
.o loadave.o ../libinn.a -lutil -lcrypt
group.c:107: Undefined symbol `_write_udp' referenced from text segment
group.c:125: Undefined symbol `_read_udp' referenced from text segment
group.c:331: Undefined symbol `_create_udp_socket' referenced from text segment
group.c:336: Undefined symbol `_connect_udp_socket' referenced from text segment
group.c:358: Undefined symbol `_write_udp' referenced from text segment
group.c:376: Undefined symbol `_read_udp' referenced from text segment
*** Error code 1

I couldn't find any libs with any references to those symbols. Any
suggestions? :)

Chris
-- 
-------------------------------------------------------------------------------
Chris B. Wilson (CW40)   | http://www.atlantic.net | Sales - 800-422-2936
Internet Connect Company | Quality Internet access | Support - 800-921-9328
cbw@atlantic.net         | throughout Florida      | Fax - 352-375-2702
-------------------------------------------------------------------------------

Re: actived portability patches
#18739
Author: aos
Date: Wed, 25 Jun 1997 00:00
16 lines
1232 bytes
paul@yummyspam.wco.com wrote:
> Absolutely fabulous! I'm up and running with actived. Thank you so much,
> Joe and Andrew!

Glad to hear it's working for you.  Remember, if it breaks, blame me, not
Joe.  :)  Joe did a fantastic job writing this.  I broke it enough to make
Solaris like it (after all, we all know that Solaris is very broken).

-- 
 Andrew Smith -- Sysadmin, Insync Internet Services |    PGP Fingerprint:
----------------------------------------------------| 2A 50 AE 6D 51 53 18 77
"A lot of people are afraid to listen, because what | F7 6C E9 2E E9 E1 59 2C
 they hear may make them change."     --Gloria Gery |  (finger for full key)

Re: actived portability patches
#18738
Author: Kevin Houle
Date: Thu, 26 Jun 1997 00:00
33 lines
1687 bytes
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.

I also has to reorder the #include's in actived.h so that
clibrary.h comes before libinn.h. Otherwise waitnb() comes
back as undefined.

What's that daemon() function all about?

Kevin


Re: actived portability patches
#18758
Author: Chris Wilson
Date: Thu, 26 Jun 1997 00:00
18 lines
1380 bytes
aos@insync.net wrote:
: (talking to myself again)...  Forgot to mention, that udp.o comes from the
: actived source, not the nnrpd source.  Just add a nice little
: ../actived/udp.o to your link line for nnrpd (assuming you've got actived
: in .., which you should).

That did it :) Thanks a bunch!

Chris
-- 
-------------------------------------------------------------------------------
Chris B. Wilson (CW40)   | http://www.atlantic.net | Sales - 800-422-2936
Internet Connect Company | Quality Internet access | Support - 800-921-9328
cbw@atlantic.net         | throughout Florida      | Fax - 352-375-2702
-------------------------------------------------------------------------------

Re: actived portability patches
#18786
Author: Dan Foster
Date: Thu, 26 Jun 1997 00:00
42 lines
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

Re: actived portability patches
#18795
Author: Saul Tannenbaum
Date: Fri, 27 Jun 1997 00:00
23 lines
1369 bytes
In article <slrn5r5o7b.6h4.kevin@worf.netins.net>, Kevin Houle <kevin@netins.net> wrote:

> I also has to reorder the #include's in actived.h so that
> clibrary.h comes before libinn.h. Otherwise waitnb() comes
> back as undefined.

> What's that daemon() function all about?

Just use the "portable" version mentioned earlier in the thread.

It compiles just fine on Digital Unix 3.0. 

	- Saul

-- 
Saul Tannenbaum, Manager, Academic Systems |"Every year, I get more and more
                stannenb@emerald.tufts.edu | cynical, but somehow I just can't
Tufts University Computing and 		   | keep up." - Lilly Tomlin
		Communications Services    |
	Finger for PGP Public Key	   |http://www.tufts.edu/~stannenb

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