Hi:

While trying to get rpm-5.3.11 to compile on OpenIndiana build 147
(gcc 3.4.3), I faced the following error.

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I../build
-I../lib -I../lib -I../rpmdb -I../rpmio -I../misc -I../neon/src
-I../neon/src -I../neon -I../neon -I../pcre -I../pcre -I../popt
-I../popt -I/workspace/altopt/include -I/usr/include
-DRPM_OS_SOLARIS=021100 -I/usr/include/python2.6
-I/usr/include/python2.6 -g -O2 -fPIC -DPIC -Wall -W -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts
-Wno-unused-parameter -Wformat-security
-fno-delete-null-pointer-checks -D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2 -fexceptions -fexceptions -fexceptions
-D_GNU_SOURCE -D_REENTRANT -MT rpmacl.lo -MD -MP -MF .deps/rpmacl.Tpo
-c rpmacl.c  -fPIC -DPIC -o .libs/rpmacl.o
rpmacl.c: In function `__acl_entries':
rpmacl.c:22: error: `ACL_FIRST_ENTRY' undeclared (first use in this function)
rpmacl.c:22: error: (Each undeclared identifier is reported only once
rpmacl.c:22: error: for each function it appears in.)
rpmacl.c:23: error: `acl_entry_t' undeclared (first use in this function)
rpmacl.c:23: error: syntax error before "ace"
rpmacl.c:25: warning: implicit declaration of function `acl_get_entry'
rpmacl.c:25: error: `ace' undeclared (first use in this function)
rpmacl.c:26: error: `ACL_NEXT_ENTRY' undeclared (first use in this function)
rpmacl.c: In function `rpmaclCopyFd':
rpmacl.c:40: error: invalid initializer
rpmacl.c:52: warning: implicit declaration of function `acl_get_fd'
rpmacl.c:52: error: incompatible types in assignment
rpmacl.c:53: error: invalid operands to binary ==
rpmacl.c:56: warning: implicit declaration of function `acl_set_fd'
rpmacl.c:62: error: invalid operands to binary !=
rpmacl.c:63: error: incompatible type for argument 1 of `acl_free'
rpmacl.c: In function `rpmaclCopyDir':
rpmacl.c:74: error: invalid initializer
rpmacl.c:94: error: `acl_get_file' undeclared (first use in this function)
rpmacl.c:95: error: `acl_set_file' undeclared (first use in this function)
rpmacl.c:114: error: `ACL_TYPE_DEFAULT' undeclared (first use in this function)
rpmacl.c:115: error: invalid operands to binary ==
rpmacl.c:123: error: incompatible type for argument 1 of `acl_free'
rpmacl.c:125: error: `ACL_TYPE_ACCESS' undeclared (first use in this function)
rpmacl.c:126: error: invalid operands to binary ==
rpmacl.c:135: error: invalid operands to binary !=
rpmacl.c:136: error: incompatible type for argument 1 of `acl_free'
make[4]: *** [rpmacl.lo] Error 1

The Solaris world doesn't have these ACL_TYPE definitions at
/usr/include/sys/acl.h or elsewhere.

I presume that rpmacl is needed for ensuring that the user account has
the right level of access, etc.

Any guidance on how to resolve this ?

-- Sriram
Belenix: www.belenix.org
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to