Project

Profile

Help

Bug #5228

closed

Saxon-C example dir and Saxon-C and/or documentation is out of sync?

Added by Øyvind Liland Gjesdal about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
C API
Start date:
2022-01-24
Due date:
% Done:

100%

Estimated time:
Found in version:
1.2.1
Fixed in version:
11.1
Platforms:

Description

This may be a user error, but I've followed the current documentation, to set up a working saxon-c, to test running the examples:

FROM rockylinux

# Set required environment vars
ENV SAXONC_VERSION=1.2.1
ENV SAXONC_DEST=/opt/
ENV SAXONC_HOME=/usr/lib

WORKDIR /opt
RUN dnf -y update && \
dnf -y clean all && \
dnf -y groupinstall "Development Tools"
# Begin saxon-c getting started guide https://www.saxonica.com/saxon-c/documentation1.2/index.html#!starting/installing/installingLinux
RUN curl -o libsaxon-HEC-setup64-v${SAXONC_VERSION}.zip https://www.saxonica.com/saxon-c/libsaxon-HEC-setup64-v${SAXONC_VERSION}.zip && ls  && \
unzip libsaxon-HEC-setup64-v${SAXONC_VERSION}.zip && pwd  && \
./libsaxon-HEC-setup64-v${SAXONC_VERSION} -batch && ls
WORKDIR /opt/Saxonica/SaxonHEC${SAXONC_VERSION}
RUN cp libsaxonhec.so /usr/lib/. && \
cp -r rt /usr/lib/. && \
cp -r saxon-data /usr/lib/.

# build example apps for C https://www.saxonica.com/saxon-c/documentation1.2/index.html#!samples/samples_c
WORKDIR /opt/Saxonica/SaxonHEC${SAXONC_VERSION}/samples/cTests
# Attempts to work around 32-64 bit changes, commented out
#RUN chmod +x buildhec.sh && \
#./buildhec.sh && \
#chmod +x build64-linux.sh &&  \
#./build64-linux.sh && ls -alh && chmod +x testXSLT && \
#./testXPATH
# Failing instructions from https://www.saxonica.com/saxon-c/documentation1.2/index.html#!samples/samples_c
RUN ./build.sh

This results in:

In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCGlue.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCProcessor.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCXPath.h:4,
                 from ../../Saxon.C.API/SaxonCXPath.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from testXSLT.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCGlue.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCProcessor.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from testXQuery.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCGlue.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCProcessor.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCXPath.h:4,
                 from ../../Saxon.C.API/SaxonCXPath.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/features.h:452,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:27,
                 from ../../Saxon.C.API/jni/jni.h:39,
                 from ../../Saxon.C.API/SaxonCGlue.h:11,
                 from ../../Saxon.C.API/SaxonCProcessor.h:4,
                 from ../../Saxon.C.API/SaxonCXPath.h:4,
                 from testXPath.c:1:
/usr/include/gnu/stubs.h:7:11: fatal error: gnu/stubs-32.h: No such file or directory
 # include <gnu/stubs-32.h>
           ^~~~~~~~~~~~~~~~
compilation terminated.
Error: error building at STEP "RUN ./build.sh": error while running runtime: exit status 1

This looks from my limited googling like it is connected Saxon-C removing 32 bit support?

I tried working around it, by using some of the other shell files present (see comments in Dockerfile), but I did not succeed and t is not a field I am very familiar with.

Best regards, Øyvind


Files

testXQuery.c (1.69 KB) testXQuery.c O'Neil Delpratt, 2022-01-25 10:59
testXSLT.c (1.63 KB) testXSLT.c O'Neil Delpratt, 2022-01-25 10:59

Please register to edit this issue

Also available in: Atom PDF