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

Do not check for ruby/encoding.h, if we are running under Ruby 1.8.7 #6

Closed
wants to merge 1 commit into from
Closed

Do not check for ruby/encoding.h, if we are running under Ruby 1.8.7 #6

wants to merge 1 commit into from

Conversation

postmodern
Copy link

Prevents /usr/include/ruby/encoding.h from being incorrectly detected when compiling under Ruby 1.8.7.

Prevents /usr/include/ruby/encoding.h from being incorrectly detected when compiling under Ruby 1.8.7.
knu added a commit that referenced this pull request Jun 19, 2013
@bondo01
Copy link

bondo01 commented Jul 15, 2013

What is the status of this? I'm running into a problem with tiny_tds failing to compile because it is looking for encoding.h


[root@chucky2 ~]# gem install tiny_tds
Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb

checking for iconv_open() in iconv.h... no
checking for iconv_open() in -liconv... yes
checking for sybfront.h... yes
checking for sybdb.h... yes
checking for tdsdbopen() in -lsybdb... yes
checking for ct_bind() in -lct... yes
creating Makefile

make "DESTDIR="
gcc -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_SYBFRONT_H -DHAVE_SYBDB_H -I-I/usr/local/include -I-I/usr/include -I/usr/local/include -I/usr/include -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fPIC -c client.c
In file included from client.c:1:
./tiny_tds_ext.h:8:27: error: ruby/encoding.h: No such file or directory
In file included from ./tiny_tds_ext.h:12,
from client.c:1:
./client.h:24: error: expected specifier-qualifier-list before ârb_encodingâ
In file included from ./tiny_tds_ext.h:13,
from client.c:1:
./result.h:19: error: expected specifier-qualifier-list before ârb_encodingâ
client.c: In function ârb_tinytds_executeâ:
client.c:197: error: âtinytds_result_wrapperâ has no member named âencodingâ
client.c:197: error: âtinytds_client_wrapperâ has no member named âencodingâ
client.c: In function ârb_tinytds_encodingâ:
client.c:208: warning: implicit declaration of function ârb_enc_from_encodingâ
client.c:208: error: âtinytds_client_wrapperâ has no member named âencodingâ
client.c: In function ârb_tinytds_escapeâ:
client.c:215: warning: implicit declaration of function ârb_enc_associateâ
client.c:215: error: âtinytds_client_wrapperâ has no member named âencodingâ
client.c: In function ârb_tinytds_connectâ:
client.c:300: error: âtinytds_client_wrapperâ has no member named âencodingâ
client.c:300: warning: implicit declaration of function ârb_enc_findâ
make: *** [client.o] Error 1

@knu
Copy link
Owner

knu commented Jul 15, 2013

That's a completely irrelevant problem.

@robolson
Copy link

Looks like this issue was addressed by 9c50e40. Should this pull request be closed now?

@postmodern
Copy link
Author

Closing since this appears to be resolved.

@postmodern postmodern closed this Sep 20, 2013
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

Successfully merging this pull request may close these issues.

None yet

4 participants