Re: [opendbx] Building errors opendbx 1.4.5

2011-03-21 Thread Miguel Sanchez
Hi Norbert,


Firstly thanks for you quick response.

I'll try compiling  the ODBC backend.

I have to admit I couldn't work out why I would need to compile
freeTDS on Windows when there are native libraries that MS provides.
Having said that I built freeTDS and tested the utilities (tsql)
successfully on my dev DB.

I've included my config.log (zipped in config.log.gz).

I was looking for native libraries because I was under the impression
that ODBC was far more inefficient...


Many thanks,


Miguel
On 18 March 2011 22:09, Norbert Sendetzky norb...@linuxnetworks.de wrote:
 Hi Miguel

 I'm trying to make opendbx-1.4.5 under MingW on Win XP SP3. I get the
 following error on make .
 (Despite this error I can see it has built
 ./backends/mssql/.libs/libmssqlbackend-1.dll). I presume what is not
 being built is libopendbx?
 .
 odbxlib.c:259:2: error: #error Building shared libraries requires 
 capabilities
 to load libraries dynamically

 This is a little bit strange as it means that the WIN32 platform isn't
 recognized. Could you please send me your config.log file?

 My configuration  was as follows.

 $ CPPFLAGS=-Ic:/mingw/msys/1.0/local/include 
 LDFLAGS=-Lc:/mingw/msys/1.0/loc
 al/lib configure --disable-utils --with-backends=mssql

 Besides from this error I would recommend you to use the ODBC backend on
 Win32 platforms as this is the native method supported by MS SQL Server.
 The mssql backend is mainly for Unix-like systems that have to use
 FreeTDS.


 Norbert

 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 libopendbx-devel mailing list
 libopendbx-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
 http://www.linuxnetworks.de/doc/index.php/OpenDBX



config.log.gz
Description: GNU Zip compressed data
--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX


Re: [opendbx] Building errors opendbx 1.4.5

2011-03-21 Thread Norbert Sendetzky
Hi Miguel

 I have to admit I couldn't work out why I would need to compile
 freeTDS on Windows when there are native libraries that MS provides.
 Having said that I built freeTDS and tested the utilities (tsql)
 successfully on my dev DB.

FreeTDS is mostly useful for Unix-like systems but for Windows 
platforms, ODBC should be preferred.

 I've included my config.log (zipped in config.log.gz).

The output is strange because the WIN32 platform is recognized according 
to your config.log. Your config.h generated after the configure run 
should also contain a

#define WIN32 1


Norbert

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX


Re: [opendbx] Building errors opendbx 1.4.5

2011-03-21 Thread Mariano Martinez Peck
On Mon, Mar 21, 2011 at 12:27 PM, Miguel Sanchez mikey.sanc...@gmail.comwrote:

 Hi Mariano,

 On Norberts suggestion I'm cutting over to try with the DBXObcPlatform
 but I'm still getting a fatal error on odbx_bind.

 I was wondering, if I'm using DBXOdbcPlatform won't I need to give it
 a DSN rather than a host name?


yes.

Checl #createConnection  for DBXMsSQLFacility or DBXOdbcMSSQLFacility or
DBXOdbcPostgreFacility


  Are there any special instructions for
 configuring DBXConnectionSettings on an ODBC connection?


No, just using the TDS name in host. Check those #createConnection as
example.



 Regards,


 Miguel

 On 18 March 2011 21:55, Mariano Martinez Peck marianop...@gmail.com
 wrote:
  Hi Miguel, what happens if you try with 1.5.0 ??
 
  As far as I can see in 1.4.5, odbxlib.cat the end there is a big if:
 
  #ifdef HAVE_WINDOWS_H
  #include windows.h
  #endif
 
 
  static int _odbx_lib_register( struct odbx_t* handle, const char* library
 )
 
  -..
 
 
  #else
  #error Building shared libraries requires capabilities to load libraries
  dynamically
  #endif
 
 
  I have no idea.Norbert will probably help you.
 
  Cheers
 
  Mariano
 
 
 
  On Fri, Mar 18, 2011 at 12:10 PM, Miguel Sanchez 
 mikey.sanc...@gmail.com
  wrote:
 
  Hi All,
 
  I'm trying to make opendbx-1.4.5 under MingW on Win XP SP3. I get the
  following error on make .
  (Despite this error I can see it has built
  ./backends/mssql/.libs/libmssqlbackend-1.dll). I presume what is not
  being built is libopendbx?
  .
  .
  .
  libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
  -DLIBVERSION=10405 -D
  LOCALEDIR=\/usr/local/share/locale\
 -DLIBPATH=\/usr/local/lib/opendbx\
  -DLIB
  PREFIX=\lib\ -DLIBSUFFIX=\-1.dll\ -Ic:/mingw/msys/1.0/local/include
 -g
  -O2 -
  MT libopendbx_la-odbxlib.lo -MD -MP -MF .deps/libopendbx_la-odbxlib.Tpo
 -c
  odbxl
  ib.c  -DDLL_EXPORT -DPIC -o .libs/libopendbx_la-odbxlib.o
  odbxlib.c:259:2: error: #error Building shared libraries requires
  capabilities
  to load libraries dynamically
  make[2]: *** [libopendbx_la-odbxlib.lo] Error 1
  make[2]: Leaving directory `/opendbx/lib'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/opendbx'
  make: *** [all] Error 2
 
  My configuration  was as follows.
 
  $ CPPFLAGS=-Ic:/mingw/msys/1.0/local/include
  LDFLAGS=-Lc:/mingw/msys/1.0/loc
  al/lib configure --disable-utils --with-backends=mssql
 
 
  Best Regards,
 
 
  Miguel
 
 
 
 --
  Colocation vs. Managed Hosting
  A question and answer guide to determining the best fit
  for your organization - today and in the future.
  http://p.sf.net/sfu/internap-sfd2d
  ___
  libopendbx-devel mailing list
  libopendbx-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
  http://www.linuxnetworks.de/doc/index.php/OpenDBX
 
 
 
 --
  Colocation vs. Managed Hosting
  A question and answer guide to determining the best fit
  for your organization - today and in the future.
  http://p.sf.net/sfu/internap-sfd2d
  ___
  libopendbx-devel mailing list
  libopendbx-devel@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
  http://www.linuxnetworks.de/doc/index.php/OpenDBX
 
 


 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 libopendbx-devel mailing list
 libopendbx-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
 http://www.linuxnetworks.de/doc/index.php/OpenDBX

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX


Re: [opendbx] Building errors opendbx 1.4.5

2011-03-18 Thread Mariano Martinez Peck
Hi Miguel, what happens if you try with 1.5.0 ??

As far as I can see in 1.4.5, odbxlib.cat the end there is a big if:

#ifdef HAVE_WINDOWS_H
#include windows.h
#endif


static int _odbx_lib_register( struct odbx_t* handle, const char* library )

-..


#else
#error Building shared libraries requires capabilities to load libraries
dynamically
#endif


I have no idea.Norbert will probably help you.

Cheers

Mariano



On Fri, Mar 18, 2011 at 12:10 PM, Miguel Sanchez mikey.sanc...@gmail.comwrote:

 Hi All,

 I'm trying to make opendbx-1.4.5 under MingW on Win XP SP3. I get the
 following error on make .
 (Despite this error I can see it has built
 ./backends/mssql/.libs/libmssqlbackend-1.dll). I presume what is not
 being built is libopendbx?
 .
 .
 .
 libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
 -DLIBVERSION=10405 -D
 LOCALEDIR=\/usr/local/share/locale\ -DLIBPATH=\/usr/local/lib/opendbx\
 -DLIB
 PREFIX=\lib\ -DLIBSUFFIX=\-1.dll\ -Ic:/mingw/msys/1.0/local/include -g
 -O2 -
 MT libopendbx_la-odbxlib.lo -MD -MP -MF .deps/libopendbx_la-odbxlib.Tpo -c
 odbxl
 ib.c  -DDLL_EXPORT -DPIC -o .libs/libopendbx_la-odbxlib.o
 odbxlib.c:259:2: error: #error Building shared libraries requires
 capabilities
 to load libraries dynamically
 make[2]: *** [libopendbx_la-odbxlib.lo] Error 1
 make[2]: Leaving directory `/opendbx/lib'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/opendbx'
 make: *** [all] Error 2

 My configuration  was as follows.

 $ CPPFLAGS=-Ic:/mingw/msys/1.0/local/include
 LDFLAGS=-Lc:/mingw/msys/1.0/loc
 al/lib configure --disable-utils --with-backends=mssql


 Best Regards,


 Miguel


 --
 Colocation vs. Managed Hosting
 A question and answer guide to determining the best fit
 for your organization - today and in the future.
 http://p.sf.net/sfu/internap-sfd2d
 ___
 libopendbx-devel mailing list
 libopendbx-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
 http://www.linuxnetworks.de/doc/index.php/OpenDBX

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d___
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX


Re: [opendbx] Building errors opendbx 1.4.5

2011-03-18 Thread Norbert Sendetzky
Hi Miguel

 I'm trying to make opendbx-1.4.5 under MingW on Win XP SP3. I get the
 following error on make .
 (Despite this error I can see it has built
 ./backends/mssql/.libs/libmssqlbackend-1.dll). I presume what is not
 being built is libopendbx?
 .
 odbxlib.c:259:2: error: #error Building shared libraries requires 
 capabilities
 to load libraries dynamically

This is a little bit strange as it means that the WIN32 platform isn't 
recognized. Could you please send me your config.log file?

 My configuration  was as follows.

 $ CPPFLAGS=-Ic:/mingw/msys/1.0/local/include 
 LDFLAGS=-Lc:/mingw/msys/1.0/loc
 al/lib configure --disable-utils --with-backends=mssql

Besides from this error I would recommend you to use the ODBC backend on 
Win32 platforms as this is the native method supported by MS SQL Server. 
The mssql backend is mainly for Unix-like systems that have to use 
FreeTDS.


Norbert

--
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
___
libopendbx-devel mailing list
libopendbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libopendbx-devel
http://www.linuxnetworks.de/doc/index.php/OpenDBX