From owner-freebsd-ports@FreeBSD.ORG Sun Jan 15 15:11:50 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 80E0A16A41F for ; Sun, 15 Jan 2006 15:11:50 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from hood.oook.cz (hood.oook.cz [195.250.137.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBC5043D45 for ; Sun, 15 Jan 2006 15:11:47 +0000 (GMT) (envelope-from pav@FreeBSD.org) Received: from ikaros.oook.cz (localhost [127.0.0.1]) by hood.oook.cz (8.13.4/8.13.4) with ESMTP id k0FFBjbI087141 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Jan 2006 16:11:45 +0100 (CET) (envelope-from pav@FreeBSD.org) Received: (from pav@localhost) by ikaros.oook.cz (8.13.4/8.13.4/Submit) id k0FFBjAB087140; Sun, 15 Jan 2006 16:11:45 +0100 (CET) (envelope-from pav@FreeBSD.org) X-Authentication-Warning: ikaros.oook.cz: pav set sender to pav@FreeBSD.org using -f From: Pav Lucistnik To: Alexander Wittig In-Reply-To: <43CA490C.7010201@wittig.name> References: <43CA490C.7010201@wittig.name> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-v5vIwglI/S7RxpYM185Z" Date: Sun, 15 Jan 2006 16:11:45 +0100 Message-Id: <1137337905.3790.10.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port 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 Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jan 2006 15:11:50 -0000 --=-v5vIwglI/S7RxpYM185Z Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Alexander Wittig p=ED=B9e v ne 15. 01. 2006 v 14:07 +0100: > Hi all >=20 > Thanks Pav for importing ruby 1.8.4 into the ports tree. Looks like=20 > things are going fairly well, my production systems still work after=20 > portupgrade -a :-) > However there has been one problem with mod_ruby: It does not load any=20 > more with apache20. I reinstalled everything (www/mod_ruby,=20 > textproc/eruby, lang/ruby18) but it still doesn't work. Error message=20 > from apache: >=20 > [root@hotzenplotz:/data/apache/wittig.name/alex]apachectl -DSSL -k restar= t > Syntax error on line 122 of /usr/local/etc/apache2/httpd.conf: > Cannot load /usr/local/libexec/apache2/mod_ruby.so into server:=20 > /usr/local/lib/libruby18.so.18: Undefined symbol "pthread_create" >=20 > This only happens on FBSD 6, FBSD 4 is not affected. I assume this is=20 > because apache is not built with -pthreads while rubylib is (at least on=20 > FBSD >=3D 5). The workaround I use is to load libpthread into apache from= =20 > httpd.conf: >=20 > 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. --=20 Pav Lucistnik May your arrow always find its mark. --=-v5vIwglI/S7RxpYM185Z Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDymYxntdYP8FOsoIRAqUpAJ4g+aiz+YV5RS02fPG/zbJI2GDUhgCfZfyf +R/O6NIStIlpmEyzwOVdEXw= =9c8h -----END PGP SIGNATURE----- --=-v5vIwglI/S7RxpYM185Z--