This is from the current CVS:
% make
...
In file included from config.h:629,
from /home/mo/project/openssh_cvs/includes.h:20,
from /home/mo/project/openssh_cvs/scp.c:77:
/home/mo/project/openssh_cvs/defines.h:208: warning: redefinition of
`clock_t'
/usr/include/time.h:60: warning: `clock_t' previously declared here
gcc -o scp scp.o -L. -L/usr/local/ssl/lib -L/usr/local/ssl -lssh
-lopenbsd-compat -ldl -lnsl -lz -lutil -lpam -lcrypto
./libssh.a(log.o): In function `fatal':
/home/mo/project/openssh_cvs/log.c:51: undefined reference to `do_log'
./libssh.a(log.o): In function `error':
/home/mo/project/openssh_cvs/log.c:63: undefined reference to `do_log'
./libssh.a(log.o): In function `log':
/home/mo/project/openssh_cvs/log.c:74: undefined reference to `do_log'
./libssh.a(log.o): In function `verbose':
/home/mo/project/openssh_cvs/log.c:85: undefined reference to `do_log'
./libssh.a(log.o): In function `debug':
/home/mo/project/openssh_cvs/log.c:96: undefined reference to `do_log'
./libssh.a(log.o):/home/mo/project/openssh_cvs/log.c:105: more undefined
references to `do_log' follow
collect2: ld returned 1 exit status
make: *** [scp] Error 1
I am building on a Red Hat Linux 6.2 box.
Mo DeJong
Red Hat Inc
On Wed, 10 Jan 2001, Mo DeJong wrote:> This is from the current CVS: > > % make > ... > > In file included from config.h:629, > from /home/mo/project/openssh_cvs/includes.h:20, > from /home/mo/project/openssh_cvs/scp.c:77: > /home/mo/project/openssh_cvs/defines.h:208: warning: redefinition of > `clock_t'No.> I am building on a Red Hat Linux 6.2 box.Same here. -d -- | ``We've all heard that a million monkeys banging on | Damien Miller - | a million typewriters will eventually reproduce the | <djm at mindrot.org> | works of Shakespeare. Now, thanks to the Internet, / | we know this is not true.'' - Robert Wilensky UCB / http://www.mindrot.org
mouring at etoh.eviladmin.org
2001-Jan-11 07:11 UTC
Is anyone else getting this build error?
On Wed, 10 Jan 2001, Mo DeJong wrote:> This is from the current CVS: > > % make > ... > > In file included from config.h:629, > from /home/mo/project/openssh_cvs/includes.h:20, > from /home/mo/project/openssh_cvs/scp.c:77: > /home/mo/project/openssh_cvs/defines.h:208: warning: redefinition of > `clock_t'I moved clock_t detection from news4-posix.h into a general defination.> /usr/include/time.h:60: warning: `clock_t' previously declared hereHmm... Why did the test work fine under NeXT and Linux and fail under Cygwin. It looks like they all have clock_t defined in <time.h> Ermm....