freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Scott J Baker <sjbaker AT us.ibm.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] cannot compile FreeTDS with xlc
- Date: Mon, 6 Jan 2003 15:21:42 -0500
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
-
[freetds] cannot compile FreeTDS with xlc,
Scott J Baker, 01/06/2003
- Re: [freetds] cannot compile FreeTDS with xlc, Frediano Ziglio, 01/06/2003
Archive powered by MHonArc 2.6.24.