🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by bg Fri, 30 Apr 1999 00:00
Using libstorage
#37166
Author: bg
Date: Fri, 30 Apr 1999 00:00
37 lines
1802 bytes
Greetings -

I am wondering how I would use the libstorage in another program to
access articles.  I have managed to get it to compile after a few
modifications, but I have no idea if I will hose my system by running
it.  Below are the changes I've made.  Please let me know what damage I
might do.  :-)  If the library isn't safe for use by programs outside
the INN package, I would be willing to make it so it is safe.

... in my program ...

#include "storage.h"
#include "libinn.h"

... in storage.h, because including clibrary.h resulted in even more
errors ...

typedef long OFFSET_T;
typedef int BOOL;
typedef pid_t PID_T;

... in my makefile - adding qio.o cleared up some linker (?) complaints
...

CFLAGS= -Wall -g -c -O2 -I../include -I../zlib/zlib
-I/usr/local/news/include -I
/usr/local/src/inn-2.2/include
LDFLAGS= -L../lib/ -L../zlib/zlib/ /usr/local/news/lib/libstorage.a
/usr/local/news/lib/libinn.a /usr/local/src/inn-2.2/storage/qio.o


TIA

Tom Hetrick


Re: Using libstorage
#37169
Author: thetrick
Date: Fri, 30 Apr 1999 00:00
43 lines
2073 bytes
Ugh, sorry, wrong address.  Need to get the squid anonymizer going. :-)

Please respond to thetrick@wizard.net if you can't respond to the
newsgroup.

Tom Hetrick

> Greetings -
>
> I am wondering how I would use the libstorage in another program to
> access articles.  I have managed to get it to compile after a few
> modifications, but I have no idea if I will hose my system by running
> it.  Below are the changes I've made.  Please let me know what damage I
> might do.  :-)  If the library isn't safe for use by programs outside
> the INN package, I would be willing to make it so it is safe.
>
> ... in my program ...
>
> #include "storage.h"
> #include "libinn.h"
>
> ... in storage.h, because including clibrary.h resulted in even more
> errors ...
>
> typedef long OFFSET_T;
> typedef int BOOL;
> typedef pid_t PID_T;
>
> ... in my makefile - adding qio.o cleared up some linker (?) complaints
> ...
>
> CFLAGS= -Wall -g -c -O2 -I../include -I../zlib/zlib
> -I/usr/local/news/include -I
> /usr/local/src/inn-2.2/include
> LDFLAGS= -L../lib/ -L../zlib/zlib/ /usr/local/news/lib/libstorage.a
> /usr/local/news/lib/libinn.a /usr/local/src/inn-2.2/storage/qio.o
>
> TIA
>
> Tom Hetrick


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