[freetds] Support for AIX 7.1

Sebastien FLAESCH sf at 4js.com
Thu May 3 04:14:37 EDT 2012


Hello,

The configure script could run without problem (I will send you the config.log, James), but when doing make I get this:

Making all in unittests
Target "all" is up to date.
          /bin/sh ../../libtool --tag=CC    --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include   -I../../include -DTDS_NO_DM -D_REENTRANT 
-D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE  -g -O2 -Wdeclaration-after-statement -MT mem.lo 
-MD -MP -MF .deps/mem.Tpo -c -o mem.lo mem.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -DTDS_NO_DM -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes 
-Wmissing-prototypes -Wno-long-long -D_THREAD_SAFE -g -O2 -Wdeclaration-after-statement -MT mem.lo -MD -MP -MF .deps/mem.Tpo -c mem.c -o mem.o
mem.c: In function 'tds_alloc_socket':
mem.c:1070: warning: implicit declaration of function 'socketpair'
mem.c:1070: error: 'AF_UNIX' undeclared (first use in this function)
mem.c:1070: error: (Each undeclared identifier is reported only once
mem.c:1070: error: for each function it appears in.)
mem.c:1070: error: 'SOCK_DGRAM' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

I have no time to fix the issues, but if you provide me diff patches I am willing to test the compilation on our AIX 7.1 ...

Seb




On 04/27/2012 08:59 PM, James K. Lowden wrote:
> On Fri, 27 Apr 2012 17:07:10 +0200
> Sebastien FLAESCH<sf at 4js.com>  wrote:
>>> What is the status about AIX 7.1 support?
>
> FreeTDS is expected to compile wherever a C compiler can be found.
>
> There is no official support, as you know.  There is an active
> community, and I am available for short-term engagements.  :-)
>
> It is interesting to see two AIX issues today.  There might be an issue
> with autoconf or similar.  It would be worthwhile to fetch the latest
> autotools and regenerate the configure script.
>
>>> Is it legal to compile on AIX 6.1 and copy the binaries on 7.1?
>
> Absolutely.
>
>>> Is there any guide to build FreeTDS on AIX 6.1?
>
> No, not except for http://www.freetds.org/userguide/osissues.htm#AIX.
> It might be getting to be time to update that page....
>
>> I forgot to mention that the binaries work fine on AIX 6.1, but when
>> running on AIX 7.1 we get strange defects: out of memory errors,
>> invalid statement execution status...
>
> It's hard to diagnose at a distance.  It sounds like a build-time
> configuration issue to me, somewhere in the vicinity of the linker.
> Why?  You changed only the OS.  The compiler generates machine code for
> a processor; the compiler's job hasn't changed because the hardware
> architecture hasn't changed.  But the libraries you're using *have*
> changed.
>
> If you build the binaries on 6.2 and run them on 7.1, be aware that the
> RPATH might not be appropriate to the runtime environment.
>
>> I thought there was a mistake in definitions of SQLLEN /
>> SIZEOF_LONG_INT, but I have checked and it should be fine...
>> Anyway, same binaries work fine on AIX 6.1 so I don't think there is
>> something wrong with this...
>
> Right.  Same processor, same object code.
>
> HTH.
>
> --jkl
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>




More information about the FreeTDS mailing list