> > > > 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.
I removed also scandir() in the current version (right now only in CVS). The
official release of 2.1.0 is planned for next week. |