From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Jan Gehring <pr0gm4@linoratix.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Compiling error - sysvinit
Date: Fri, 2 Jul 2004 18:46:29 +0000 [thread overview]
Message-ID: <20040702184628.GD2814@lkcl.net> (raw)
In-Reply-To: <20040702190146.78697fe7.pr0gm4@linoratix.com>
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.
prev parent reply other threads:[~2004-07-02 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040702184628.GD2814@lkcl.net \
--to=lkcl@lkcl.net \
--cc=pr0gm4@linoratix.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.