-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache version does not install on OpenBSD #189
Comments
From honglilai on June 15, 2008 01:53:21 Have you tried version 2.0 RC 1 as well? |
From averageyeo on June 18, 2008 13:50:36 Confirming it doesn't work in 2.0 RC1. |
From honglilai on July 24, 2008 07:18:37 Could you try the latest git version? A number of OpenBSD fixes have been committed. |
From averageyeo on July 24, 2008 12:51:44 Tried with latest git version; get a bit farther, but now have this error: ./bin/passenger-install-apache2-moduleWelcome to the Phusion Passenger Apache 2 module installer, v2.0.2. This installer will guide you through the entire installation process. It Here's what you can expect from the installation process:
Don't worry if anything goes wrong. This installer will advise you on how to Press Enter to continue, or Ctrl-C to abort. Checking for required software...
* rack... foundWARNING: Apache doesn't seem to be compiled with the 'prefork' or 'worker' MPM Passenger has only been tested on Apache with the 'prefork' and the 'worker' Press Ctrl-C to abort this installer (recommended). Compiling and installing Apache 2 module... It looks like something went wrong Please read our Users guide for troubleshooting tips: /usr/src/passenger/doc/Users guide.html If that doesn't help, please use our support facilities at: http://www.modrails.com/ We'll do our best to help you. |
From aschrafl on November 08, 2008 06:54:50 tested it on OpenBSD 4.4 AMD64 MT. |
From aschrafl on November 08, 2008 07:55:57 got the newest dev version form git repository and it works. |
From aschrafl on November 08, 2008 08:27:10 an other update: can compile and install but httpd2 segfaults after startup. |
From ecgrieco on March 11, 2009 14:46:47 Rebuilt Apache 2.2.11 with debugging info (CPPFLAGS="-O0 -ggdb -g3"). before the passenger config lines are added to the httpd.conf file: once the passengner config lines are added to the httpd.conf file: (gdb) r -t I don't really have the time to debug this but if anyone has suggestions as to where |
From honglilai on March 11, 2009 15:36:35 I think it's related to the way static C++ objects are initialized on OpenBSD. We'll |
From ecgrieco on March 11, 2009 16:12:53 Well, the sooner the better. I hear good things about Passenger but as it does not Let me know if there is any way I can assist you. |
From honglilai on March 12, 2009 06:41:56 Actually, upon further investigation, I have reason to suspect that this is a bug in Consider the following minimal Apache module which does absolutely nothing (mod_dummy.c): #include <httpd.h> module AP_MODULE_DECLARE_DATA passenger_module = { If you compile it with g++ -shared mod_dummy.c -fPIC -o mod_dummy.so -D_POSIX_THREADS -D_REENTRANT then Apache will start up just fine. But if you compile it with '-lpthread' then g++ -shared mod_dummy.c -fPIC -o mod_dummy.so -D_POSIX_THREADS -D_REENTRANT Not linking to pthread is not an option because Phusion Passenger uses threading |
From bernd.ahlers on March 12, 2009 20:04:03 I fixed the segfault by building apache2 with threaded apr and apr-util. A WIP port of passenger can be found here: http://gitorious.org/projects/openbsd-ports-wip/repos/mainline/trees/master/www/ruby-passenger The apache2 now starts with the passenger module loaded but if I try to open an Here's the apache error log: [ pid=14033 file=Hooks.cpp:762 time=2009-03-13 03:53:46.271 ]: [ pid=14033 file=ApplicationPoolServer.h:528 time=2009-03-13 03:53:46.359 ]: Attachment: apache-httpd-2.2.11_1.20090313.diff |
From honglilai on March 13, 2009 01:42:31 Labels: OpSys-BSD Portability |
From nadims on May 14, 2009 19:00:46 Still not working with 4.5 release of may 2009. I tried both using apache2 2.2.9 from pkgs and apache 2 2.2.11 |
From honglilai on May 17, 2009 07:41:28 What about the Nginx version, does that work? |
From nadims on May 19, 2009 22:38:29 It seems to compile okey, but when it compiles Nginx it crashes when adding the passenger module. I am Information where it says about phtreads being user-level library in openbsd. http://www.openbsd.org/cgi-bin/man.cgi?query=pthreads&sektion=3 Reading more into it, a whole lots of ports have problems because of the way pthread is handle in openbsd. Attachment: nginx_build.txt |
From nadims on May 19, 2009 22:44:09 Another link describing the pthread problem http://kernigh.pbworks.com/OpenBSD OpenBSD has an inferior implementation of pthreads(3). OpenBSD, like other systems that resemble Unix, provides the pthreads interface for multithreaded The other systems provide kernel threads through pthreads. OpenBSD still provides pthreads through a user- |
From nadims on May 20, 2009 13:42:12 I got the git version, and it now passes the part were it crashed before, but now it Attachment: nginx_build2.txt |
From honglilai on May 20, 2009 14:14:26 Looks like it needs to link to the math library. Can you modify ext/nginx/config and |
From nadims on May 20, 2009 16:13:01 Adding -lm fixed it, it now compiles, installs and works. This is on a stock Openbsd 4.5 released on May 2009. Nginx and Passenger and Rails = Works (using git version and adding -lm) Woooohooooo..... I tested my first ruby app and it seems to work. Thanks alot for |
From nadims on May 20, 2009 16:18:35 By the way, I am up for testing whenever you want to test the Apache Module version |
From honglilai on May 20, 2009 16:26:45 I'll whip up an Nginx patch when I have the time. Could you post the output of the |
From nadims on May 20, 2009 17:19:54 18:07:43 #uname |
From nadims on May 21, 2009 10:19:22 I checked that commit, and it works out of the box, no more modifications needed. |
From honglilai on May 21, 2009 10:38:39 Summary: Apache version does not install on OpenBSD |
From redelman on June 16, 2009 10:40:28 With passenger 2.2.2 and latest git as of today, on OpenBSD 4.5-stable (for amd64) Attachment: httpd2.core |
From honglilai on February 04, 2013 02:38:12 Last time I checked OpenBSD did not have a sane threading system, which Phusion Passenger relies on. This issue should be rechecked with the latest OpenBSD version. |
From nadims on February 04, 2013 03:48:15 Latest OpenBSD 5.2 has pthreads support. Look at the change log at http://www.openbsd.org/52.html pthreads(3) support: |
From nadims on February 04, 2013 03:51:24 I can try it on a latest version (5.2) if you like? |
From honglilai on February 04, 2013 03:57:24 Yes please try git master on latest OpenBSD. |
From honglilai on February 04, 2013 15:31:57 Git master is confirmed to work on OpenBSD 5.2. Status: Fixed |
From damen%thecolefamily.ca@gtempaccount.com on June 11, 2008 22:14:40
What steps will reproduce the problem? 1. install tarball, and run installer:
bin/passenger-install-apache2-module
Welcome to the Passenger Apache 2 module installer, v1.0.5.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
Checking for required software...
/usr/local/bin/apr-1-config
* fastthread... found
Compiling and installing Apache 2 module...
cd /opt/passenger-1.0.5
rake clean apache2
(in /opt/passenger-1.0.5)
In ext/apache2:
rm -rf Utils.o Logging.o Configuration.o Hooks.o mod_passenger.o
mod_passenger.so
In ext/passenger:
rm -f Makefile
In ext/boost/src:
rm -f libboost_thread.a *.o
In test:
rm -f Apache2ModuleTests *.o
In benchmark:
rm -f DummyRequestHandler
In ext/boost/src:
g++ -O2 -fPIC -I../.. -D_REENTRANT -DNDEBUG -c *.cpp
In file included from ../../boost/thread/detail/config.hpp:21,
from barrier.cpp:7:
../../boost/config/requires_threads.hpp:29:4: #error "Threading support
unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS"
In file included from ../../boost/thread/barrier.hpp:12,
from barrier.cpp:8:
../../boost/thread/mutex.hpp:59: error:
cv_state' was not declared in this scope ../../boost/thread/mutex.hpp:59: error:
state' was not declared in this scope../../boost/thread/mutex.hpp:59: error: invalid data member initialization
../../boost/thread/mutex.hpp:59: error: (use
=' to initialize static data members) ../../boost/thread/mutex.hpp:59: error: variable or field
do_lock' declaredvoid
../../boost/thread/mutex.hpp:59: error: declaration of
int boost::mutex::do_lock' ../../boost/thread/mutex.hpp:57: error: conflicts with previous declaration
void boost::mutex::do_lock()'
../../boost/thread/mutex.hpp:60: error:
cv_state' was not declared in this scope ../../boost/thread/mutex.hpp:60: error:
state' was not declared in this scope../../boost/thread/mutex.hpp:60: error: invalid data member initialization
../../boost/thread/mutex.hpp:60: error: variable or field
do_unlock' declared void ../../boost/thread/mutex.hpp:60: error: declaration of
intboost::mutex::do_unlock'
../../boost/thread/mutex.hpp:58: error: conflicts with previous declaration
void boost::mutex::do_unlock()' ../../boost/thread/mutex.hpp:101: error:
cv_state' was not declared in thisscope
../../boost/thread/mutex.hpp:101: error:
state' was not declared in this scope ../../boost/thread/mutex.hpp:101: error: invalid data member initialization ../../boost/thread/mutex.hpp:101: error: variable or field
do_lock' declaredvoid
../../boost/thread/mutex.hpp:101: error: declaration of
int boost::try_mutex::do_lock' ../../boost/thread/mutex.hpp:98: error: conflicts with previous declaration
void boost::try_mutex::do_lock()'
../../boost/thread/mutex.hpp:102: error:
cv_state' was not declared in this scope ../../boost/thread/mutex.hpp:102: error:
state' was not declared in this scope../../boost/thread/mutex.hpp:102: error: invalid data member initialization
../../boost/thread/mutex.hpp:102: error: variable or field
do_unlock' declared void ../../boost/thread/mutex.hpp:102: error: declaration of
intboost::try_mutex::do_unlock'
../../boost/thread/mutex.hpp:100: error: conflicts with previous declaration
void boost::try_mutex::do_unlock()' ../../boost/thread/mutex.hpp:145: error:
cv_state' was not declared in thisscope
../../boost/thread/mutex.hpp:145: error:
state' was not declared in this scope ../../boost/thread/mutex.hpp:145: error: invalid data member initialization ../../boost/thread/mutex.hpp:145: error: variable or field
do_lock' declaredvoid
../../boost/thread/mutex.hpp:145: error: declaration of
int boost::timed_mutex::do_lock' ../../boost/thread/mutex.hpp:141: error: conflicts with previous declaration
void boost::timed_mutex::do_lock()'
../../boost/thread/mutex.hpp:146: error:
cv_state' was not declared in this scope ../../boost/thread/mutex.hpp:146: error:
state' was not declared in this scope../../boost/thread/mutex.hpp:146: error: invalid data member initialization
../../boost/thread/mutex.hpp:146: error: variable or field
do_unlock' declared void ../../boost/thread/mutex.hpp:146: error: declaration of
intboost::timed_mutex::do_unlock'
../../boost/thread/mutex.hpp:144: error: conflicts with previous declaration
void boost::timed_mutex::do_unlock()' ../../boost/thread/detail/lock.hpp: In instantiation of
boost::detail::thread::lock_opsboost::mutex':../../boost/thread/detail/lock.hpp:76: instantiated from
void boost::detail::thread::scoped_lock<Mutex>::lock() [with Mutex = boost::mutex]' ../../boost/thread/detail/lock.hpp:66: instantiated from
boost::detail::thread::scoped_lock::scoped_lock(Mutex&, bool) [withMutex = boost::mutex]'
barrier.cpp:26: instantiated from here
../../boost/thread/detail/lock.hpp:29: error: no type named
cv_state' in
class boost::mutex'
../../boost/thread/detail/lock.hpp:48: error: no type named
cv_state' in
class boost::mutex'
../../boost/thread/detail/lock.hpp:52: error: no type named
cv_state' in
class boost::mutex'
../../boost/thread/condition.hpp: In member function
void boost::condition::do_wait(M&) [with M = boost::mutex]': ../../boost/thread/condition.hpp:93: instantiated from
voidboost::condition::wait(L&) [with L =
boost::detail::thread::scoped_lockboost::mutex]'
barrier.cpp:38: instantiated from here
../../boost/thread/condition.hpp:146: error: no type named
lock_state' in
class boost::detail::thread::lock_opsboost::mutex'
../../boost/thread/condition.hpp:147: error: `state' undeclared (first use this
function)
../../boost/thread/condition.hpp:147: error: (Each undeclared identifier is
reported only once for each function it appears in.)
In file included from ../../boost/thread/detail/config.hpp:21,
from condition.cpp:7:
../../boost/config/requires_threads.hpp:...
Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=88
The text was updated successfully, but these errors were encountered: