Skip to Content.
Sympa Menu

freetds - Re: [freetds] Build Error

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Duncan Berriman" <duncan AT dcl.co.uk>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Build Error
  • Date: Mon, 21 May 2007 13:14:43 +0100

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include
-D_FREETDS_LIBRARY_SOURCE -DIODBC -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -pthread -g
-O2 -Wdeclaration-after-statement -MT fisql.o -MD -MP -MF ".deps/fisql.Tpo"
-c -o fisql.o fisql.c; \
then mv -f ".deps/fisql.Tpo" ".deps/fisql.Po"; else rm -f ".deps/fisql.Tpo";
exit 1; fi
fisql.c:30:31: error: readline/readline.h: No such file or directory
fisql.c:31:30: error: readline/history.h: No such file or directory
fisql.c: In function âmainâ:
fisql.c:328: error: ârl_outstreamâ undeclared (first use in this function)
fisql.c:328: error: (Each undeclared identifier is reported only once
fisql.c:328: error: for each function it appears in.)
fisql.c:330: error: ârl_readline_nameâ undeclared (first use in this
function)
fisql.c:331: warning: implicit declaration of function ârl_bind_keyâ
fisql.c:331: error: ârl_insertâ undeclared (first use in this function)
fisql.c:432: warning: implicit declaration of function ârl_on_new_lineâ
fisql.c:433: warning: implicit declaration of function ârl_reset_line_stateâ
fisql.c:445: warning: implicit declaration of function âreadlineâ
fisql.c:445: warning: assignment makes pointer from integer without a cast
fisql.c:451: warning: implicit declaration of function âadd_historyâ
fisql.c:468: error: ârl_instreamâ undeclared (first use in this function)
fisql.c:472: warning: assignment makes pointer from integer without a cast
fisql.c:546: warning: assignment makes pointer from integer without a cast
make[3]: *** [fisql.o] Error 1
make[3]: Leaving directory
`/home/duncan/freetds-0.65.dev.20070316/src/apps/fisql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/duncan/freetds-0.65.dev.20070316/src/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/duncan/freetds-0.65.dev.20070316/src'
make: *** [all-recursive] Error 1


> -----Original Message-----
> From: freetds-bounces AT lists.ibiblio.org
> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of
> ZIGLIO, Frediano, VF-IT
> Sent: 21 May 2007 13:09
> To: FreeTDS Development Group
> Subject: Re: [freetds] Build Error
>
>
> >
> > Hi,
> >
> > I was using the lastest stable release with no issues
> (freetds-0.64).
> >
> > Installed freetds-0.65.dev.20070316 on a Fedora core box and
> > it would not
> > build. It seems readline-devel is a requirement which wasn't
> > required in
> > 0.64. Nothing picks this up the build just fails with lots of
> > errors. Anyway
> > sussed it in the end and once I'd installed readline-devel it
> > built. Might
> > be worth improving configure or make.
> >
>
> Could you post some line of errors?
> Probably some new utility require readline, I'll check...
>
> > Next problem is this. Code builds fine on FC2 and FC3 but on
> > FC4 the same
> > code gets warning which I don't understand.
> >
> > SQLGetDiagRec(SQL_HANDLE_STMT, Statement, 1, errornumber,
> > NULL, message,
> > sizeof(message), NULL);
> >
> > warning: pointer targets in passing argument 4 of
> > SQLGetDiagRec differ in
> > signedness
> > warning: pointer targets in passing argument 6 of
> > SQLGetDiagRec differ in
> > signedness
> >
> > Any ideas why?
> >
>
> You are using a newer gcc which catch more errors. In this
> case you are
> passing two parameters with different sign. In this case
> errornumber and
> message (which should be declared as char) are passed in SQLCHAR*
> parameters (which are usually const unsigned char* type) so the error
> (due to (signed) char * -> unsigned char * implicit
> conversion). In this
> case is normal and do not produce any problem.
>
> > Thanks
> > Duncan
> >
>
> bye
> freddy77
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>






Archive powered by MHonArc 2.6.24.

Top of Page