* Re: Compiling error - sysvinit
2004-07-02 11:48 Compiling error - sysvinit Jan Gehring
@ 2004-07-02 7:15 ` Luke Kenneth Casson Leighton
2004-07-02 9:25 ` Luke Kenneth Casson Leighton
0 siblings, 1 reply; 8+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-07-02 7:15 UTC (permalink / raw)
To: Jan Gehring; +Cc: selinux
jan, hi,
under what system are you doing the compiling, if debian,
have you done apt-get build-dep sysvinit?
l.
On Fri, Jul 02, 2004 at 01:48:50PM +0200, Jan Gehring wrote:
> Hello ml,
>
> i tried to compile sysvinit-2.85 but i get the following error.
>
> root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> [...]
> init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> [...]
> init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> make: *** [init.o] Error 1
>
>
> What am i doing wrong?
>
> Thanks for any help
>
> Jan
>
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
--
--
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 7:15 ` Luke Kenneth Casson Leighton
@ 2004-07-02 9:25 ` Luke Kenneth Casson Leighton
2004-07-02 17:01 ` Jan Gehring
0 siblings, 1 reply; 8+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-07-02 9:25 UTC (permalink / raw)
To: Jan Gehring, selinux
On Fri, Jul 02, 2004 at 07:15:44AM +0000, Luke Kenneth Casson Leighton wrote:
> jan, hi,
>
> under what system are you doing the compiling, if debian,
> have you done apt-get build-dep sysvinit?
*thinks*... grep SELINUXMNT /usr/include/selinux/*
/usr/include/selinux/selinux.h:#define SELINUXMNT "/selinux/"
jan, you will need to install the package libselinux1-dev
(if debian) or equivalent for whatever-system-you-have.
the header file that you need is in that package.
l.
> On Fri, Jul 02, 2004 at 01:48:50PM +0200, Jan Gehring wrote:
> > Hello ml,
> >
> > i tried to compile sysvinit-2.85 but i get the following error.
> >
> > root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> > cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> > [...]
> > init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> > [...]
> > init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> > make: *** [init.o] Error 1
> >
> >
> > What am i doing wrong?
> >
> > Thanks for any help
> >
> > Jan
> >
> >
> > --
> > This message was distributed to subscribers of the selinux mailing list.
> > If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> > the words "unsubscribe selinux" without quotes as the message.
>
> --
> --
> Information I post is with honesty, integrity, and the expectation that
> you will take full responsibility if acting on the information contained,
> and that, should you find it to be flawed or even mildly useful, you
> will act with both honesty and integrity in return - and tell me.
> --
> <a href="http://lkcl.net"> lkcl.net </a> <br />
> <a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
>
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
--
--
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Compiling error - sysvinit
@ 2004-07-02 11:48 Jan Gehring
2004-07-02 7:15 ` Luke Kenneth Casson Leighton
0 siblings, 1 reply; 8+ messages in thread
From: Jan Gehring @ 2004-07-02 11:48 UTC (permalink / raw)
To: selinux
Hello ml,
i tried to compile sysvinit-2.85 but i get the following error.
root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
[...]
init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
[...]
init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
make: *** [init.o] Error 1
What am i doing wrong?
Thanks for any help
Jan
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 9:25 ` Luke Kenneth Casson Leighton
@ 2004-07-02 17:01 ` Jan Gehring
2004-07-02 18:06 ` Chris PeBenito
2004-07-02 18:46 ` Luke Kenneth Casson Leighton
0 siblings, 2 replies; 8+ messages in thread
From: Jan Gehring @ 2004-07-02 17:01 UTC (permalink / raw)
To: selinux
Hello Luke,
> > under what system are you doing the compiling, if debian,
> > have you done apt-get build-dep sysvinit?
I have build my system by own. Some parts are from the linux-from-scratch project.
(http://www.linoratix.com)
>
> jan, you will need to install the package libselinux1-dev
> (if debian) or equivalent for whatever-system-you-have.
well i have build und installed libselinux.
$ ls /lib/libselinux.so.1
/lib/libselinux.so.1
$ ls /usr/lib/libselinux.*
/usr/lib/libselinux.a /usr/lib/libselinux.so
/usr/lib/libselinux.so is a symlink to /lib/libselinux.so.1
perhaps i have to add some other some other symlinks?
> > On Fri, Jul 02, 2004 at 01:48:50PM +0200, Jan Gehring wrote:
> > > Hello ml,
> > >
> > > i tried to compile sysvinit-2.85 but i get the following error.
> > >
> > > root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> > > cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> > > [...]
> > > init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> > > [...]
> > > init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> > > make: *** [init.o] Error 1
[cut]
Thanks for any help
Jan
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 17:01 ` Jan Gehring
@ 2004-07-02 18:06 ` Chris PeBenito
2004-07-02 21:08 ` Jan Gehring
2004-07-07 16:26 ` Stephen Smalley
2004-07-02 18:46 ` Luke Kenneth Casson Leighton
1 sibling, 2 replies; 8+ messages in thread
From: Chris PeBenito @ 2004-07-02 18:06 UTC (permalink / raw)
To: Jan Gehring; +Cc: SELinux Mail List
[-- Attachment #1: Type: text/plain, Size: 1187 bytes --]
On Fri, 2004-07-02 at 12:01, Jan Gehring wrote:
> > > > i tried to compile sysvinit-2.85 but i get the following error.
> > > >
> > > > root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> > > > cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> > > > [...]
> > > > init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> > > > [...]
> > > > init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> > > > make: *** [init.o] Error 1
Most likely you are trying to compile an older sysvinit patch against
libselinux-1.14. I saw this myself a few days ago. These two #defines
are gone in 1.14. Best bet is to update your sysvinit patch. I added
back these two #defines back into Gentoo's libselinux-1.14 selinux.h for
compatibility, which is another option.
The #defines were:
#define SELINUXMNT "/selinux/"
#define SELINUXPOLICY "/etc/security/selinux/policy"
--
Chris PeBenito
<pebenito@gentoo.org>
Developer,
Hardened Gentoo Linux
Embedded Gentoo Linux
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 17:01 ` Jan Gehring
2004-07-02 18:06 ` Chris PeBenito
@ 2004-07-02 18:46 ` Luke Kenneth Casson Leighton
1 sibling, 0 replies; 8+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-07-02 18:46 UTC (permalink / raw)
To: Jan Gehring; +Cc: selinux
On Fri, Jul 02, 2004 at 07:01:46PM +0200, Jan Gehring wrote:
> Hello Luke,
> > > under what system are you doing the compiling, if debian,
> > > have you done apt-get build-dep sysvinit?
> I have build my system by own. Some parts are from the linux-from-scratch project.
> (http://www.linoratix.com)
>
> >
> > jan, you will need to install the package libselinux1-dev
> > (if debian) or equivalent for whatever-system-you-have.
> well i have build und installed libselinux.
>
> $ ls /lib/libselinux.so.1
> /lib/libselinux.so.1
>
> $ ls /usr/lib/libselinux.*
> /usr/lib/libselinux.a /usr/lib/libselinux.so
>
> /usr/lib/libselinux.so is a symlink to /lib/libselinux.so.1
>
> perhaps i have to add some other some other symlinks?
symlinks no, _header_ files yes.
you will also need /lib/libselinux* of course as well.
do you have any files /usr/include/selinux/* ?
if no, then nothing will compile, end of story.
therefore, in your case, i would recommend that you obtain the
source code of libselinux, compile and install it, making sure
that you get the library into /lib (with a symlink in /usr/lib)
and the installation of the library FROM SOURCE will put the
header files there as well.
... you _are_ no doubt aware that this is a standard procedure
for building _any_ program from source: you must have all the source
dependencies installed...
l.
> > > On Fri, Jul 02, 2004 at 01:48:50PM +0200, Jan Gehring wrote:
> > > > Hello ml,
> > > >
> > > > i tried to compile sysvinit-2.85 but i get the following error.
> > > >
> > > > root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> > > > cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> > > > [...]
> > > > init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> > > > [...]
> > > > init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> > > > make: *** [init.o] Error 1
>
> [cut]
>
>
> Thanks for any help
> Jan
>
>
>
> --
> This message was distributed to subscribers of the selinux mailing list.
> If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
--
--
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 18:06 ` Chris PeBenito
@ 2004-07-02 21:08 ` Jan Gehring
2004-07-07 16:26 ` Stephen Smalley
1 sibling, 0 replies; 8+ messages in thread
From: Jan Gehring @ 2004-07-02 21:08 UTC (permalink / raw)
To: Chris PeBenito; +Cc: selinux
Hello Chris,
> > i tried to compile sysvinit-2.85 but i get the following error.
> >
> > root@maracuja src # make LDFLAGS="-s -lselinux" CFLAGS="-D_GNU_SOURCE"
> > cc -c -D_GNU_SOURCE -DWITH_SELINUX init.c
> > [...]
> > init.c:97: error: `SELINUXMNT' undeclared (first use in this function)
> > [...]
> > init.c:123: error: `SELINUXPOLICY' undeclared (first use in this function)
> > make: *** [init.o] Error 1
>
> Most likely you are trying to compile an older sysvinit patch against
> libselinux-1.14. I saw this myself a few days ago. These two #defines
> are gone in 1.14. Best bet is to update your sysvinit patch. I added
> back these two #defines back into Gentoo's libselinux-1.14 selinux.h for
> compatibility, which is another option.
>
> The #defines were:
>
> #define SELINUXMNT "/selinux/"
> #define SELINUXPOLICY "/etc/security/selinux/policy"
Thank you. this works fine.
Best regards
Jan
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Compiling error - sysvinit
2004-07-02 18:06 ` Chris PeBenito
2004-07-02 21:08 ` Jan Gehring
@ 2004-07-07 16:26 ` Stephen Smalley
1 sibling, 0 replies; 8+ messages in thread
From: Stephen Smalley @ 2004-07-07 16:26 UTC (permalink / raw)
To: Chris PeBenito; +Cc: Jan Gehring, SELinux Mail List
On Fri, 2004-07-02 at 14:06, Chris PeBenito wrote:
> Most likely you are trying to compile an older sysvinit patch against
> libselinux-1.14. I saw this myself a few days ago. These two #defines
> are gone in 1.14. Best bet is to update your sysvinit patch. I added
> back these two #defines back into Gentoo's libselinux-1.14 selinux.h for
> compatibility, which is another option.
>
> The #defines were:
>
> #define SELINUXMNT "/selinux/"
> #define SELINUXPOLICY "/etc/security/selinux/policy"
Just be careful that no code other than /sbin/init uses such
definitions, as all other code should determine the selinuxfs mount
point at runtime via /proc/mounts (or just use the libselinux functions)
and should obtain policy file paths at runtime using the new libselinux
functions.
--
Stephen Smalley <sds@epoch.ncsc.mil>
National Security Agency
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-07-07 16:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-02 11:48 Compiling error - sysvinit Jan Gehring
2004-07-02 7:15 ` Luke Kenneth Casson Leighton
2004-07-02 9:25 ` Luke Kenneth Casson Leighton
2004-07-02 17:01 ` Jan Gehring
2004-07-02 18:06 ` Chris PeBenito
2004-07-02 21:08 ` Jan Gehring
2004-07-07 16:26 ` Stephen Smalley
2004-07-02 18:46 ` Luke Kenneth Casson Leighton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.