Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Martin Little
RE: Error compiling ruby-informix on windows [ reply ]  
2010-06-17 17:10
This comes because the informix header you're compiling against uses the windows definitions for types that gcc doesn't use.

Patch include/esql/ifxtypes.h

Change the line
typedef __int64 bigint;
typedef unsigned __int64 ubigint;

to

#ifdef __GNUC__
typedef long long bigint;
unsigned long long ubigint;
#else
typedef __int64 bigint;
typedef unsigned __int64 bigint;
#endif


By: Gerardo Santana Gómez Garrido
RE: Error compiling ruby-informix on windows [ reply ]  
2010-06-14 16:55
Hi Lorenzo,

it seems that there's a problem with your Informix environment. Do you mind sending this message to the mailing list?

http://rubyforge.org/mail/?group_id=1378

The last error messages though are incompatibilities with Ruby 1.9.

By: Lorenzo Bordellini
Error compiling ruby-informix on windows [ reply ]  
2010-06-10 13:56
I'd like to use RoR with Informix and I'm trying to
install ruby-informix via "gem install ruby-informix (0.7.3)"...

Please help me!


Environment settings:

- Windows 7
- Informix Client SDK 3.50.TC6 (32 bit)
- Ruby-1.9.1-p378 (RubyInstaller)
- set INFORMIXDIR=C:\Program Files (x86)\IBM\Informix\Client-SDK


Here is the gem_make.out:

C:/Ruby19/bin/ruby.exe extconf.rb
creating Makefile

make
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby19/include/ruby-1.9.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -I. "-IC:\Program Files (x86)\IBM\Informix\Client-SDK/incl/esql" -O2 -g -Wall -Wno-parentheses -o informixc.o -c informixc.c
In file included from C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlhdr.h:29,
from informixc.c:1:
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:94: error: syntax error before "bigint"
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:94: warning: type defaults to `int' in declaration of `bigint'
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:94: warning: data definition has no type or storage class
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:95: error: syntax error before "ubigint"
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:95: warning: type defaults to `int' in declaration of `ubigint'
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/ifxtypes.h:95: warning: data definition has no type or storage class
In file included from C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlhdr.h:38,
from informixc.c:1:
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlproto.h:147: error: syntax error before '*' token
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlproto.h:234: warning: "struct ifx_connect_struct" declared inside parameter list
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlproto.h:234: warning: its scope is only this definition or declaration, which is probably not what you want
C:/Program Files (x86)/IBM/Informix/Client-SDK/incl/esql/sqlproto.h:236: warning: "struct ifx_connect_struct" declared inside parameter list
informixc.ec: In function `rbifx_ext_exception':
informixc.ec:195: warning: int format, long int arg (arg 4)
informixc.ec:216: warning: implicit declaration of function `stleng'
informixc.ec: In function `rb_slob_initialize':
informixc.ec:545: warning: unsigned int format, long int arg (arg 3)
informixc.ec: In function `make_result':
informixc.ec:1913: error: structure has no member named `ptr'
informixc.ec: In function `each_by':
informixc.ec:2723: error: structure has no member named `len'
make: *** [informixc.o] Error 1