Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SELinux build failures...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
breetie
n00b
n00b


Joined: 27 May 2004
Posts: 51
Location: Atlanta

PostPosted: Wed May 10, 2017 3:48 am    Post subject: SELinux build failures... Reply with quote

So, I have been attempting to merge SELinux according to the Gentoo SELinux install guide here, but on the step to install 'checkpolicy' and 'policycoreutils' I receive the following error when emerge attempts to compile sys-libs/libselinux-9999:

Code:
/usr/lib/gcc/ia64-unknown-linux-gnu/4.9.4/../../../../ia64-unknown-linux-gnu/bin/ld: cannot find -lselinux
/usr/lib/gcc/ia64-unknown-linux-gnu/4.9.4/../../../../ia64-unknown-linux-gnu/bin/ld: cannot find -lselinux
collect2: error: ld returned 1 exit status
make[1]: *** [<builtin>: compute_user] Error 1


It would appear this is another chicken-and-egg error, where it is looking for the selinux.so library before it is built? Anyone have some suggestions on how to approach this?
_________________
"There has been an alarming increase in the things you know nothing about."

--fortune
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Wed May 10, 2017 5:58 pm    Post subject: Reply with quote

sys-libs/libselinux-9999


...


-9999


...


9999


...


9999
Back to top
View user's profile Send private message
breetie
n00b
n00b


Joined: 27 May 2004
Posts: 51
Location: Atlanta

PostPosted: Thu May 11, 2017 7:31 pm    Post subject: Reply with quote

Maitreya wrote:
sys-libs/libselinux-9999


...


-9999


...


9999


...


9999


Pretend I don't know anything and have no idea what you're referencing here...what are you saying?
_________________
"There has been an alarming increase in the things you know nothing about."

--fortune
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Thu May 11, 2017 8:03 pm    Post subject: Reply with quote

Ah sorry,

The versioning implies that you unmasked both sys-libs/libselinux and sys-libs/libsepol with the ** keyword. This "9999" is usually an indication you are dealing with bleeding edge code instead of the stable recommended code.

If one would like to divert from stable you'd divert first by using the ~* keyword as that would unmask the testing branch.

But as https://packages.gentoo.org/packages/sys-libs/libselinux shows.

There is no version available it seems for ia64.


Which leads me to the next question, which processor do you have?
Back to top
View user's profile Send private message
breetie
n00b
n00b


Joined: 27 May 2004
Posts: 51
Location: Atlanta

PostPosted: Fri May 12, 2017 4:23 am    Post subject: Reply with quote

Maitreya wrote:
Ah sorry,

The versioning implies that you unmasked both sys-libs/libselinux and sys-libs/libsepol with the ** keyword. This "9999" is usually an indication you are dealing with bleeding edge code instead of the stable recommended code.


That is correct. I went with the recommendation provided by Portage, which apparently is wrong.

Quote:
If one would like to divert from stable you'd divert first by using the ~* keyword as that would unmask the testing branch.

But as https://packages.gentoo.org/packages/sys-libs/libselinux shows.

There is no version available it seems for ia64.


Right. I guess I was hoping that "A" version would compile. Alas, it appears that is an empty hope.


Quote:
Which leads me to the next question, which processor do you have?

Itanium 2 (HP rx6600)

Incidentally, when switching to the hardened profile for my architecture and upgrading or changing a package, Portage claims hardened is not supported for my architecture, hopes I know what I'm doing and says it probably won't work. My guess is, effort has been made to ensure this architecture won't come back from the dead.
_________________
"There has been an alarming increase in the things you know nothing about."

--fortune
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Fri May 12, 2017 6:38 am    Post subject: Reply with quote

Then keep the ** keywords but mask the version to a stable one.
Maybe it works on your arch because it's hard to tell if the error is because of the bleeding edge or arch (probably arch but i hope a bug for you)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum