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

Gem not compiling on Ubuntu 13.10 with CUPS 1.7rc1 #13

Closed
michalorman opened this issue Nov 20, 2013 · 4 comments
Closed

Gem not compiling on Ubuntu 13.10 with CUPS 1.7rc1 #13

michalorman opened this issue Nov 20, 2013 · 4 comments

Comments

@michalorman
Copy link
Contributor

Installing a gem I'm receiving following output:

$ gem install cups
ERROR:  Error installing cups:
    ERROR: Failed to build gem native extension.

    /home/morman/.rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checking for main() in -lcups... yes
checking for cups-config... yes
cups version:
1.7rc1
creating Makefile

make
compiling cups.c
In file included from ./ruby_cups.h:9:0,
                 from cups.c:1:
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/backward/st.h:2:2: warning: #warning use "ruby/st.h" instead of bare "st.h" [-Wcpp]
 #warning use "ruby/st.h" instead of bare "st.h"
  ^
In file included from /home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/ruby.h:1383:0,
                 from /home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby.h:32,
                 from ./ruby_cups.h:8,
                 from cups.c:1:
cups.c: In function ‘cups_get_device_uri’:
cups.c:469:31: error: dereferencing pointer to incomplete type
        return rb_str_new2(attr->values[0].string.text);
                               ^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:738:27: note: in definition of macro ‘rb_str_new_cstr’
     (__builtin_constant_p(str)) ?  \
                           ^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
        return rb_str_new2(attr->values[0].string.text);
               ^
cups.c:469:31: error: dereferencing pointer to incomplete type
        return rb_str_new2(attr->values[0].string.text);
                               ^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:739:14: note: in definition of macro ‘rb_str_new_cstr’
  rb_str_new((str), (long)strlen(str)) : \
              ^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
        return rb_str_new2(attr->values[0].string.text);
               ^
cups.c:469:31: error: dereferencing pointer to incomplete type
        return rb_str_new2(attr->values[0].string.text);
                               ^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:739:33: note: in definition of macro ‘rb_str_new_cstr’
  rb_str_new((str), (long)strlen(str)) : \
                                 ^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
        return rb_str_new2(attr->values[0].string.text);
               ^
cups.c:469:31: error: dereferencing pointer to incomplete type
        return rb_str_new2(attr->values[0].string.text);
                               ^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:740:18: note: in definition of macro ‘rb_str_new_cstr’
  rb_str_new_cstr(str);   \
                  ^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
        return rb_str_new2(attr->values[0].string.text);
               ^
make: *** [cups.o] Error 1


Gem files will remain installed in /home/morman/.gem/ruby/1.9.3/gems/cups-0.1.7 for inspection.
Results logged to /home/morman/.gem/ruby/1.9.3/gems/cups-0.1.7/ext/gem_make.out

Any ideas? Gem is not compatible with CUPS 1.7? Or is it a ruby version 1.9.3-p448 issue?

@nicklinnell
Copy link

I'm getting the same compile error in 13.10 too, I'm using ruby 1.9.3-p484

@bigtunacan
Copy link
Contributor

I believe this is related to issue #15

@m0wfo
Copy link
Owner

m0wfo commented Jun 3, 2014

@nicklinnell just pushed 0.1.9 to rubygems, want to check give it a go?

@nicklinnell
Copy link

@m0wfo 0.1.9 compiles fine on Ubuntu 13.10 and ruby 1.9.3-p429, thanks

@m0wfo m0wfo closed this as completed Jun 4, 2014
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

4 participants