From owner-freebsd-ports@FreeBSD.ORG Sun Jan 15 13:05:37 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DA5116A41F; Sun, 15 Jan 2006 13:05:37 +0000 (GMT) (envelope-from alex@wittig.name) Received: from brieftraeger.wittig.name (hotzenplotz.wittig.name [193.111.199.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FAEC43D45; Sun, 15 Jan 2006 13:05:36 +0000 (GMT) (envelope-from alex@wittig.name) Received: from p54a14177.dip0.t-ipconnect.de ([84.161.65.119] helo=[192.168.0.97]) by brieftraeger.wittig.name with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.60 (FreeBSD)) (envelope-from ) id 1Ey7Zb-000Hd8-Uo; Sun, 15 Jan 2006 14:05:34 +0100 Message-ID: <43CA490C.7010201@wittig.name> Date: Sun, 15 Jan 2006 14:07:24 +0100 From: Alexander Wittig User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: alex@wittig.name X-Spam-Score: -4.1 X-Spam-Bar: ---- X-Spam-Report: =?ISO-8859-15?Q?score=3D-4=2E1=2C_tests=3DALL=5FTRUSTED=3D-1=2E8=2CAWL=3D?= =?ISO-8859-15?Q?0=2E299=2CBAYES=5F00=3D-2=2E599?= Cc: Pav Lucistnik Subject: ruby 1.8.4 + mod_ruby = "undefined symbol: pthread_create"? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2006 13:05:37 -0000 Hi all Thanks Pav for importing ruby 1.8.4 into the ports tree. Looks like things are going fairly well, my production systems still work after portupgrade -a :-) However there has been one problem with mod_ruby: It does not load any more with apache20. I reinstalled everything (www/mod_ruby, textproc/eruby, lang/ruby18) but it still doesn't work. Error message from apache: [root@hotzenplotz:/data/apache/wittig.name/alex]apachectl -DSSL -k restart Syntax error on line 122 of /usr/local/etc/apache2/httpd.conf: Cannot load /usr/local/libexec/apache2/mod_ruby.so into server: /usr/local/lib/libruby18.so.18: Undefined symbol "pthread_create" This only happens on FBSD 6, FBSD 4 is not affected. I assume this is because apache is not built with -pthreads while rubylib is (at least on FBSD >= 5). The workaround I use is to load libpthread into apache from httpd.conf: LoadFile /usr/lib/libpthread.so LoadModule ruby_module libexec/apache2/mod_ruby.so After this the module loads and rhtml files are parsed correctly. I did not test the threading though, because I don't have any ruby code using it. Could one of the pthreads gurus comment on this procedure? Is this a clean solution or just an ugly, error-prone hack? If the first: There should be a note included in www/mod_ruby/pkg_message and http.conf.mod_ruby should probably include the LoadFile, too. If the latter: What has to be done to make things work again? I do not recall having this problem with ruby 1.8.2. Alexander