ba34
![]() |
|
|
|
|
|||||||
| Userland Programming & Scripting C, Shell, Perl, Sed & Awk |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
When we upgraded our Now when building python2.7.3 through ports, choosing the SEM option in make config and building, semaphores do not work although they worked on 8.2 with the same settings. In a jail: Code:
# python
Python 2.7.3 (default, May 7 2012, 18:16:58)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd9
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing.queues import SimpleQueue
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/multiprocessing/queues.py", line 48, in <module>
from multiprocessing.synchronize import Lock, BoundedSemaphore, Semaphore, Condition
File "/usr/local/lib/python2.7/multiprocessing/synchronize.py", line 59, in <module>
" function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required
synchronization primitives needed will not function, see issue 3770.
Code:
security.jail.sysvipc_allowed=1 Code:
security.jail.param.allow.sysvipc=1 I am also worried by the fact that some of my related sysctl settings do not seem to be taken into account: /etc/sysctl.conf: Code:
p1003_1b.sem_nsems_max=1000 # sysctl p1003_1b.sem_nsems_maxCode:
p1003_1b.sem_nsems_max: 0 # sysctl p1003_1b.sem_nsems_max=1000Code:
p1003_1b.sem_nsems_max: 0 -> 0 Last edited by DutchDaemon; May 7th, 2012 at 23:52. Reason: Thanks for ZERO effort. READ THE RULES -> http://forums.freebsd.org/showthread.php?t=11799 |
|
#2
|
|||
|
|||
|
I am really sorry about all the rules I have broken, I did not come across these posts you refer to in the signature at the end of my post. As for the different grammar errors, I do not write often in English and I focused on technical details. I have really tried to remember in the forum registration procedure where I missed these important rules and I could not find them out. I find that a great correction job was done and I am really sorry to have cause all this work. However, as a FreeBSD Forum newbie, I find the form of the remark a little rude.
I have been carefully repeating this issue about python, semaphore and jail, which I find quite challenging, at least for me, and I am slightly upset about the 'zero effort' at the end of my own post. Once again, however, I apologize for all the broken rules and I appreciate the seriousness and quality of the forum and will do my best to be up to it. Raynald Last edited by DutchDaemon; May 8th, 2012 at 23:11. Reason: The rules are in the signup email you received straight after registering. Ignore at your peril .. ;) |
|
#3
|
|||
|
|||
|
So much for my pride: I have carefully checked my jail again and discovered that the base jail had not been updated using :
ezjail-admin update -uThe -U would not work. I re-read the man page and discovered that -U only works before installing and rebooting. To correct the base jail, I ran: ezjail-admin installWhich installed a 9.0-RELEASE base jail. The compilation of python with SEM option did work then. However, the message given by ezjaiil-admin update -uwhich says "no update necessary" is quite confusing in fact. Apart from that, jails are very satisfying in general and ezjail-admin is a very simple and great system to maintain them. Last edited by DutchDaemon; May 8th, 2012 at 23:10. Reason: Re-read: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
![]() |
| Tags |
| python sem jail 9.0 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Python27 failed to compile after upgrade to 9.0-RELEASE-i386 | beafool | Installation and Maintenance of FreeBSD Ports or Packages | 11 | February 17th, 2012 09:09 |
| [Solved] Python27 checksum mismatch | Grama | Installation and Maintenance of FreeBSD Ports or Packages | 4 | July 24th, 2011 21:47 |
| Why python27-2.7.2_1 does not compile ? | guillaume | Installation and Maintenance of FreeBSD Ports or Packages | 3 | July 12th, 2011 07:23 |
| Ports constantly tries to rebuild/reinstall lang/python27 | Grell | Installation and Maintenance of FreeBSD Ports or Packages | 2 | May 18th, 2011 19:25 |
| Upgrade from python26 to python27 didn't go well. How do I tell if it worked? | bigtoque | Installation and Maintenance of FreeBSD Ports or Packages | 1 | April 25th, 2011 02:56 |