Skip to Content.
Sympa Menu

freetds - Re: [freetds] need help installing on HP-UX 10.2

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] need help installing on HP-UX 10.2
  • Date: Sat, 05 Nov 2005 10:11:00 +0100

Il giorno ven, 04/11/2005 alle 15.38 -0700, Wayne Simmons ha scritto:
> > christos said:
> > The autoconf script should be fixed to provide socklen_t as an int if it
> > is not present. As a quick hack, comment out the test in configure so that
> > it does not fail, and then after you run configure edit config.h and
> > add:
> > #define socklen_t int
> > or
> > typedef int socklen_t;
>
> Thank you for the expanded response, following your direction I have
> modified the configure file to pass that test.
>
> However, make failed (as expected I didn't change the config.h yet) so
> I changed the ./include/config.h from #undef socklen_t to your first
> suggestion "#define socklen_t int" still no luck. I removed that and tried
> the second option: "typedef int socklen_t". Finally I tried the typedef with
> the original "undef" but it still fails. Make fails at the same spot for
> each attempt, perhaps it's not the socklen_t at the point where it's
> failing, the errors are listed below:
>
> (Bundled) cc: "../../include/replacements.h", line 46: error 1000:
> Unexpected symbol: "va_list".
> (Bundled) cc: "../../include/replacements.h", line 42: error 1705: Function
> prototypes are an ANSI feature.
> (Bundled) cc: "../../include/replacements.h", line 46: error 1705: Function
> prototypes are an ANSI feature.
> (Bundled) cc: "../../include/replacements.h", line 50: error 1705: Function
> prototypes are an ANSI feature.
> (Bundled) cc: "asprintf.c", line 25: error 1705: Function prototypes are an
> ANSI feature.
> (Bundled) cc: "asprintf.c", line 31: warning 526: Pointer implicitly
> converted to integral value in assignment.
> (Bundled) cc: "asprintf.c", line 31: warning 563: Argument #3 is not the
> correct type.
>
>
> replacements.h lines 45-47 are:
> #if !HAVE_VASPRINTF
> int vasprintf(char **ret, const char *fmt, va_list ap);
> #endif /* !HAVE_VASPRINTF */
>
> Why is it not recognizing a va_list, that's elementry ANSI C isn't it?
>
> Thank you,
>
> -Wayne
>

Yes, but compiler you are using seems not ANSI C compatible ("error
1705: Function prototypes are an ANSI feature").
FreeTDS require a ANSI C compiler so you can use either HP one (is
another package) or use another compiler (like gcc).

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page