Git Product home page Git Product logo

Comments (5)

dtrace4linux avatar dtrace4linux commented on May 17, 2024

Hello Martin,

thanks for pointing this out. I will make a fix to correct this.

On 17 December 2012 10:36, Martin Englund [email protected] wrote:

in libdtrace/dt_open.c the default Solaris cpp is used:

const char _dtrace_defcpp = "/usr/ccs/lib/cpp"; / default cpp(1) to
invoke */

which should be changed to the Linux path for cpp (or gcc -E)


Reply to this email directly or view it on GitHubhttps://github.com//issues/47.

from linux.

pmenglund avatar pmenglund commented on May 17, 2024

I noticed when I tried to compile Ruby 2.0 with DTrace support:
http://github.com/ruby/ruby

I think it is a good test case!

from linux.

pmenglund avatar pmenglund commented on May 17, 2024

I've got a follow-up question from compiling Ruby 2 - any clue as to why probes.o isn't relocatable?

dtrace -G -C -I. -I.ext/include/x86_64-linux -I./include -I. -s ./probes.d -o probes.o array.o eval.o gc.o hash.o load.o object.o parse.o string.o vm.o Invoking: ld -o probes.o -r probes.tmp.o /usr/lib/dtrace/64/drti.o linking miniruby gcc -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=implicit-function-declaration -ansi -std=iso9899:199409 -L. -fstack-protector -rdynamic -Wl,-export-dynamic -fstack-protector -pie main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o vm_backtrace.o vm_trace.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o strlcpy.o strlcat.o setproctitle.o addr2line.o dmyext.o probes.o -lpthread -lrt -ldl -lcrypt -lm -o miniruby /usr/bin/ld: probes.o: relocation R_X86_64_32 against .text' can not be used when making a shared object; recompile with -fPIC`

from linux.

dtrace4linux avatar dtrace4linux commented on May 17, 2024

Probably because i am stupid and didnt add the switch?

Another to add to my todo.
On Dec 18, 2012 1:05 PM, "Martin Englund" [email protected] wrote:

I've got a follow-up question from compiling Ruby 2 - any clue as to why
probes.o isn't relocatable?

dtrace -G -C -I. -I.ext/include/x86_64-linux -I./include -I. -s ./probes.d
-o probes.o array.o eval.o gc.o hash.o load.o object.o parse.o string.o vm.o
Invoking: ld -o probes.o -r probes.tmp.o /usr/lib/dtrace/64/drti.o
linking miniruby
gcc -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter
-Wno-parentheses -Wno-long-long -Wno-missing-field-initializers
-Wunused-variable -Werror=pointer-arith -Werror=write-strings
-Werror=declaration-after-statement -Werror=implicit-function-declaration
-ansi -std=iso9899:199409 -L. -fstack-protector -rdynamic
-Wl,-export-dynamic -fstack-protector -pie main.o dmydln.o dmyencoding.o
dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o
dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o
gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o
parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o
regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o
sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o
variable.o compile.o debug.o iseq.o vm.o vm_dump.o vm_backtrace.o
vm_trace.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o
strlcpy.o strlcat.o setp roctitle.o addr2line.o dmyext.o probes.o -lpthread
-lrt -ldl -lcrypt -lm -o miniruby
/usr/bin/ld: probes.o: relocation R_X86_64_32 against `.text' can not be
used when making a shared object; recompile with -fPIC


Reply to this email directly or view it on GitHubhttps://github.com//issues/47#issuecomment-11485079.

from linux.

pmenglund avatar pmenglund commented on May 17, 2024

Hahaha! Don't worry, you probably just didn't test it - that is not the same as being stupid :)

Let me know if you want help testing...

from linux.

Related Issues (20)

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.