Hi, I am trying to update igraph on R and got these errors.
..-c uuid/gen_uuid.c -o uuid/gen_uuid.o
uuid/gen_uuid.c5: error: conflicting types for ‘gettimeofday’
int gettimeofday (struct timeval tv, void *dummy)
In file included from uuid/gen_uuid.c:61:0:
/usr/include/x86_64-linux-gnu/sys/time.h:71:12: note: previous declaration of ‘gettimeofday’ was here
extern int gettimeofday (struct timeval *__restrict __tv,
^
/usr/lib/R/etc/Makeconf:134: recipe for target 'uuid/gen_uuid.o' failed
make: ** [uuid/gen_uuid.o] Error 1
ERROR: compilation failed for package ‘igraph’
- removing ‘/usr/lib/R/library/igraph’
- restoring previous ‘/usr/lib/R/library/igraph’
The downloaded source packages are in
‘/tmp/RtmpFDnDLe/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, :
installation of package ‘igraph’ had non-zero exit status
R 3.2.1 on Ubuntu 15.04 64 bit.
Please advise.
Thanks