*BSD News Article 54020


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!in2.uu.net!news.interlog.com!winternet.com!news
From: jdb@robigo.winternet.com (John D. Boggs)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Looking for hints on compiling CLisp
Date: 5 Nov 1995 13:52:58 GMT
Organization: StarNet Communications, Inc
Lines: 54
Message-ID: <47ifjq$s8c@blackice.winternet.com>
NNTP-Posting-Host: robigo.winternet.com
X-Newsreader: knews 0.9.2

I am trying to get CLisp to compile on FreeBSD-2.0.5-950622-SNAP, and
I am stymied.  At first I got 

  gcc -O -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
    -fomit-frame-pointer -O2 -Ireadline -c stream.c
  In file included from stream.d:11:
  /usr/include/stdio.h:243: warning: const declaration for `sys_nerr'
    follows non-const
  /usr/include/stdio.h:244: conflicting types for `sys_errlist'
  unix.d:28: previous declaration of `sys_errlist'
  stream.d: In function `listen_handle':
  stream.d:892: warning: implicit declaration of function `bzero'
  stream.d: In function `b_file_full_flush':
  stream.d:7296: warning: statement with no effect
  stream.d: In function `b_file_half_flush':
  stream.d:7310: warning: statement with no effect
  stream.d: In function `make_file_stream':
  stream.d:8767: warning: `art' might be used uninitialized in this
      function
  make: *** [stream.o] Error 1
  robigo: {14}

So I looked in /usr/include/stdio.h, and discovered that if
_ANSI_SOURCE is defined it won't declare sys_errlist or sys_nerr.  I
added that and came up with a parse error:

  gcc -O -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type
      -fomit-frame-pointer -O2 -D_ANSI_SOURCE -Ireadline -c stream.c
  In file included from lispbibl.d:1445,
                 from stream.d:5:
  unix.d:160: parse error before `*'
  stream.d: In function `listen_handle':
  stream.d:892: warning: implicit declaration of function `bzero'
  stream.d: In function `b_file_full_flush':
  stream.d:7296: warning: statement with no effect
  stream.d: In function `b_file_half_flush':
  stream.d:7310: warning: statement with no effect
  stream.d: In function `make_file_stream':
  stream.d:8767: warning: `art' might be used uninitialized in this
      function
  make: *** [stream.o] Error 1
  robigo: {17}

I've reached a stopping point, and wondered if anyone out there could
share with me how they got CLisp to compile for them.

TIA.

-- 

John D. Boggs            \ The great thing about human language is
jdb@robigo.winternet.com  \   that it prevents us from sticking to
                           \    the matter at hand.  -Lewis Thomas