Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Compiling elog 2.0.4 on Solaris, posted by Christian Korschan on Mon Jul 8 21:01:00 2002 
    icon2.gif   Re: Compiling elog 2.0.4 on Solaris, posted by Stefan Ritt on Tue Jul 9 09:33:47 2002 
       icon2.gif   Re: Compiling elog 2.0.4 on Solaris, posted by Christian Korschan on Wed Jul 24 17:29:00 2002 
          icon2.gif   Re: Compiling elog 2.0.4 on Solaris, posted by Joe Nall on Sat Aug 3 17:35:39 2002 
             icon2.gif   Re: Compiling elog 2.0.4 on Solaris, posted by Stefan Ritt on Tue Aug 6 16:14:42 2002 
Message ID: 89     Entry time: Sat Aug 3 17:35:39 2002     In reply to: 84     Reply to this: 91
Icon: Reply  Author: Joe Nall  Author Email: joe.nall@inet.com 
Category: Request  OS:   ELOG Version:  
Subject: Re: Compiling elog 2.0.4 on Solaris 
> > > Comiling elogd 2.0.4 under Solaris obviously fails with
> > > 
> > > gcc  -o elog elog.c -lsocket -lnsl
> > > gcc  -o elogd elogd.c -lsocket -lnsl
> > > elogd.c: In function `ss_file_find':
> > > elogd.c:1372: `alphasort' undeclared (first use in this function)
> > > elogd.c:1372: (Each undeclared identifier is reported only once
> > > elogd.c:1372: for each function it appears in.)
> > > make: *** [elogd] Error 1
> > > 
> > > because alphasort is an ucb'ism which does not exist under SYSV
> > > 
> > > ... not very portable :-(
> > 
> > I was not aware of this. Actually, I don't need 'alphasort' so I removed 
it 
> > from the source. The update is at
> > 
> > http://midas.psi.ch/cgi-bin/cvsweb/elog/elogd.c
> > 
> > Please give it a try.
> 
> ok - i just continued with 2.0.5, but apparently it still has an UCB'ism
> (scandir) that does not work under SYSV:
> 
> $ make
> gcc -g -o elogd elogd.c -lsocket -lnsl
> Undefined                       first referenced
>  symbol                             in file
> scandir                             /tmp/ccy0Z3iV.o
> ld: fatal: Symbol referencing errors. No output written to elogd
> collect2: ld returned 1 exit status
> make: *** [elogd] Error 1
> $ egrep scandir elogd.c
>   n = scandir(path, &namelist, NULL, NULL);
> $ 
I am having the same experience with ELOG 2.0.5 and Solaris 8. Any work 
around woud be appreciated.
ELOG V3.1.5-fe60aaf