🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44415

Re: SLRN: compilation problems Solaris 2.5.1

#44415
From: Beito
Date: Wed, 11 Nov 1998 00:00
279 lines
12942 bytes
John E. Davis <davis@space.mit.edu> wrote:
> On 11 Nov 1998 18:27:00 GMT, Beito <mabeito@mtu.edu>
> wrote:
> >slrn0.9.5.4 doesn't compile properly on solaris 2.5.1, and I
> >don't think I've seen anything posted here reguarding it.  Here's
> >the error that it's giving.
> >
> >cd /home/fafac/mabeito/slrn/src/objs; gcc -c -g -O2 -fno-strength-reduce  
> >-I/usr/X11R6/include -Dunix -I/usr/include    /home/fafac/mabeito/slrn
> >/ src/misc.c
> >/home/fafac/mabeito/slrn/src/misc.c: In function `slrn_message':
> >/home/fafac/mabeito/slrn/src/misc.c:340: `__builtin_va_alist' undeclared 
> >(first use in this function)
> 
> The real problem is that gcc is not installed properly on your system.
> The work-around is to remove -I/usr/include from your CFLAGS variable
> in slrn/src/Makefile.

Okay, I tried that, but it isn't even in my Makefile under CFLAGS.  It's
under SLANGINC.  Here's the my Makefile.  What's really wierd is that
0.9.5.3 compiled cleanly and 0.9.5.4 is giving the va errors. Once finals
are done, I'll finally be able to do some serious checking to see what
the problems are, but it's going to be hell for the next week.

(some lines are wrapped...)

-------------
# Generated automatically from Makefile.in by configure.
# Unix Makefile for slrn                               -*- sh -*-
#---------------------------------------------------------------------------
# This file is divided into six configurable sections.  The last two sections
# are optional: Section 5 deals with setting up slrn to read the server name 
# from a file.  If you are compiling this on Linux and you want it to work 
# with 'term', look at the 6th section.
#-----------------------------------------------------------------------------
# 1. Choose a C compiler.  It must understand prototypes.
#-----------------------------------------------------------------------------
CC = gcc
CFLAGS = -g -O2 -fno-strength-reduce  -I/usr/X11R6/include
LDFLAGS = 
#  Note: gcc -O2 is buggy under Linux.  If you use it, include the
#        -fno-strength-reduce flag!!
#-----------------------------------------------------------------------------
# 2. On a few systems, additional libraries are required.
#-----------------------------------------------------------------------------
MISCLIBS = -lsocket  -lnsl 
#MISCLIBS = -lnsl -lsocket                             # Solaris
#MISCLIBS = -ltermcap                                  # NeXT

#-----------------------------------------------------------------------------
# 3. Directory where the slang library, slanglib.a, is located.
#    BUILD SLANG FIRST!!!!  If you do not have it, get it from the same place
#    you picked up slrn.  The current home is space.mit.edu:/pub/davis/slang.
#-----------------------------------------------------------------------------
#Location of slang.h
SLANGINC = /usr/include#
#Location of libslang.a
SLANGLIB = /usr/lib#
# Note: The relative path names should be done with respect to OBJDIR.
#SLANGLIB = ../../../slang/$(ARCH)elfobjs#    Location of shared elf library
#SLANGINC = ../../../slang/src#               Location of slang.h
#SLANGLIB = $(SLANGINC)/$(ARCH)objs#       Location of libslang.a


#-----------------------------------------------------------------------------
# 4. Location where object files are placed (Absolute pathnames!!)
#-----------------------------------------------------------------------------
OBJDIR = /home/fafac/mabeito/slrn/src/objs
SRCDIR = /home/fafac/mabeito/slrn/src
#-----------------------------------------------------------------------------
# 5. If you want to read the server from a file, uncomment the following
#    lines and edit it as appropriate.  See INSTALL for more information.
#    It is also possible to provide defaults for other variables such as the
#    HOSTNAME, etc...  by editing the slrnfeat.h file.
#-----------------------------------------------------------------------------
#NNTPSERVERFILE = -DNNTPSERVER_FILE=\"/usr/local/lib/news/nntp_server\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"/usr/local/lib/news\"
#SLRNLIBDIR = -DSLRN_LIB_DIR=\"$(HOME)/lib/slrn\"

#----------------------------------------------------------------------------
# 6.  Uncomment the following lines for Linux Term compatability.
#MISCLIBS += -ltermnet
#MISCINCLUDES = -include /usr/local/include/termnet.h

#---------------------------------------------------------------------------
# Installation
#---------------------------------------------------------------------------
INSTALL = ../autoconf/install.sh -c
INSTALL_DATA = ${INSTALL} -m 644
prefix = /usr/local
exec_prefix = ${prefix}
BINDIR = ${exec_prefix}/bin
DOCDIR = $(prefix)/doc/slrn
MANDIR = ${prefix}/man
MACRODIR = ${prefix}/share/slrn
#----------------------------------------------------------------------------
# Nothing below here should require changing.
#----------------------------------------------------------------------------
SHELL = /bin/sh
OBJS =  $(OBJDIR)/art.o $(OBJDIR)/chmap.o $(OBJDIR)/editscore.o 
$(OBJDIR)/group.o $(OBJDIR)/grplens.o $(OBJDIR)/hash.o $(OBJDIR)/help.o 
$(OBJDIR)/interp.o $(OBJDIR)/menu.o $(OBJDIR)/mime.o $(OBJDIR)/misc.o 
$(OBJDIR)/post.o $(OBJDIR)/score.o $(OBJDIR)/server.o $(OBJDIR)/sortdate.o 
$(OBJDIR)/slrn.o $(OBJDIR)/startup.o $(OBJDIR)/ttymsg.o $(OBJDIR)/util.o 
$(OBJDIR)/uudecode.o $(OBJDIR)/xover.o $(OBJDIR)/slrndir.o 
$(OBJDIR)/version.o $(OBJDIR)/print.o
OFILES =  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

EXEC = slrn
CONFIG_H = config.h
ALL_CFLAGS = $(CFLAGS) -Dunix -I$(SLANGINC) \
 $(MISCINCLUDES) $(NNTPSERVERFILE) $(SLRNLIBDIR)
EXECLIBS = -L$(SLANGLIB) -lslang $(MISCLIBS) -lm
DOT_O_DEPS = slrnfeat.h
server_O_DEP = clientlib.c spool.c nntp.c sltcp.c nntplib.c
chmap_O_DEP = chmap.h charmaps.h
chkslang_O_DEP = config.h Makefile

slrnpull_O_DEP = score.c xover.c hash.c
slrnpull_DEPS = $(OBJDIR)/util.o $(OBJDIR)/ttymsg.o $(OBJDIR)/version.o\
 $(OBJDIR)/sltcp.o $(OBJDIR)/nntplib.o $(OBJDIR)/slrndir.o

slrnpull_LIBS = $(slrnpull_DEPS)

UUDECODE_OBJS = $(OBJDIR)/util.o $(OBJDIR)/ttymsg.o $(OBJDIR)/slrndir.o

#
COMPILE_CMD = $(CC) -c $(ALL_CFLAGS)
#
all: $(EXEC)
$(EXEC): $(OBJDIR) $(CONFIG_H) slangversion $(OBJDIR)/$(EXEC)
	@echo $(EXEC) created in $(OBJDIR)
$(OBJDIR)/$(EXEC): $(OBJS)
	cd $(OBJDIR); $(CC) $(OFILES) -o $(EXEC) $(LDFLAGS) $(EXECLIBS)
#
$(OBJDIR):
	-mkdir $(OBJDIR)
#
$(CONFIG_H) : $(SRCDIR)/sysconf.h
	/bin/cp $(SRCDIR)/sysconf.h $(CONFIG_H)
	touch $(CONFIG_H)
#
slangversion: $(OBJDIR)/chkslang
	$(OBJDIR)/chkslang $(EXEC) 10003
#
$(OBJDIR)/chkslang: $(OBJDIR)/chkslang.o
	$(CC) $(OBJDIR)/chkslang.o -o $(OBJDIR)/chkslang
uudecode: uudecode.c $(UUDECODE_OBJS)
	$(CC) $(ALL_CFLAGS) -DSTANDALONE $(LDFLAGS) -o uudecode uudecode.c 
$(UUDECODE_OBJS) $(EXECLIBS)
	touch uudecode.c
clean:
	/bin/rm -f $(OBJDIR)/* *~
distclean: clean
	/bin/rm -rf $(OBJDIR) Makefile sysconf.h
install: all $(BINDIR)
	$(INSTALL) -m 755 -o root -g root $(OBJDIR)/slrn $(BINDIR)
	-$(INSTALL) -m 755 -o root -g root $(OBJDIR)/slrnpull $(BINDIR)
	$(INSTALL) -d $(DOCDIR) -m 755 -o root -g root
	$(INSTALL) -m 644 -o root -g root ../doc/* $(DOCDIR)
	$(INSTALL) -m 644 -o root -g root ../COPYRIGHT $(DOCDIR)
	$(INSTALL) -m 644 -o root -g root ../COPYING $(DOCDIR)
	$(INSTALL) -m 644 -o root -g root ../README $(DOCDIR)
	$(INSTALL) -m 644 -o root -g root ../changes.txt $(DOCDIR)
	$(INSTALL) -m 644 -o root -g root ../doc/slrn.1 $(MANDIR)/man1
	$(INSTALL) -d $(DOCDIR)/slrnpull -m 755 -o root -g root
	$(INSTALL) -m 644 -o root -g root ../slrnpull/* $(DOCDIR)/slrnpull
	$(INSTALL) -d $(MACRODIR) -m 755 -o root -g root
	$(INSTALL) -m 644 -o root -g root ../macros/*.sl $(MACRODIR)
$(BINDIR):
	- ../mkinsdir.sh $(BINDIR)
# The symlinks target is for my own private use.  It simply creates the object
# directory as a symbolic link to a local disk instead of an NFS mounted one.
symlinks:
	-/bin/rm -f $(ARCH)objs
	mkdir -p $(HOME)/sys/$(ARCH)/objs/slrn/src
	ln -s $(HOME)/sys/$(ARCH)/objs/slrn/src $(ARCH)objs
#---------------------------------------------------------------------------
# Rules (automatically generated)
#---------------------------------------------------------------------------

$(OBJDIR)/art.o : $(SRCDIR)/art.c $(DOT_O_DEPS) $(art_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/art.c

$(OBJDIR)/chmap.o : $(SRCDIR)/chmap.c $(DOT_O_DEPS) $(chmap_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/chmap.c

$(OBJDIR)/editscore.o : $(SRCDIR)/editscore.c $(DOT_O_DEPS) $(editscore_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/editscore.c

$(OBJDIR)/group.o : $(SRCDIR)/group.c $(DOT_O_DEPS) $(group_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/group.c

$(OBJDIR)/grplens.o : $(SRCDIR)/grplens.c $(DOT_O_DEPS) $(grplens_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/grplens.c

$(OBJDIR)/hash.o : $(SRCDIR)/hash.c $(DOT_O_DEPS) $(hash_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/hash.c

$(OBJDIR)/help.o : $(SRCDIR)/help.c $(DOT_O_DEPS) $(help_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/help.c

$(OBJDIR)/interp.o : $(SRCDIR)/interp.c $(DOT_O_DEPS) $(interp_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/interp.c

$(OBJDIR)/menu.o : $(SRCDIR)/menu.c $(DOT_O_DEPS) $(menu_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/menu.c

$(OBJDIR)/mime.o : $(SRCDIR)/mime.c $(DOT_O_DEPS) $(mime_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/mime.c

$(OBJDIR)/misc.o : $(SRCDIR)/misc.c $(DOT_O_DEPS) $(misc_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/misc.c

$(OBJDIR)/post.o : $(SRCDIR)/post.c $(DOT_O_DEPS) $(post_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/post.c

$(OBJDIR)/score.o : $(SRCDIR)/score.c $(DOT_O_DEPS) $(score_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/score.c

$(OBJDIR)/server.o : $(SRCDIR)/server.c $(DOT_O_DEPS) $(server_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/server.c

$(OBJDIR)/sortdate.o : $(SRCDIR)/sortdate.c $(DOT_O_DEPS) $(sortdate_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/sortdate.c

$(OBJDIR)/slrn.o : $(SRCDIR)/slrn.c $(DOT_O_DEPS) $(slrn_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/slrn.c

$(OBJDIR)/startup.o : $(SRCDIR)/startup.c $(DOT_O_DEPS) $(startup_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/startup.c

$(OBJDIR)/ttymsg.o : $(SRCDIR)/ttymsg.c $(DOT_O_DEPS) $(ttymsg_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/ttymsg.c

$(OBJDIR)/util.o : $(SRCDIR)/util.c $(DOT_O_DEPS) $(util_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/util.c

$(OBJDIR)/uudecode.o : $(SRCDIR)/uudecode.c $(DOT_O_DEPS) $(uudecode_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/uudecode.c

$(OBJDIR)/xover.o : $(SRCDIR)/xover.c $(DOT_O_DEPS) $(xover_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/xover.c

$(OBJDIR)/slrndir.o : $(SRCDIR)/slrndir.c $(DOT_O_DEPS) $(slrndir_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/slrndir.c

$(OBJDIR)/version.o : $(SRCDIR)/version.c $(DOT_O_DEPS) $(version_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/version.c

$(OBJDIR)/print.o : $(SRCDIR)/print.c $(DOT_O_DEPS) $(print_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/print.c

$(OBJDIR)/chkslang.o : $(SRCDIR)/chkslang.c $(DOT_O_DEPS) $(chkslang_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/chkslang.c

$(OBJDIR)/sltcp.o : $(SRCDIR)/sltcp.c $(DOT_O_DEPS) $(sltcp_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/sltcp.c

$(OBJDIR)/nntplib.o : $(SRCDIR)/nntplib.c $(DOT_O_DEPS) $(nntplib_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(SRCDIR)/nntplib.c

slrnpull : $(OBJDIR)/slrnpull
	@echo slrnpull created in $(OBJDIR)
$(OBJDIR)/slrnpull : $(OBJDIR)/slrnpull.o $(slrnpull_DEPS) $(EXECDEPS)
	$(CC) -o $(OBJDIR)/slrnpull $(LDFLAGS) $(OBJDIR)/slrnpull.o 
$(slrnpull_LIBS) $(EXECLIBS)
$(OBJDIR)/slrnpull.o : $(SRCDIR)/slrnpull.c $(DOT_O_DEPS) $(slrnpull_O_DEP)
	cd $(OBJDIR); $(COMPILE_CMD) $(slrnpull_INC) $(EXECINC) 
$(SRCDIR)/slrnpull.c


-- 
Matt Beito   mabeito@mtu.edu   http://www.csl.mtu.edu/~mabeito
"1 is equal to 2 for sufficiently large values of 1" -- Anonymous

Technical Details
Message-ID: <slrn74jqg0.7u3.mabeito@apollo.fa.mtu.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn74jm13.7n5.mabeito@apollo.fa.mtu.edu> <slrn74jn7n.m3q.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn74jqg0.7u3.mabeito@apollo.fa.mtu.edu>
Subject: Re: SLRN: compilation problems Solaris 2.5.1
Date: Wed, 11 Nov 1998 00:00:00 +0000
From: mabeito@mtu.edu (Beito)
References: <slrn74jm13.7n5.mabeito@apollo.fa.mtu.edu> <slrn74jn7n.m3q.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 410822694
Organization: Michigan Technological University
User-Agent: slrn/0.9.5.3 (UNIX)
Newsgroups: news.software.readers