Hello All I have problem with ssltelnet that I tried to install recently.
first I tried to install binary package from non-us.debian.org. I tried both stable and unstable ssltelnet crashed if I used -z ssl which I believe provides encryption Then I tried to get source package from the same place I am not very familiar with debian system of building package from source but I did it this way dpkg-source -x ssl*.dsc cd ssl*/ dpkg-build -b Then I get the following strange error gcc -c -g -O -I../../include -DHAVE_CONFIG_H -DLIBC_SCCS strdup.c strdup.c:13: parse error before &&' strdup.c:13: _len' undeclared here (not in a function) strdup.c:13: initializer element is not constant strdup.c:13: parse error before f' strdup.c:13: conflicting types for _retval' strdup.c:13: previous declaration of _retval' strdup.c:13: warning: data definition has no type or storage class strdup.c:13: parse error before }' strdup.c:18: ' undeclared here (not in a function) strdup.c:18: warning: initialization makes integer from pointer without a cast strdup.c:18: initializer element is not constant strdup.c:18: warning: data definition has no type or storage class strdup.c:19: parse error before ' make[2]: *** [strdup.o] Error 1 make[2]: Leaving directory /home/konst/ssl/ssltelnet-0.11.2/lib/libbsd' make[1]: *** [all] Error 2 make[1]: Leaving directory /home/konst/ssl/ssltelnet-0.11.2' the source file was very simple (see at the end of the message) I found that the problem was with -O switch of gcc, but I cannot understand why it is so I also don't understand why this package need it's own strdup and company. How it was build in the real life? Any help will be appreciated Konstantin PS I have slink upgraded partialy to unstable (glibc2.1 libc only) strdup.c : /* $Id: strdup.c,v 1.2 1996/01/31 10:02:49 martin Exp martin $ */ #ifndef lint static char vcid[] = "$Id: strdup.c,v 1.2 1996/01/31 10:02:49 martin Exp martin #endif /* lint */ #include <string.h> #include <malloc.h> #if defined(_AIX_) char *strdup(char *s) #else char *strdup(const char *s) #endif { char *new; new = malloc(strlen(s) + 1); strcpy(new, s); return new; }