Discussion:
[freetds] Windows 7 x64 builds
Sebastian Bachmann
2014-01-22 07:49:18 UTC
Permalink
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...

I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.

is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?

thanks a lot!

-sebastian
Sebastian Bachmann
2014-01-22 09:41:37 UTC
Permalink
Hi again,

I tried now build it with Visual Studio 2010 and had some more success.
but there are a lot of errors depending on the
replacements/getaddrinfo.c file, which seems to be not working for
windows.
Otherwise there was some missing files like dblib/dbpivot.c, which was
not builded.

-sebastian
Post by Sebastian Bachmann
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...
I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.
is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?
thanks a lot!
-sebastian
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
Frediano Ziglio
2014-01-22 10:41:52 UTC
Permalink
Did you try with cmake ??

Frediano
Post by Sebastian Bachmann
Hi again,
I tried now build it with Visual Studio 2010 and had some more success.
but there are a lot of errors depending on the
replacements/getaddrinfo.c file, which seems to be not working for
windows.
Otherwise there was some missing files like dblib/dbpivot.c, which was
not builded.
-sebastian
Post by Sebastian Bachmann
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...
I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.
is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?
thanks a lot!
-sebastian
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
Sebastian Bachmann
2014-01-22 11:00:25 UTC
Permalink
Hi,
unfortuatly my mingw setup is a little bit messed up and i got more
problems building it with that, than with the msvc.

i worked out that the only problem (beside some files that wasn't
compiled) was that in_addr_t is not defined. i changed that with a
typedef DWORD in_addr_t;

now the building works from Visual Studio.

-sebastian
Post by Frediano Ziglio
Did you try with cmake ??
Frediano
Post by Sebastian Bachmann
Hi again,
I tried now build it with Visual Studio 2010 and had some more success.
but there are a lot of errors depending on the
replacements/getaddrinfo.c file, which seems to be not working for
windows.
Otherwise there was some missing files like dblib/dbpivot.c, which was
not builded.
-sebastian
Post by Sebastian Bachmann
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken
Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...
I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.
is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?
thanks a lot!
-sebastian
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
Frediano Ziglio
2014-01-22 14:51:34 UTC
Permalink
Cmake can provide project files for all the different Visual Studio versions.
Which changes had to do?

Frediano
Post by Sebastian Bachmann
Hi,
unfortuatly my mingw setup is a little bit messed up and i got more
problems building it with that, than with the msvc.
i worked out that the only problem (beside some files that wasn't
compiled) was that in_addr_t is not defined. i changed that with a
typedef DWORD in_addr_t;
now the building works from Visual Studio.
-sebastian
Post by Frediano Ziglio
Did you try with cmake ??
Frediano
Post by Sebastian Bachmann
Hi again,
I tried now build it with Visual Studio 2010 and had some more success.
but there are a lot of errors depending on the
replacements/getaddrinfo.c file, which seems to be not working for
windows.
Otherwise there was some missing files like dblib/dbpivot.c, which was
not builded.
-sebastian
Post by Sebastian Bachmann
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken
Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...
I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.
is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?
thanks a lot!
-sebastian
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
Frediano Ziglio
2014-02-10 20:23:39 UTC
Permalink
Just tried with CMake, it says

...

Build succeeded.

Time Elapsed 00:00:02.01
========== Rebuild All: 684 succeeded, 0 failed, 0 skipped ==========


So I think it's working!

Frediano
Post by Frediano Ziglio
Cmake can provide project files for all the different Visual Studio versions.
Which changes had to do?
Frediano
Post by Sebastian Bachmann
Hi,
unfortuatly my mingw setup is a little bit messed up and i got more
problems building it with that, than with the msvc.
i worked out that the only problem (beside some files that wasn't
compiled) was that in_addr_t is not defined. i changed that with a
typedef DWORD in_addr_t;
now the building works from Visual Studio.
-sebastian
Post by Frediano Ziglio
Did you try with cmake ??
Frediano
Post by Sebastian Bachmann
Hi again,
I tried now build it with Visual Studio 2010 and had some more success.
but there are a lot of errors depending on the
replacements/getaddrinfo.c file, which seems to be not working for
windows.
Otherwise there was some missing files like dblib/dbpivot.c, which was
not builded.
-sebastian
Post by Sebastian Bachmann
Hi,
I was in the need to compile the freetds libs on my windows machine to
do some patching in the pymssql lib, which uses freetds.
Now the problem with that is, that the stable version 0.92.79 cannot be
compiled with VS 9.0 or higher, because it uses Functions from VS6.0(?)
like '_vsnprintf' and the latest dev versions have a broken Nmakefile,
for example are objects missing like db-lib/dbpivot. If i add them to
the build these errors go away but others pop up like a lot of compile
errors in getaddrinfo.c...
I think all these errors are mostly low hanging fruits and i probably
can fix them, but for that i would need to read into the whole code a
bit... Which i will probably do but currently my time is limited and i
just need a working db-lib.lib and tds.lib for building this python
module.
is there any quick fix or a new Nmakefile i can use or any hints that
can help me to fix it?
thanks a lot!
-sebastian
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
Continue reading on narkive:
Loading...