bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Clean build of inetutils on Solaris - possible?


From: David Mathog
Subject: [bug-inetutils] Clean build of inetutils on Solaris - possible?
Date: Tue, 31 Dec 2002 11:53:56 -0800

I've tried to build inetutils 1.4.0 and 1.4.2 on Solaris (5.8)
using gcc 3.0.3 and neither goes to completion.  

I tried longest with 1.4.2.

First it couldn't find "error.h", which is needed by xmalloc.c.
Probably best to eliminate the usage of this function (see below).
For now I copied that into the top level from a linux system
and tried again, but it stopped at:

if gcc -DHAVE_CONFIG_H -I. -I. -I..  -DPATH_TTY_PFX=\"/dev/\"
-DPATH_DEVNULL=\"/dev/null\"  -I../include    -g -O2 -MT setenv.o -MD
-MP -MF ".deps/setenv.Tpo" \
  -c -o setenv.o `test -f 'setenv.c' || echo './'`setenv.c; \
then mv ".deps/setenv.Tpo" ".deps/setenv.Po"; \
else rm -f ".deps/setenv.Tpo"; exit 1; \
fi
setenv.c: In function `setenv':
setenv.c:53: `environ' undeclared (first use in this function)

To work around that I modified setenv.c with this blecherous
hack (POSIX usage for environ - it has to be declared external
somewhere):

#ifndef HAVE_GNU_LD
# define __environ      environ
extern char **environ;
#endif

That let the make run down to this:

gcc  -g -O2   -o telnetd  telnetd.o pty.o term.o utility.o state.o
termstat.o slc.o -L../libinetutils -L../libtelnet -linetutils -ltelnet
-lncurses  -lcrypt  -lz -lsocket -lresolv -lnsl 
../libinetutils/libinetutils.a(xmalloc.o): In function `xalloc_die':
/usr/common/src/inetutils-1.4.2/libinetutils/xmalloc.c:70: undefined
reference to `error'

I don't know how to work around this error, so I'm stuck, at
least as far as a full build goes, but all I need is rsh.

So dropped into that subdirectory after all of the above (hoping
enough was built) and did "make" and it built a working rsh
(near as I can tell).  Even with my modified "multinode" rsh
which is here:


ftp://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/rsh.c

Thanks


David Mathog
address@hidden
Manager, Sequence Analysis Facility, Biology Division, Caltech



reply via email to

[Prev in Thread] Current Thread [Next in Thread]