export.h not found: Compiling seti_boinc on debian

Questions and Answers : Unix/Linux : export.h not found: Compiling seti_boinc on debian
Message board moderation

To post messages, you must log in.

AuthorMessage
Peeyush Prasad

Send message
Joined: 3 Dec 15
Posts: 2
Credit: 0
RAC: 0
Netherlands
Message 1746618 - Posted: 3 Dec 2015, 21:36:23 UTC

Hi All,
I am trying to compile seti_boinc on a debian machine. I have compiled and installed boinc/ without any problems, however, my seti_boinc compilation fails with the following error:
-----------------------------------------
In file included from readwu.cpp:30:0:
../sah_config.h:626:0: warning: "VERSION" redefined
#define VERSION "7.99"
^
In file included from <command-line>:0:0:
/home/peeyush/development/boinc/api/../config.h:729:0: note: this is the location of the previous definition
#define VERSION "7.7.0"
^
readwu.cpp:47:20: fatal error: export.h: No such file or directory
#include "export.h"
^
compilation terminated.
Makefile:699: recipe for target 'readwu_so-readwu.o' failed
make[2]: *** [readwu_so-readwu.o] Error 1
make[2]: Leaving directory '/home/peeyush/development/seti_boinc/tools'
Makefile:524: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/peeyush/development/seti_boinc'
Makefile:447: recipe for target 'all' failed
make: *** [all] Error 2
-------------------------------------------------------

It seems to not find the export.h file. However, I cannot find this file in the distribution I have downloaded, presumably it is generated on the fly, and is missing in my case because certain subsystems not being built. Can anyone help on getting this to compile?

The code version is:
svn info
Path: .
Working Copy Root Path: /home/peeyush/development/seti_boinc
URL: https://setisvn.ssl.berkeley.edu/svn/seti_boinc
Relative URL: ^/seti_boinc
Repository Root: https://setisvn.ssl.berkeley.edu/svn
Repository UUID: ce18c45e-0eac-4cad-939e-398e9871e6ff
Revision: 3191
Node Kind: directory
Schedule: normal
Last Changed Author: jeffc
Last Changed Rev: 3191
Last Changed Date: 2015-12-02 19:40:11 +0100 (Wed, 02 Dec 2015)

My system specs are:
uname -a
Linux pan 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u4 (2015-09-19) x86_64 GNU/Linux


peeyush@pan:~/development/seti_boinc$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)

Any help will be greatly appreciated!

Thanks in advance,
-- Peeyush
ID: 1746618 · Report as offensive
Peeyush Prasad

Send message
Joined: 3 Dec 15
Posts: 2
Credit: 0
RAC: 0
Netherlands
Message 1747556 - Posted: 7 Dec 2015, 23:21:43 UTC

Hi All,
OK, just to post on the progress of this issue: I was told by someone that maybe I did not have the kernel headers installed, which might be causing the compilation issue. I then installed the kernel headers, but still got the same error.

Since the error pertained to the file readwu.cpp, which seems to be an interface to IDL, I simply commented out the tools directory in Makefile.am in the seti_boinc/ root:
if ENABLE_CLIENT
  CLIENT_SUBDIRS = client
#if ENABLE_TESTS
#  CLIENT_SUBDIRS +=tools
#endif
endif


As a second measure, I also commented out everything in the readwu.cpp file.

Doing so, and then again running
 ./_autosetup; ./configure; make 
resulted in the compilation going through. The tools/ directory also had the fakedata tool compiled, which is what I wanted. Thus, I have (temporarily) solved the problem, but would still be interested in doing this the "proper" way, possibly via ./configure options.

Thanks,
-- Peeyush
ID: 1747556 · Report as offensive

Questions and Answers : Unix/Linux : export.h not found: Compiling seti_boinc on debian


 
©2021 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.