Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reg: Setup in Windows #53

Open
VimalKumarS opened this issue Feb 5, 2017 · 2 comments
Open

Reg: Setup in Windows #53

VimalKumarS opened this issue Feb 5, 2017 · 2 comments

Comments

@VimalKumarS
Copy link

Hi,
Can you please help me setup FreeTDS in Windows machine.
I got gcc x64 setup but not sure how to setup Free TDS

I am getting below error
github.com\minus5\gofreetds\conn.go: In function 'err_handler':
github.com\minus5\gofreetds\conn.go:32:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return errHandler((long)dbproc, severity, dberr, oserr, dberrstr, oserrstr);
^
github.com\minus5\gofreetds\conn.go: In function 'msg_handler':
github.com\minus5\gofreetds\conn.go:38:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return msgHandler((long)dbproc, msgno, msgstate, severity, msgtext, srvname, procname, line);
^
github.com\minus5\gofreetds\conn.go: In function 'dbproc_addr':
github.com\minus5\gofreetds\conn.go:59:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (long) dbproc;

thanks
Vimal

@VimalKumarS
Copy link
Author

here is the complete error / warning i get when tried to get from github

/home/vimkumar/freetds-1.00.24/src/tds/threadsafe.c:422: undefined reference to getpwuid_r' C:/cygwin64/usr/local/lib/libsybdb.a(threadsafe.o): In function tds_localtime_r':
/home/vimkumar/freetds-1.00.24/src/tds/threadsafe.c:84: undefined reference to localtime_r' C:/cygwin64/usr/local/lib/libsybdb.a(token.o): In function tds_process_nbcrow':
/home/vimkumar/freetds-1.00.24/src/tds/token.c:1941: undefined reference to __assert_func' C:/cygwin64/usr/local/lib/libsybdb.a(token.o): In function tds_process_row':
/home/vimkumar/freetds-1.00.24/src/tds/token.c:1913: undefined reference to __assert_func' C:/cygwin64/usr/local/lib/libsybdb.a(token.o): In function tds5_process_optioncmd':
/home/vimkumar/freetds-1.00.24/src/tds/token.c:2882: undefined reference to __assert_func' C:/cygwin64/usr/local/lib/libsybdb.a(token.o): In function tds_process_info':
/home/vimkumar/freetds-1.00.24/src/tds/token.c:2340: undefined reference to __errno' /home/vimkumar/freetds-1.00.24/src/tds/token.c:2340: undefined reference to __errno'
C:/cygwin64/usr/local/lib/libsybdb.a(util.o): In function retname': /home/vimkumar/freetds-1.00.24/src/tds/util.c:280: undefined reference to __assert_func'
C:/cygwin64/usr/local/lib/libsybdb.a(util.o): In function tdserror': /home/vimkumar/freetds-1.00.24/src/tds/util.c:362: undefined reference to __assert_func'
/home/vimkumar/freetds-1.00.24/src/tds/util.c:363: undefined reference to __assert_func' C:/cygwin64/usr/local/lib/libsybdb.a(util.o): In function tds_set_state':
/home/vimkumar/freetds-1.00.24/src/tds/util.c:159: undefined reference to __assert_func' /home/vimkumar/freetds-1.00.24/src/tds/util.c:70: undefined reference to __assert_func'
C:/cygwin64/usr/local/lib/libsybdb.a(util.o):/home/vimkumar/freetds-1.00.24/src/tds/util.c:69: more undefined references to __assert_func' follow C:/cygwin64/usr/local/lib/libsybdb.a(lt1-iconv.o): In function tds_sys_iconv_open':
/home/vimkumar/freetds-1.00.24/src/replacements/iconv.c:371: undefined reference to __errno' C:/cygwin64/usr/local/lib/libsybdb.a(lt1-iconv.o): In function tds_sys_iconv':
/home/vimkumar/freetds-1.00.24/src/replacements/iconv.c:471: undefined reference to __errno' C:/cygwin64/usr/local/lib/libsybdb.a(challenge.o): In function tds_answer_challenge':
/home/vimkumar/freetds-1.00.24/src/tds/challenge.c:333: undefined reference to __locale_ctype_ptr' C:/cygwin64/usr/local/lib/libsybdb.a(challenge.o): In function convert_to_upper':
/home/vimkumar/freetds-1.00.24/src/tds/challenge.c:98: undefined reference to __locale_ctype_ptr' C:/cygwin64/usr/local/lib/libsybdb.a(locale.o): In function tds_get_locale':
/home/vimkumar/freetds-1.00.24/src/tds/locale.c:78: undefined reference to `strlcpy'


Any pointer would be of great help.

thanks
V

@zxy82005337
Copy link

you can try install mingw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants