Skip to Content.
Sympa Menu

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

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] OWAMP build error


Chronological Thread 
  • From: Ramkumar GOWRISHANKAR <>
  • To:
  • Subject: [perfsonar-user] OWAMP build error
  • Date: Tue, 22 Sep 2015 22:32:36 -0400

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