wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
6.17k stars 1.77k forks source link

Error when building shared libraries under SeLinux #4218

Open wxtrac opened 17 years ago

wxtrac commented 17 years ago

Issue migrated from trac ticket # 4218

component: build | priority: low | keywords: selinux

2007-06-29 17:41:31: ollinger created the issue


I ran into two issue installing wxPython 2.8.4.0 with the options: ../configure --prefix=/usr/local \ --with-gtk \ --enable-unicode \ --with-gnomeprint \ --with-libjpeg \ --with-libtiff \ --with-libpng \ --with-opengl \ --enable-geometry \ --enable-graphics_ctx \ --enable-sound --with-sdl \ --enable-mediactrl \ --enable-display \ --disable-debugreport \ --enable-optimize

The build of wx apparently went well, but when I tried to install wxPython it could not find the correct wx-config file. It had created the file gtk2-ansi-release-2.8. Then I discovered that the setup program was expecting unicode to be enabled. Adding the --enable-unicode command to the configuration command fixed the problem. You might want to make this the default.

The second issue is almost trivial. My workstation is running selinux, which denies access to the shareable object libraries. As you probable know, this can be fixed with "chcon -t texrel_shlib_t " command. I would imagine this problem will or has come up, so you might want to put it in the Makefiles.

Details: I am running scientific linux build 2.6.18-8.1.6.el5PAE on a Pentium processor. Relevant software versions are gcc 3.4.6, gtk version 2.10.10, glib-2.12.12 and Python 2.5.1.

Thanks for making a great package.

John

wxtrac commented 12 years ago

2012-02-09 01:38:24: @oneeyeman1 commented


Issue #1 is resolved. There is no more ANSI build, UNICODE only. Issue #2 should be easily fixed by adding "--disable-shared" to configure option list.

Can we close this one?

wxtrac commented 12 years ago

2012-02-09 02:34:14: @vadz changed priority from normal to low

2012-02-09 02:34:14: @vadz changed title from Problem with --enable-unicode option, selinux to Error when building shared libraries under SeLinux

2012-02-09 02:34:14: @vadz commented

Igor, it's about a problem while building shared libraries. Do you really think telling people not to use shared libraries is a good solution it?

P.S. The answer is "no" so the bug is valid. I don't know why exactly are we accessing any shared libraries though (strip?) so someone who uses SeLinux would need to retest this and provide more information about what exactly goes wrong.

wxtrac commented 12 years ago

2012-02-09 10:30:12: @oneeyeman1 commented


Vadim, Replying to [comment:3 vadz]:

Igor, it's about a problem while building shared libraries. Do you really think telling people not to use shared libraries is a good solution it?

To tell you the truth I don't know anything about SeLinux. The comment I made was a suggestion for a workaround since the OP said (s)he had the problem with the shared library. I am running Gentoo and am very happy with it. I do agree that the problem needs to be fixed. Do we have a way to detect which Linux we are running on?

P.S. The answer is "no" so the bug is valid. I don't know why exactly are we accessing any shared libraries though (strip?) so someone who uses SeLinux would need to retest this and provide more information about what exactly goes wrong.

wxtrac commented 8 years ago

2016-01-24 03:24:50: @oneeyeman1 commented


It looks like its possible to find out the status of SELinux by following this. And so it should be possible to change configure/Makefile for wxGTK to fix this issue.

I'm just not qualified to change this pair and submit the patch.