Please be aware that the SAP SQL Anywhere Forum will be shut down on August 29th, 2024 when all it's content will be migrated to the SAP Community.

On a brand new installation of SQL Anywhere on CentOS 7 x86_64 (build 1511), I have followed the instructions in /opt/sqlanywhere17/selinux/README ... this is what happens when running make:

[root@localhost selinux]# source ../bin64/
[root@localhost selinux]# make
make: Warning: File `sqlanywhere.if' has modification time 846 s in the future
Compiling targeted sqlanywhere module
/usr/bin/checkmodule:  loading policy configuration from tmp/sqlanywhere.tmp
sqlanywhere.te":145:ERROR 'unknown type sqlanywhere_domains' at token ';' on line 7058:
        typeattribute sqlanywhere_domains  kernel_system_state_reader;
#line 145
/usr/bin/checkmodule:  error(s) encountered while parsing configuration
make: *** [tmp/sqlanywhere.mod] Error 1

The contents of Makefile are:

# installation paths
SHAREDIR := /usr/share/selinux

AWK ?= gawk
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))

ifeq ($(MLSENABLED),)
        MLSENABLED := 1

ifeq ($(MLSENABLED),1)
        NTYPE = mcs

ifeq ($(NAME),mls)
        NTYPE = mls


HEADERDIR := $(SHAREDIR)/devel/include
include $(HEADERDIR)/Makefile

I can't get this to compile... what's up? I can't get the service to start with selinux enforcing.

asked 10 Aug '16, 19:01

mmellon's gravatar image

accept rate: 25%

we're looking into this ...

As far as I know CentOS support of SELinux was a new feature of CentOS 7 and it may just not be configured or may have it's own issues.

On the other hand, the exception you are seeing seems more fundamental and may indicate something else. The feature you are using was designed back in the 11.0.x days and was function on Red Hat Enterprise Linux 5 and has not changed in any significant way since then.

someone will follow up with more info ...

(11 Aug '16, 15:50) Nick Elson S...

The implementation of selinux was designed and tested for Red Hat Enterprise Linux 5 and the feature provided only has that guarantee. It may need to be adjusted to work with other distributions; may even possibly required even with newer versions or RHEL. And since RHEL 5 is still a supported platform we cannot reject the current implementation.

One would need to look into the behaviour you are seeing in more detail. One part of that exercise would likely need to start by comparing the sqlanywhere.tmp generated on CentOS 7 and compare that to that generated on the supported platform. A comparison of the GCC version level and GNU libraries might also reveal something more about this failure.

If you continue to work on this do share your additional findings. If at some point you need more assistance I would recommend contacting SAP Product Support so this can be worked on.

permanent link

answered 11 Aug '16, 17:46

Nick%20Elson%20SAP%20SQL%20Anywhere's gravatar image

Nick Elson S...
accept rate: 32%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 10 Aug '16, 19:01

question was seen: 1,370 times

last updated: 11 Aug '16, 17:46