michirod / dtnperf

GNU General Public License v3.0
3 stars 1 forks source link

I'm having shared object issues trying to compile dtnperf. What distribution are you compiling dtnperf for? Thanks, -Paul #3

Open pdmuri opened 12 years ago

michirod commented 12 years ago

Hi paul, I'm working on debian. Can you specify which error it gives?

pdmuri commented 12 years ago

Hey, thanks for replying so quickly. I think I figured out how to compile on my centos 6.3 distribution. Here's what I did.

The bp-abstraction-layer compiled fine after I threw oasys inside my DTN2 source directory.

For compiling dtnperf_3 I had to

  1. yum install glibc-static to obtain libpthread.a and libc.a
  2. add the -L path for libdtnapi.a in dtnperf's compile.sh

Now my compile.sh file looks like: gcc -o dtnperf -static -I$1 -O3 -Wall src/_.c src/dtnperfmodes/.c -O3 -Wall -fmessage-length=0 -L$2 -lbp_abstraction_layer -L/home/dtn/Downloads/dtn-2.9.0/applib -ldtnapi -lpthread

dtnperf3 appears to compile with just 1 warning: [root@localhost dtnperf_3]# ./compile_fix.sh /home/dtn/Downloads/bp-abstraction-layer/bp_abstraction_layer/src/ /home/dtn/Downloads/bp-abstraction-layer/bp_abstraction_layer/ /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/libpthread.a(libpthread.o): In function sem_open': (.text+0x764d): warning: the use ofmktemp' is dangerous, better use `mkstemp'

-Paul

On Tue, Sep 11, 2012 at 7:07 PM, michirod notifications@github.com wrote:

Hi paul, I'm working on debian. Can you specify which error it gives?

— Reply to this email directly or view it on GitHubhttps://github.com/michirod/dtnperf/issues/3#issuecomment-8475966.

pdmuri commented 12 years ago

Seems to be working great, thanks! Have you tested dtnperf_3 for ION, or IBR-DTN?

michirod commented 12 years ago

Hi Paul, thank you very much for your test and feedback! dtnperf_3 is still under heavy development and i did not write a real documentation yet. i made the compile.sh script to speed up my compilation process, it was not thought for distibution. I hope I'll can provide a better way to compile the sources.

Anyway i'm glad you wrote how you got dtnperf working, it can be useful for many others. ION support is not yet implemented and actually IBR-DTN is not going to be supported.

I'm considering your feedback to write a little installing howto, if you find other things that don't work (or any advice), please make me know it opening an issue here or sending me a mail (michirod at gmail)