Compiling fails on Ubuntu 13.10
Opened this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. Download the package and installed the optional Kyoto and Raptor libraries.
Install the system's Libz
2. make
3. Install fails (see below)
What is the expected output? What do you see instead?
(see full log attached)
$ make
[...]
[HDT] Compiling src/dictionary/KyotoDictionary.cpp
src/dictionary/KyotoDictionary.cpp: In member function ‘virtual void
hdt::KyotoDictionary::startProcessing(hdt::ProgressListener*)’:
src/dictionary/KyotoDictionary.cpp:135:23: error: ‘unlink’ was not declared
in this scope
unlink("subjects.kct");
^
make[1]: *** [src/dictionary/KyotoDictionary.o] Errore 1
make[1]: uscita dalla directory
"/home/cristian/Desktop/wikidata-ldf/hdt-it/hdt-lib-rc1-src"
make: *** [all] Errore 2
What version of the product are you using? On what operating system?
hdt-lib-rc1
Please provide any additional information below.
The same error occours with src/triples/TriplesKyoto.cpp
[...]
[HDT] Compiling src/triples/TriplesKyoto.cpp
src/triples/TriplesKyoto.cpp: In constructor
‘hdt::TriplesKyoto::TriplesKyoto(hdt::HDTSpecification&)’:
src/triples/TriplesKyoto.cpp:63:22: error: ‘unlink’ was not declared in
this scope
unlink("triples.kct");
^
make[1]: *** [src/triples/TriplesKyoto.o] Errore 1
make[1]: uscita dalla directory
"/home/cristian/Desktop/wikidata-ldf/hdt-it/hdt-lib-rc1-src"
make: *** [all] Errore 2
== FIX ==
In both cases the solution is to add the following line to the files:
#include <unistd.h>
This lead to successful compilation.
Cristian
Original issue reported on code.google.com by kikkocri...@gmail.com
on 25 Oct 2014 at 10:27
Attachments: