From owner-freebsd-ports@FreeBSD.ORG Sun Jan 15 16:16:44 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 D479916A420 for ; Sun, 15 Jan 2006 16:16:44 +0000 (GMT) (envelope-from chris@i13i.com) Received: from admin.i13i.com (admin.i13i.com [66.90.92.83]) by mx1.FreeBSD.org (Postfix) with SMTP id 1B67243D46 for ; Sun, 15 Jan 2006 16:16:44 +0000 (GMT) (envelope-from chris@i13i.com) Received: (qmail 9415 invoked from network); 15 Jan 2006 16:38:09 -0000 Received: from mail.i13i.com (HELO webmail.i13i.com) (208.53.187.133) by admin.i13i.com with SMTP; 15 Jan 2006 16:38:09 -0000 Received: from 195.139.252.5 (proxying for 62.92.188.12) (SquirrelMail authenticated user chris@i13i.com) by webmail.i13i.com with HTTP; Sun, 15 Jan 2006 10:38:09 -0600 (CST) Message-ID: <37542.195.139.252.5.1137343089.squirrel@webmail.i13i.com> In-Reply-To: <1137337905.3790.10.camel@localhost> References: <43CA490C.7010201@wittig.name> <1137337905.3790.10.camel@localhost> Date: Sun, 15 Jan 2006 10:38:09 -0600 (CST) From: chris@i13i.com To: pav@FreeBSD.org User-Agent: SquirrelMail/1.4.5 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: ports@freebsd.org Subject: Re: 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 16:16:45 -0000 Modify the configure script so if apache to compiled using threads as there is a way to compile apache using threads to use the -lpthread gcc extension if not then dont compile in support for it i thought -lpthread was deprecated and we now use libthr or libkse ? > Alexander Wittig píše v ne 15. 01. 2006 v 14:07 +0100: >> 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 > > Shared objects does not link threading library on FreeBSD, it's assumed > that final binary will link in desired threading library. Because Apache > itself isn't threaded, this never happens. > > I'll have to find a way to force lpthread linkage onto a shared object. > > -- > Pav Lucistnik > > > May your arrow always find its mark. >