Re: The make is unsuccessful - Help pls - Thank you - Suggestion -

"Petit, Frederic" <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Thank you very much for this. I thought the compiler was the issue but
the configure does not choke on this. Maybe configure should throw an
error (suggestion).

Here is the msg I have on the compiler from configure 

checking for style of include used by make... GNU
checking for gcc... no
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking dependency style of cc... hp
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) no
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ANSI C... (cached) none needed
checking dependency style of cc... (cached) hp
checking how to run the C preprocessor... cc -E
checking whether cc understands -c and -o together... yes
checking for a sed that does not truncate output... /usr/bin/sed

And the end of the configure which does not end up with an error.

config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
(sdsc729a:freetds)$

Thanks again,
Frederic

BAC and proprietary

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Frediano Ziglio
Sent: Friday, September 25, 2009 3:20 AM
To: FreeTDS Development Group
Subject: Re: [freetds] The make is unsuccessful - Help pls -

>
> Hi,
>
>
>
> I'm trying to build freetds on a HP-UX box but the make
> fails. Is my compiler not the good one ? Here is the message.
>
>
>
> Can someone tell me what the error really is and what I should do.
>
>
>
>
>
> cc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include
> -D_FREETDS_LIBRARY_SOURCE -D_XOPEN_SOURCE
> -D_XOPEN_SOURCE_EXTENDED -D_REENTRANT -D_THREAD_SAFE
> -DDEBUG=1 -D_REENTRANT -g -Wdeclaration-after-statement -c
> asprintf.c -Wp,-M.deps/asprintf.TPlo -DPIC
>
> (Bundled) cc: warning 480: The -g option is available only
> with the C/ANSI C product; ignored.
>
> (Bundled) cc: warning 422: Unknown option
> "-Wdeclaration-after-statement" ignored.
>
> (Bundled) cc: "../../include/replacements/readpassphrase.h", line 49:
> error 1000: Unexpected symbol: "size_t".
>
> (Bundled) cc: "../../include/replacements/readpassphrase.h", line 49:
> error 1705: Function prototypes are an ANSI feature.
>
> (Bundled) cc: "../../include/replacements.h", line 66: error 1000:
> Unexpected symbol: "va_list".
>
> (Bundled) cc: "../../include/replacements.h", line 66: error 1705:
> Function prototypes are an ANSI feature.
>
> (Bundled) cc: "../../include/replacements.h", line 70: error 1705:
> Function prototypes are an ANSI feature.
>
> (Bundled) cc: "../../include/replacements.h", line 80: error 1000:
> Unexpected symbol: "size_t".
>
> (Bundled) cc: "../../include/replacements.h", line 80: error 1705:
> Function prototypes are an ANSI feature.
>
> (Bundled) cc: "../../include/replacements.h", line 80: error
> 1573: Type of "len" is undefined due to an illegal declaration.
>
> (Bundled) cc: "../../include/replacements.h", line 86: error 1000:
> Unexpected symbol: "tds_strlcat".
>
> (Bundled) cc: error 2017: Cannot recover from earlier errors,
> terminating.
>
> *** Error exit code 1
>
>
>
> Thanks,
>
> Frederic
>
>
>
> BAC and proprietary
>

You need a ANSI/C compiler. Personally I use gcc, you can download
from http://hpux.connect.org.uk/ or from hp software. Or you can use
hp one.

freddy77
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.