Skip to Content.
Sympa Menu

freetds - RE: [freetds] 0.61 tsql core dump, locale = "C C C C C C"

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO Frediano" <Frediano.Ziglio AT mail.vodafone.it>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] 0.61 tsql core dump, locale = "C C C C C C"
  • Date: Thu, 15 May 2003 16:56:09 +0200

>
> > What's sizeof(socklen_t) and sizeof(size_t) ??
> Both have size 8.
> - Dan.

The warning occur on accept call

Manual
(http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B2355-90682&service=hpux&path=../B2355-90682/00/00/6&title=HP-UX%20Reference%20Volume%203%3A%20Sections%202%20and%204)
say

int accept(int s, void *addr, int *addrlen);

_XOPEN_SOURCE_EXTENDED only (UNIX 98)

int accept(int s, struct sockaddr *addr, socklen_t *addrlen);

Obsolescent _XOPEN_SOURCE_EXTENDED only (UNIX 95)

int accept(int s, struct sockaddr *addr, size_t *addrlen);


The conversion from long* to int* suggest that we should define
_XOPEN_SOURCE_EXTENDED somewhere for HP/UX...

Add a "#define _XOPEN_SOURCE_EXTENDED" to config.h and try recompile. Warning
should disappear...
However I don't understand... I a program call int* (32bit pointer) it call
the same function of size_t*/socklen_t* (64bit pointer) version ?? It seem a
header bug to me... Is HP/UX little endian or big endian ???

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page