Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] OWAMP build error

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] OWAMP build error


Chronological Thread 
  • From: Ramkumar GOWRISHANKAR <>
  • To: Andrew Lake <>
  • Cc: ,
  • Subject: Re: [perfsonar-user] OWAMP build error
  • Date: Thu, 24 Sep 2015 10:14:58 -0400

Thanks for the response. Building after cloning the repo using the -recursive option followed by running bootstrap.sh worked.

One more question: Can multiple tests be run via a single owping command or does it support only one test? Is there an easier way to run multiple tests other than starting multiple owping commands in background?

Thanks,

Ramkumar

On Wed, Sep 23, 2015 at 8:17 AM, Andrew Lake <> wrote:
Hi,

i2util is a git submodule in the owamp repo. You either need to run “git clone —recursive https://github.com/perfsonar/owamp.git” when you do the initial checkout or run the following if you didn’t do —recursive in the initial clone:

git submodule init
git submodule update

Thanks,
Andy






On Tue, Sep 22, 2015 at 11:55 PM, Brian Tierney <> wrote:


If you download/build/install this version of i2util, all should work.

On Tue, Sep 22, 2015 at 7:32 PM, Ramkumar GOWRISHANKAR <> wrote:
Hello,

I am trying to build OWAMP after cloning master branch from github.com/perfsonar.

My build is failing with the error below:

-----------------------------------------------------------------------------------------------------------------------------
[root@test owamp]# ./make
-bash: ./make: No such file or directory
[root@quaggawithovs owamp]# make
Making all in I2util
make[1]: Entering directory `/root/owamp/I2util'
Making all in I2util
make[2]: Entering directory `/root/owamp/I2util/I2util'
make  all-am
make[3]: Entering directory `/root/owamp/I2util/I2util'
make[3]: Leaving directory `/root/owamp/I2util/I2util'
make[2]: Leaving directory `/root/owamp/I2util/I2util'
Making all in aespasswd
make[2]: Entering directory `/root/owamp/I2util/aespasswd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/owamp/I2util/aespasswd'
Making all in pfstore
make[2]: Entering directory `/root/owamp/I2util/pfstore'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/owamp/I2util/pfstore'
Making all in test
make[2]: Entering directory `/root/owamp/I2util/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/owamp/I2util/test'
Making all in doc
make[2]: Entering directory `/root/owamp/I2util/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/owamp/I2util/doc'
make[2]: Entering directory `/root/owamp/I2util'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/owamp/I2util'
make[1]: Leaving directory `/root/owamp/I2util'
Making all in owamp
make[1]: Entering directory `/root/owamp/owamp'
make  all-am
make[2]: Entering directory `/root/owamp/owamp'
gcc -DHAVE_CONFIG_H -I. -I..     -I/root/owamp/I2util -g -O2 -MT capi.o -MD -MP -MF .deps/capi.Tpo -c -o capi.o capi.c
capi.c: In function ‘_OWPClientBind’:
capi.c:90:13: error: incompatible type for argument 2 of ‘bind’
             if (bind(fd,ifa->ifa_addr,remote_addrinfo->ai_addrlen) == 0){
             ^
In file included from ../owamp/owamp.h:68:0,
                 from ../owamp/owampP.h:27,
                 from capi.c:24:
/usr/include/sys/socket.h:124:12: note: expected ‘__CONST_SOCKADDR_ARG’ but argument is of type ‘struct sockaddr *’
 extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
            ^
capi.c:118:13: error: incompatible type for argument 2 of ‘bind’
             if(bind(fd,ai->ai_addr,ai->ai_addrlen) == 0){
             ^
In file included from ../owamp/owamp.h:68:0,
                 from ../owamp/owampP.h:27,
                 from capi.c:24:
/usr/include/sys/socket.h:124:12: note: expected ‘__CONST_SOCKADDR_ARG’ but argument is of type ‘struct sockaddr *’
 extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
            ^
capi.c: In function ‘TryAddr’:
capi.c:195:5: error: incompatible type for argument 2 of ‘connect’
     if(connect(fd,ai->ai_addr,ai->ai_addrlen) == 0){
     ^
In file included from ../owamp/owamp.h:68:0,
                 from ../owamp/owampP.h:27,
                 from capi.c:24:
/usr/include/sys/socket.h:138:12: note: expected ‘__CONST_SOCKADDR_ARG’ but argument is of type ‘struct sockaddr *’
 extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
            ^
make[2]: *** [capi.o] Error 1
make[2]: Leaving directory `/root/owamp/owamp'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/owamp/owamp'
make: *** [all-recursive] Error 1


--------------------------------------------------------------------------------------------------------------------------------------

Any ideas? I am running this on a CentOS 7 VM and gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC). Before running make, I ran the following commands:
  • aclocal
  • autoheader
  • automake --add-missing
  • autoconf
  • ./configure --prefix=/inst/root

I have a couple of other questions:
1. When I downloaded the source from github repo, the I2utils folder was empty. Is this expected? I had to clone the I2utils repo separately and copy it to the owamp/I2utils directory. Otherwise the build used to fail. I then built the I2utils separately first. Is this the correct set of steps?

2. The configure.ac file references a bootstrap.sh script but I could not find one. Should I be looking for one?

Thanks,

Ramkumar









Archive powered by MHonArc 2.6.16.

Top of Page