Skip to Content.
Sympa Menu

freetds - Re: [freetds] cannot compile FreeTDS with xlc

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] cannot compile FreeTDS with xlc
  • Date: 06 Jan 2003 21:40:37 +0100

Il lun, 2003-01-06 alle 21:21, Scott J Baker ha scritto:
>
>
> I'm attempting to use freetds on AIX and xlc. I can get it to compile and
> work with gcc, however It will not compile with xlc. Other libs i'd like
> to link (i.e. xerces xml parser) require that I compile my app with xlc
> (does not link correctly with gcc under AIX). Linking a gcc compiled lib
> into an xlc compiled progam has always given me problems (compiles without
> warning, but segfaults on 1st connect call). Has anyone had any luck
> getting any version of freetds to compile with xlc? I've tried both
> version 0.53 and 0.60 (note: 0.60 does not compile/install/work for me
> under AIX even with gcc). The compile of 0.53 with xlc and gnu make (AIX
> make fails on the makefiles) fails with the following errors:
> "ct.c", line 81.38: 1506-068 (E) Operation between types "void*" and
> "int(*)(void*,void*,void*)" is not allowed.
> "ct.c", line 84.38: 1506-068 (E) Operation between types "void*" and
> "int(*)(void*,void*,void*)" is not allowed.
> "ct.c", line 96.52: 1506-068 (E) Operation between types
> "int(*)(void*,void*,void*)" and "void*" is not allowed.
> "ct.c", line 98.52: 1506-068 (E) Operation between types
> "int(*)(void*,void*,void*)" and "void*" is not allowed.
> "ct.c", line 102.52: 1506-068 (E) Operation between types
> "int(*)(void*,void*,void*)" and "void*" is not allowed.
> "ct.c", line 104.52: 1506-068 (E) Operation between types
> "int(*)(void*,void*,void*)" and "void*" is not allowed.
> "ct.c", line 536.12: 1506-068 (E) Operation between types "unsigned char*"
> and "char*" is not allowed.
> "ct.c", line 544.17: 1506-068 (E) Operation between types "unsigned char*"
> and "char*" is not allowed.
> "ct.c", line 1346.15: 1506-068 (S) Operation between types "struct
> tds_input_param*" and "int" is not allowed.
>
> Near as I can figure these are the same as the "ct.c:1346: warning:
> assignment makes pointer from integer without a cast" warnings I get from
> gcc, but xlc just doesn't want to let it slide like gcc will.
>
>
> Scott Baker
> IBM Global Services - Network Services
> Network Measurements
> Office: (919)993-4531 T/L 589-4531
> Internet: sjbaker AT us.ibm.com
>

These errors (warning in many C compiler) are fixed in CVS version.
Please try with a recent snapshot

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page