bugzilla-daemon at mindrot.org
2002-Jan-23 06:16 UTC
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From djm at mindrot.org 2002-01-23 17:16 ------- AFAIK atexit() should only take one arg. It looks like configure might not be finding your libc atexit() and is using the compat macro in defines.h. What does configure report when it looks for atexit()? Ben, the compat macro looks wrong too. It is currently defined as: # define atexit(a, NULL) on_exit(a, NULL) shouldn't it be: # define atexit(a) on_exit(a, NULL) ?? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Jan-24 04:21 UTC
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From adrian at afsthumper.com 2002-01-24 15:21 ------- The configure report has both HAVE_XATEXIT and HAVE_ATEXIT commented out. It looks like so: /* If you have no atexit() but xatexit(), and want to use xatexit() */ /* #undef HAVE_XATEXIT */ and also /* Define if you have the 'atexit' function. */ /* #undef HAVE_ATEXIT */ Is there a library I'm missing? I'm not familiar with the atexit function and I'm not sure what I need to install to satisfy it. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Jan-24 04:39 UTC
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From djm at mindrot.org 2002-01-24 15:39 ------- What linux distribution are you using? What version of libc? Can you grep through /usr/include/stdlib.h for an atexit() definition? ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Jan-24 12:18 UTC
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From adrian at afsthumper.com 2002-01-24 23:18 ------- I am using Peanut Linux 8.4 (http://www.peanutlinux.org), which is just a stripped down version of linux that uses BSD-style init scripts. I am running kernel 2.2.19 with pretty standard features, nothing strange or experimental compiled in. I am using GLibc 2.2.4, libc6 ELF. The atexit definition(s) I have in stdlib.h are as follows: (I wasn't sure which one was more pertinent) /* Register a function to be called when 'exit' is called. */ extern int atexit __P ((void (*__func) (void))); /* Call all functions registered with 'atexit' and 'on_exit', in the reverse of the order in which they were registered perform stdio cleanup, and terminate program execution with STATUS. */ extern void exit __P ((int __status)) __attribute__ ((__noreturn__)); ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2002-Jan-26 13:59 UTC
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From adrian at afsthumper.com 2002-01-27 00:59 ------- After doing some research, and noticing that I get similar errors when compiling other software (like the GMP library), it looks like my problem may be GLibc and/or GCC related. When I try to compile GMP, I get undefined reference to 'atexit()'. It looks like a patch for this issue for GCC- 2.95.3 is available. Here are the links I used to come to this conclusion http://www.winehq.com/hypermail/wine- users/2001/06/0049.html http://sources.redhat.com/ml/libc-alpha/2001- 03/msg00048.html http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01187.html So, in short, it looks like the bug may not be with the SSH source, but with the tools I'm using. I will let you know if patching GCC resolves this problem so we can get this bug closed out. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.