🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Frank Hahn Mon, 26 Apr 1999 00:00
Compiling slrn 0.9.5.5 on Solaris V2.4
#48232
Author: Frank Hahn
Date: Mon, 26 Apr 1999 00:00
53 lines
2548 bytes
I have a Sun running Solaris V2.4.  I tried to compile the new
0.9.5.5 version of slrn.

After editing the slrnfeat.h file like I have in the past, I tried
to compile the thing.  This is the error message I received:

-I/usr/openwin/include -Dunix -I/usr/local/include
 /home/dfh/temp/slrn/src/print.c
cd /home/dfh/temp/slrn/src/objs; gcc art.o chmap.o editscore.o group.o
grplens.o hash.o help.o interp.o menu.o mime.o misc.o post.o score.o server.o
sortdate.o slrn.o startup.o ttymsg.o util.o uudecode.o xover.o slrndir.o
version.o print.o -o slrn  -L/usr/local/lib -lslang -lsocket  -lnsl  -lm
Undefined			first referenced
 symbol  			    in file
sltcp_close_sltcp                   slrn.o
sltcp_open_sltcp                    slrn.o
ld: fatal: Symbol referencing errors. No output written to slrn
make[1]: *** [/home/dfh/temp/slrn/src/objs/slrn] Error 1
make[1]: Leaving directory `/home/dfh/temp/slrn/src'
make: *** [all] Error 2

I then went into the slrnfeat.h file and changed the following

from:

/* The sltcp interface is necessary for simultaneous tcp/ip connections. */
#define SLRN_USE_SLTCP          1

to:

/* The sltcp interface is necessary for simultaneous tcp/ip connections. */
#define SLRN_USE_SLTCP          0

Now it compiled successfully.

I don't know exactly what the above does or if it is important.  I thought
Mr. Davis might want to know.

I am using gcc version 2.7.2

I formatted the error message before posting.  I didn't know whether to
reformat the lines or not.  Slrn did not want me to post the long lines.
If this causes problems, I apologize.

I also use slrnpull to pull in newsgroups I want and use slrn to read
from that spool.

If any additional information would be helpful, let me know.

-- 
Frank Hahn

Re: Compiling slrn 0.9.5.5 on Solaris V2.4
#48221
Author: John E. Davis
Date: Mon, 26 Apr 1999 00:00
39 lines
2085 bytes
On Mon, 26 Apr 1999 21:33:39 GMT, Frank Hahn <fhahn@zdnetmail.com>
wrote:
>sltcp_close_sltcp                   slrn.o
>sltcp_open_sltcp                    slrn.o
>ld: fatal: Symbol referencing errors. No output written to slrn
>make[1]: *** [/home/dfh/temp/slrn/src/objs/slrn] Error 1
>make[1]: Leaving directory `/home/dfh/temp/slrn/src'
>make: *** [all] Error 2

I am 99% sure that you compiled it without NNTP support.  Here is a
patch:

--- slrn.c~	Sat Apr 24 20:17:34 1999
+++ slrn.c	Mon Apr 26 17:54:21 1999
@@ -815,7 +815,7 @@
    (void) slrn_reset_slang ();
 #endif
 
-#if SLRN_USE_SLTCP
+#if SLRN_USE_SLTCP && SLRN_HAS_NNTP_SUPPORT
    (void) sltcp_close_sltcp ();
 #endif
    lock_file (0);
@@ -1176,7 +1176,7 @@
 	else if (use_color == -1) SLtt_Use_Ansi_Colors = 0;
      }
 
-#if SLRN_USE_SLTCP
+#if SLRN_USE_SLTCP && SLRN_HAS_NNTP_SUPPORT
    /* This is necessary to ensure that gethostname works on Win32 */
    if (-1 == sltcp_open_sltcp ())
      slrn_exit_error ("Error initializing SLtcp interface");

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Re: Compiling slrn 0.9.5.5 on Solaris V2.4
#48236
Author: John E. Davis
Date: Mon, 26 Apr 1999 00:00
11 lines
1022 bytes
On Mon, 26 Apr 1999 21:33:39 GMT, Frank Hahn <fhahn@zdnetmail.com>
wrote:
>#define SLRN_USE_SLTCP          0
>
>Now it compiled successfully.

Did you disable NNTP support in slrnfeat.h?

--John

Re: Compiling slrn 0.9.5.5 on Solaris V2.4
#48245
Author: Frank Hahn
Date: Tue, 27 Apr 1999 00:00
66 lines
2931 bytes
On 26 Apr 1999 21:58:04 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On Mon, 26 Apr 1999 21:33:39 GMT, Frank Hahn <fhahn@zdnetmail.com>
>wrote:
>>sltcp_close_sltcp                   slrn.o
>>sltcp_open_sltcp                    slrn.o
>>ld: fatal: Symbol referencing errors. No output written to slrn
>>make[1]: *** [/home/dfh/temp/slrn/src/objs/slrn] Error 1
>>make[1]: Leaving directory `/home/dfh/temp/slrn/src'
>>make: *** [all] Error 2
>
>I am 99% sure that you compiled it without NNTP support.  Here is a
>patch:
>
>--- slrn.c~	Sat Apr 24 20:17:34 1999
>+++ slrn.c	Mon Apr 26 17:54:21 1999
>@@ -815,7 +815,7 @@
>    (void) slrn_reset_slang ();
> #endif
> 
>-#if SLRN_USE_SLTCP
>+#if SLRN_USE_SLTCP && SLRN_HAS_NNTP_SUPPORT
>    (void) sltcp_close_sltcp ();
> #endif
>    lock_file (0);
>@@ -1176,7 +1176,7 @@
> 	else if (use_color == -1) SLtt_Use_Ansi_Colors = 0;
>      }
> 
>-#if SLRN_USE_SLTCP
>+#if SLRN_USE_SLTCP && SLRN_HAS_NNTP_SUPPORT
>    /* This is necessary to ensure that gethostname works on Win32 */
>    if (-1 == sltcp_open_sltcp ())
>      slrn_exit_error ("Error initializing SLtcp interface");
>
Yes I did.  Here are the lines from the top of my slrnfeat.h file:

#define SLRN_HAS_PULL_SUPPORT   1
#define SLRN_HAS_NNTP_SUPPORT   0
#define SLRN_HAS_SPOOL_SUPPORT  1
#define SLRN_HAS_INEWS_SUPPORT  0

I think I tried to outsmart myself.  In the past, I think I had
left these alone or deleted INEWS_SUPPORT.  I was thinking that
since I was using slrn to read from the spool directory provided
by slrnpull, that I could do without the NNTP support.

If I change the above to:

#define SLRN_HAS_PULL_SUPPORT   1
#define SLRN_HAS_NNTP_SUPPORT   1
#define SLRN_HAS_SPOOL_SUPPORT  1
#define SLRN_HAS_INEWS_SUPPORT  0

it compiles fine.

Was I correct in thinking that I could do without NNTP support
if I read directly from a local spool or do I need to have NNTP
support at all times?  I was thinking that I would need NNTP
support if I was reading directly from a news server.

Thanks.

-- 
Frank Hahn

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