search for: gai_strerror

Displaying 20 results from an estimated 203 matches for "gai_strerror".

2008 Feb 18
1
[PATCH] Build problem in current portable CVS
Hi, I just tried to build the latest portable code from CVS on Cygwin. I stumbled over a problem with the definitions of gai_strerror and ssh_gai_strerror. On systems not having gai_strerror, the fake-rfc2553.c file defines its own version of gai_strerror, and fake-rfc2553.h additionally has this definition of gai_strerror: #define gai_strerror(a) (ssh_gai_strerror(a)) OTOH, misc.c defines the function ssh_gai_strerror...
2003 Feb 22
0
[Bug 501] New: -current broken on AIX: conflicting types for gai_strerror
http://bugzilla.mindrot.org/show_bug.cgi?id=501 Summary: -current broken on AIX: conflicting types for gai_strerror Product: Portable OpenSSH Version: -current Platform: Other OS/Version: AIX Status: NEW Severity: normal Priority: P2 Component: Miscellaneous AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: dtu...
2003 Feb 14
0
Current CVS broken on AIX: conflicting types for `gai_strerrorĀ“
.../ssl/include -I/usr/local/include -DHAVE_CONFIG_H -c ../../openbsd-compat/bsd-arc4random.c In file included from ../../openbsd-compat/openbsd-compat.h:39, from ../../includes.h:169, from ../../openbsd-compat/bsd-arc4random.c:25: ../../openbsd-compat/fake-getaddrinfo.h:40: conflicting types for `gai_strerror? /usr/include/netdb.h:377: previous declaration of `gai_strerror? The fragment from fake-addrinfo.h is: #ifndef HAVE_GAI_STRERROR const char *gai_strerror(int ecode); #endif /* !HAVE_GAI_STRERROR */ Now on AIX (4.3.3 & 5.1, anyway), config.h defines HAVE_GAI_STRERROR, however defines.h tur...
2007 Nov 28
1
Cross-compiling asterisk-1.4 for Debian on a slug
...never defined make[1]: *** [dlfcn.o] Error 1 make[1]: Leaving directory `/home/user/down/optware/cs04q3armel/builds/asterisk' make: *** [/home/user/down/optware/cs04q3armel/builds/asterisk/.built] Error 2 I then removed the whole optware subdir and retried, this time with another error (?): gai_strerror.c:61: error: `EAI_IDN_ENCODE' undeclared here (not in a function) gai_strerror.c:61: error: initializer element is not constant gai_strerror.c:61: error: (near initialization for `values[16].code') gai_strerror.c:61: error: initializer element is not constant gai_strerror.c:61: error: (near...
2003 Feb 22
1
[Bug 501] -current broken on AIX: conflicting types for gai_strerror
http://bugzilla.mindrot.org/show_bug.cgi?id=501 ------- Additional Comments From dtucker at zip.com.au 2003-02-22 16:30 ------- Created an attachment (id=236) --> (http://bugzilla.mindrot.org/attachment.cgi?id=236&action=view) Define gai_strerror as "char *" as per RFC2133 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
2003 Sep 17
5
problems with 3.7.1p1 on IRIX (again)
Hi, I've seen a few messages re. problems with 3.7.1p1 on IRIX 6.5... I'm using 6.5.19 and having no trouble compiling, installing and starting, but sshd just closes the connection with no explanation. debug/verbose modes don't seem to give any clues. Darren Tucker suggested defining BROKEN_GETADDRINFO in config.h, but I find that compilation then fails (assuming I've implemented
2002 Feb 15
3
ssh can't resolve hostnames thru WINS
...some programs now can use NetBIOS names, other can't. openssh falls into latter category :-( I found that openssh use this snippet to convert hostname to ip: if((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) fatal("%s: %.100s: %s", __progname, host, gai_strerror(gaierr)); and it fails for me exactly in this if() when I say "ssh <wins_name>". OTOH, ping uses code similar to struct hostent *hp; hp = gethostbyname(hostname); and this works for WINS names. My openssh version: openssh-3.0.2p1 Will try to patch ssh, although I'm know not...
2017 Jan 29
2
[PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...ar *argv[]) } peeraddr.sa.sa_family = ai_fam; - err = set_sock_addr(argv[1], &peeraddr, &hostname); + err = set_sock_addr(argv[1], &peeraddr, &hostname, + AI_CANONNAME | AI_ADDRCONFIG); if (err) { printf("Error: %s\n", gai_strerror(err)); printf("%s: unknown host\n", argv[1]); @@ -557,7 +558,8 @@ void put(int argc, char *argv[]) targ = strchr(cp, ':'); *targ++ = 0; peeraddr.sa.sa_family = ai_fam; - err = set_sock_addr(cp, &peeraddr,&hostname); + err =...
2006 Apr 10
2
Samba 4.0 compilation problem
...ng the following error. # make proto all Compiling heimdal/lib/asn1/main.c with host compiler In file included from heimdal_build/roken.h:7, from heimdal/lib/asn1/gen_locl.h:51, from heimdal/lib/asn1/main.c:34: heimdal/lib/roken/roken.h:556: conflicting types for `gai_strerror' /usr/include/netdb.h:307: previous declaration of `gai_strerror' *** Error code 1 make: Fatal error: Command failed for target `heimdal/lib/asn1/main.ho' # echo $PATH /usr/local/bin/:/usr/local/doc/:/usr/ccs/bin/:/usr/share/lib/:/usr/sbin:/usr/bin Path is set to gcc and make comman...
2001 Jun 07
0
Patch for systems with no setreuid()
...ID + /* Define if you have the setrlimit function. */ #undef HAVE_SETRLIMIT --- configure.orig Thu Jun 7 14:12:53 2001 +++ configure Thu Jun 7 14:13:40 2001 @@ -3184,7 +3184,7 @@ fi -for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit...
2003 Jul 05
2
Unhelpful error message when matching hosts in access list [PATCH]
...h either should not be done, or the confusing error message should not be printed. 2. The "malformed address" message is written whenever getaddrinfo() fails, ignoring the error code. Suggestion: Instead of rprintf(FERROR,"malformed address %s\n", tok); use gai_strerror(3) to get a more helpful error description: rprintf(FERROR,"error matching address %s: %s\n", tok, gai_strerror(gai)); ---------------------------------------------------------------------- Below is a patch that fixes these bugs. Seems to work just fine. Thorild Sel?n Datorf?ren...
2003 Jul 06
10
[Bug 585] sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=585 ------- Additional Comments From dtucker at zip.com.au 2003-07-07 00:32 ------- dmalloc (http://dmalloc.com/) claims to work on IRIX. It's likely to increase the CPU and memory load, though. I've built with dmalloc on Linux thusly: LDFLAGS=-ldmalloc ./configure && make eval `dmalloc -l /path/to/log high` ./sshd [options]
2003 Sep 22
7
[Bug 699] server broke connection without message
http://bugzilla.mindrot.org/show_bug.cgi?id=699 Summary: server broke connection without message Product: Portable OpenSSH Version: 3.7.1p1 Platform: MIPS OS/Version: IRIX Status: NEW Severity: normal Priority: P2 Component: Build system AssignedTo: openssh-bugs at mindrot.org ReportedBy:
2017 Feb 02
0
Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
...peeraddr.sa.sa_family = ai_fam; > - err = set_sock_addr(argv[1], &peeraddr, &hostname); > + err = set_sock_addr(argv[1], &peeraddr, &hostname, > + AI_CANONNAME | AI_ADDRCONFIG); > if (err) { > printf("Error: %s\n", gai_strerror(err)); > printf("%s: unknown host\n", argv[1]); > @@ -557,7 +558,8 @@ void put(int argc, char *argv[]) > targ = strchr(cp, ':'); > *targ++ = 0; > peeraddr.sa.sa_family = ai_fam; > - err = set_sock_addr(cp, &peeraddr,...
2003 Dec 23
0
[Bug 585] sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled
...d ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From dtucker at zip.com.au 2003-12-22 21:22 ------- The "const char *gai_strerror" thing is now handled: 20030923 [snip] - (dtucker) [configure.ac openbsd-compat/fake-rfc2553.c openbsd-compat/fake-rfc2553.h] Bug #659: Test for and handle systems with where gai_strerror is defined as "const char *". Part of patch supplied by bugzilla-openssh at thewritt...
2000 Apr 21
0
OpenSSH 1.2.3 on AIX 4.3.3
...group.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h) # Checks for library functions. -AC_CHECK_FUNCS(arc4random bindresvport_af freeaddrinfo gai_strerror getaddrinfo getnameinfo innetgr md5_crypt mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf _getpty) +AC_CHECK_FUNCS(arc4random bindresvport_af freeaddrinfo gai_strerror getaddrinfo getnameinfo innetgr md5_crypt mkdtemp openpty pu...
2001 May 22
1
[PATCH]: configure.in: Missing check for setvbuf
...-p -r1.286 configure.in --- configure.in 2001/05/17 03:32:51 1.286 +++ configure.in 2001/05/22 11:59:54 @@ -460,7 +460,7 @@ AC_ARG_WITH(tcp-wrappers, ) dnl Checks for library functions. -AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit...
2008 Oct 20
2
[PATCH] Compilation of tftp-hpa's Git HEAD with no IPv6, and misc
...h was annoying. By the way, I see that 'configure' tests for <winsock.h> and <winsock2.h>, but Winsock isn't actually used. What's the reason? diff --git a/config.h b/config.h index bd1dac1..76c7514 100644 --- a/config.h +++ b/config.h @@ -325,6 +325,11 @@ const char *gai_strerror(int); #define AI_CANONNAME 0x0002 /* Request for canonical name. */ #endif +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose + returned address type.. */ +#endif + #ifndef EAI_NONAME #define EAI_NONAME...
2003 Dec 09
1
Make Fails on Cobalt Qube 2
...name.c:73: for each function it appears in.) clientname.c: In function `lookup_name': clientname.c:229: `NI_NAMEREQD' undeclared (first use this function) clientname.c:229: `NI_NUMERICSERV' undeclared (first use this function) clientname.c:234: warning: implicit declaration of function `gai_strerror' clientname.c:234: warning: format argument is not a pointer (arg 4) clientname.c: In function `check_name': clientname.c:329: warning: format argument is not a pointer (arg 4) make: *** [clientname.o] Error 1 Does anyone have any idea what I could do to get this to compile? Thanks, Ran...
2003 Mar 31
2
basename() in libgen
IRIX 6.5 has the basename() function in libgen. SYNOPSIS cc [flag ...] file ... -lgen [library ...] #include <libgen.h> char *basename (char *path); -- ayamura