[redland-dev] [Raptor RDF Syntax Library 0000600]: Can't compile on Cygwin:

Mantis Bug Tracker mantis-bug-sender at librdf.org
Fri Aug 28 06:18:55 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=600 
====================================================================== 
Reported By:                clange
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   600
Category:                   installation
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2015-08-28 03:18
Last Modified:              2015-08-28 03:18
====================================================================== 
Summary:                    Can't compile on Cygwin:
Description: 
In compiling from the sources on Cygwin (setup version 2.871) "make" gave me an
error in sort_r: "Cannot detect operating system".


Steps to Reproduce: 
$ make
...
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  
-DLIBRDFA_IN_RAPTOR -I../librdfa -DRAPTOR_INTERNAL=1 -I/usr/include/libxml2   
-O2 -march=native -pipe -MT sort_r.lo -MD -MP -MF .deps/sort_r.Tpo -c -o
sort_r.lo sort_r.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DLIBRDFA_IN_RAPTOR -I../librdfa
-DRAPTOR_INTERNAL=1 -I/usr/include/libxml2 -O2 -march=native -pipe -MT sort_r.lo
-MD -MP -MF .deps/sort_r.Tpo -c sort_r.c  -DDLL_EXPORT -DPIC -o .libs/sort_r.o
In file included from sort_r.c:42:0:
sort_r.h:35:4: error: #error Cannot detect operating system
 #  error Cannot detect operating system
    ^
sort_r.h: In function 'sort_r':
sort_r.h:110:26: error: storage size of 'tmp' isn't known
       struct sort_r_data tmp;
                          ^
sort_r.h:113:33: error: 'sort_r_arg_swap' undeclared (first use in this
function)
       qsort_s(base, nel, width, sort_r_arg_swap, &tmp);
                                 ^
sort_r.h:113:33: note: each undeclared identifier is reported only once for each
function it appears in
Makefile:676: recipe for target 'sort_r.lo' failed
make[2]: *** [sort_r.lo] Error 1
make[2]: Leaving directory
'/cygdrive/c/Users/clange/Downloads/raptor2-2.0.15/src'
Makefile:510: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory
'/cygdrive/c/Users/clange/Downloads/raptor2-2.0.15/src'
Makefile:455: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Additional Information: 
Appending the line after line 29 of src/sort_r.h fixed the problem:

defined __CYGWIN__ || \

i.e. accepting Cygwin as another variant of Linux-like system.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-08-28 03:18 clange         New Issue                                    
======================================================================



More information about the redland-dev mailing list