Code Monkey home page Code Monkey logo

runo's People

Contributors

hanya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

runo's Issues

Can't get RUNO to compile

I've been trying to get RUNO to compile on Ubuntu 10.04.3 unsucessfully. I have OO.org 3.4 and its SDK installed and configured, I've run the environment variables script, and I've even fixed some errors in the C++ source (that seem to have been introduced by changes in ec8a240a62). I've got it to the point where each .cxx file will compile now (see my fork for my changes), but it's dying when it gets to creating the .so file:

root@rubydev3:~/RUNO# rake
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/type.o -c ./src/type.cxx
./src/type.cxx: In function ‘void runo::raise_rb_exception(const com::sun::star::uno::Any&)’:
./src/type.cxx:340: warning: format not a string literal and no format arguments
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/module.o -c ./src/module.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/loader.o -c ./src/loader.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/adapter.o -c ./src/adapter.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/runtime.o -c ./src/runtime.cxx
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/opt/openoffice.org/basis3.4/sdk/include -I./include  -fno-strict-aliasing -DUNX -DGCC -DLINUX -DCPPU_ENV=gcc3   -fPIC -O1    -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration  -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -o ./src/string.o -c ./src/string.cxx
building ./lib/uno/runo.so
g++ -shared ./lib/uno/runo.so ./src/type.o ./src/module.o ./src/loader.o ./src/adapter.o ./src/runtime.o ./src/string.o     -L/opt/openoffice.org/basis3.4/sdk/lib -L/opt/openoffice.org/basis3.4/ure-link/lib  -luno_cppuhelpergcc3 -luno_cppu -luno_salhelpergcc3 -luno_sal -lm  -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm   -lc
g++: ./lib/uno/runo.so: No such file or directory
rake aborted!
Command failed with status (1): [g++ -shared ./lib/uno/runo.so ./src/type.o...]

If I try changing the command to add -o before ./lib/uno/runo.so (which I believe is missing), I get this instead:

root@rubydev3:~/RUNO# g++ -shared -o ./lib/uno/runo.so ./src/type.o ./src/module.o ./src/loader.o ./src/adapter.o ./src/runtime.o ./src/string.o     -L/opt/openoffice.org/basis3.4/sdk/lib -L/opt/openoffice.org/basis3.4/ure-link/lib  -luno_cppuhelpergcc3 -luno_cppu -luno_salhelpergcc3 -luno_sal -lm  -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm   -lc
/usr/bin/ld: /usr/local/lib/libruby-static.a(encoding.o): relocation R_X86_64_32S against `OnigEncAsciiToUpperCaseTable' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libruby-static.a: could not read symbols: Bad value
collect2: ld returned 1 exit status

The files are compiled using the -fPIC flag, however, so I'm not sure what to do. Any ideas what I might be doing wrong or missing? I'm running gcc 4.4.3 and ruby 1.9.3p0. Any help would be appreciated!

Compilation of type.cxx fails

Using Ruby 1.9.3, Openoffice3.4 on Ubuntu complation of type.cxx fails with following error messages:

type.cxx: In function ‘void rubyuno::raise_rb_exception(const com::sun::star::uno::Any&)’: type.cxx:340:83: error: format not a string literal and no format arguments [-Werror=format-security] rb_raise(klass, OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US).getStr()); ^ cc1plus: some warnings being treated as errors make: *** [type.o] Error 1

Not sure whether or not this error should be skipped by manually changing the Makefile and ignoring that warning.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.