building passsenger beta2 in smartos

84 views
Skip to first unread message

Stuart Harland

unread,
Jan 30, 2015, 4:25:44 AM1/30/15
to
Hello,

Been attempting to install passenger 5 beta2 using the gem file, however it won't compile under smartos and keeps wigging out.

I've posted the output from it along with some info about the build environment in https://gist.github.com/essjayhch/0ba22471555b6686ee34.

Any help would be much appreciated.

Regards,

Stuart

Edit:

I have just attempted to build passenger 4 stable using the same mechanism and got this output:




passenger start
 --> Downloading Phusion Passenger support binaries for your platform
     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.58/support-x86-solaris2.11.tar.gz: The requested URL returned error: 404 Not Found
     Trying next mirror...
     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.58/support-x86-solaris2.11.tar.gz: The requested URL returned error: 403 Forbidden
     No binaries are available for your platform. Will compile them from source
 --> Downloading web helper for your platform
     Could not download https://oss-binaries.phusionpassenger.com/binaries/passenger/by_release/4.0.58/webhelper-1.6.2-x86-solaris2.11.tar.gz: The requested URL returned error: 404 Not Found
     Trying next mirror...
     Could not download https://s3.amazonaws.com/phusion-passenger/binaries/passenger/by_release/4.0.58/webhelper-1.6.2-x86-solaris2.11.tar.gz: The requested URL returned error: 403 Forbidden
     No binary is available for your platform. Will compile it from source.

Checking for required software...

 * Checking for C compiler...
      Found: yes
      Location: /opt/local/bin/cc
 * Checking for C++ compiler...
      Found: yes
      Location: /opt/local/bin/c++
 * Checking for GNU make...
      Found: yes
      Location: /opt/local/bin/gmake
 * Checking for OpenSSL support for Ruby...
      Found: yes
 * Checking for RubyGems...
      Found: yes
 * Checking for Rake (associated with /opt/local/bin/ruby214)...
      Found: yes
      Location: /opt/local/bin/ruby214 /opt/local/bin/rake
 * Checking for rack...
      Found: yes
 * Checking for Curl development headers with SSL support...
      Found: yes
      curl-config location: /opt/local/bin/curl-config
      Header location: /opt/local/include/curl/curl.h
      Version: libcurl 7.38.0
      Usable: yes
      Supports SSL: yes
 * Checking for OpenSSL development headers...
      Found: yes
      Location: /opt/local/include/openssl/ssl.h
 * Checking for Zlib development headers...
      Found: yes
      Location: /opt/local/include/zlib.h
 * Checking for PCRE development headers...
      Found: yes
      Location: /opt/local/include/pcre.h
 * Checking for daemon_controller >= 1.1.0...
      Found: yes
      Installed version: 1.2.0

Installing Phusion Passenger Standalone...
Downloading web helper source code...
[*********************************            ] Compiling Phusion Passenger...
*** ERROR: the following command failed:
rake aborted!
Command failed with status (2): [cd /var/lib/passenger/standalone/4.0.58/su...]
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/file_utils.rb:66:in `block in create_shell_runner'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `call'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `sh'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/file_utils_ext.rb:37:in `sh'
/opt/local/lib/ruby/gems/2.1.4/gems/passenger-4.0.58/build/common_library.rb:143:in `block in <top (required)>'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/opt/local/lib/ruby/2.1.4/monitor.rb:211:in `mon_synchronize'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/opt/local/lib/ruby/2.1.4/monitor.rb:211:in `mon_synchronize'
/opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
  /opt/local/lib/ruby/2.1.4/monitor.rb:211:in `mon_synchronize'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:150:in `invoke_task'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block (2 levels) in top_level'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `each'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:106:in `block in top_level'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:115:in `run_with_threads'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:100:in `top_level'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:78:in `block in run'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:176:in `standard_exception_handling'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/lib/rake/application.rb:75:in `run'
  /opt/local/lib/ruby/gems/2.1.4/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
  /opt/local/bin/rake:23:in `load'
  /opt/local/bin/rake:23:in `<main>'
  Tasks: TOP => nginx_without_native_support => /var/lib/passenger/standalone/4.0.58/support-x86-solaris2.11/agents/PassengerHelperAgent => /var/lib/passenger/standalone/4.0.58/support-  x86-solaris2.11/libev/.libs/libev.a

Hongli Lai

unread,
Jan 30, 2015, 6:21:25 AM1/30/15
to phusion-passenger
Unfortunately I cannot see what is wrong from that output. Could you
run passenger-install-nginx-module, specify '/tmp/nginx' as prefix,
and post the output?

On Fri, Jan 30, 2015 at 10:25 AM, Stuart Harland
<s.ha...@livelinktechnology.net> wrote:
> Hello,
>
> Been attempting to install passenger 5 beta2 using the gem file, however it
> won't compile under smartos and keeps wigging out.
>
> I've posted the output from it along with some info about the build
> environment in https://gist.github.com/essjayhch/0ba22471555b6686ee34.
>
> Any help would be much appreciated.
>
> Regards,
>
> Stuart
>
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/ea5f1d8c-1df9-4b17-a884-76f4896a8b15%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Stuart Harland

unread,
Feb 4, 2015, 6:20:54 AM2/4/15
to phusion-...@googlegroups.com, hon...@phusion.nl
PSA the build output for

  passenger-install-nginx-module --prefix=/tmp/nginx --auto

It should be noted that the original build was for passenger standalone, however the thing that caused that nginx build to fail was also libev.

On inspection it appears that there is most likely a linking issue, SmartOS has things in different places to the normal linux builds.

Stuart
ngbuild.txt

Stuart Harland

unread,
Feb 4, 2015, 1:32:53 PM2/4/15
to phusion-...@googlegroups.com, hon...@phusion.nl
So I ran the requested command and the output from that is located at https://gist.github.com/essjayhch/33782a0a85d3c4ed280e


On Friday, 30 January 2015 11:21:25 UTC, Hongli Lai wrote:

Hongli Lai

unread,
Feb 4, 2015, 2:57:08 PM2/4/15
to phusion-passenger
This looks like a problem in the version of libev we bundle. Looks
like it doesn't compile on SmartOS.

Can you try compiling the latest version of libev? Does it work?
http://software.schmorp.de/pkg/libev.html
> https://groups.google.com/d/msgid/phusion-passenger/1013452e-4ccf-4804-b954-5c0c65752989%40googlegroups.com.

Stuart Harland

unread,
Feb 5, 2015, 5:48:55 AM2/5/15
to phusion-...@googlegroups.com, hon...@phusion.nl
Compiling libev from source fails with the following.

It should be noted that there is a libev build in the smartos pkgin repository. We have also had a nose at the passenger4 package in there.

./configure
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-solaris2.11
checking host system type... x86_64-pc-solaris2.11
checking how to print strings... print -r
checking for a sed that does not truncate output... /opt/local/bin/sed
checking for grep that handles long lines and -e... /opt/local/bin/grep
checking for egrep... /opt/local/bin/grep -E
checking for fgrep... /opt/local/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-solaris2.11 file names to x86_64-pc-solaris2.11 format... func_convert_file_noop
checking how to convert x86_64-pc-solaris2.11 file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... print -r --
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking port.h usability... yes
checking port.h presence... yes
checking for port.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/signalfd.h usability... no
checking sys/signalfd.h presence... no
checking for sys/signalfd.h... no
checking for inotify_init... yes
checking for epoll_ctl... yes
checking for kqueue... no
checking for port_create... yes
checking for poll... yes
checking for select... yes
checking for eventfd... yes
checking for signalfd... no
checking for clock_gettime... yes
checking for nanosleep... yes
checking for library containing floor... -lm
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
[root@3ecd7e7b-8e4b-c51a-da1e-bceb3c1534fb ~/libev]# make
make  all-am
make[1]: Entering directory '/root/libev'
/bin/sh ./libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.     -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c -o ev.lo ev.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c ev.c  -fPIC -DPIC -o .libs/ev.o
ev.c:1625:31: warning: 'ev_default_loop_ptr' initialized and declared 'extern' [enabled by default]
ev.c: In function 'infy_add':
ev.c:4027:7: error: too few arguments to function 'statfs'
In file included from ev.c:423:0:
/usr/include/sys/statfs.h:75:5: note: declared here
ev.c:4028:23: error: 'struct statfs' has no member named 'f_type'
ev.c:4029:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4030:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4031:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4032:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4033:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4034:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4035:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4036:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4037:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4038:26: error: 'struct statfs' has no member named 'f_type'
ev.c:4039:26: error: 'struct statfs' has no member named 'f_type'
ev.c: In function 'infy_cb':
ev.c:4134:13: error: 'NAME_MAX' undeclared (first use in this function)
ev.c:4134:13: note: each undeclared identifier is reported only once for each function it appears in
Makefile:466: recipe for target 'ev.lo' failed
make[1]: *** [ev.lo] Error 1
make[1]: Leaving directory '/root/libev'
Makefile:350: recipe for target 'all' failed
make: *** [all] Error 2

Hongli Lai

unread,
Feb 5, 2015, 6:12:15 AM2/5/15
to phusion-passenger
Does the SmartOS package for libev contain patches? If so, where can I
find those patches?

On Thu, Feb 5, 2015 at 11:48 AM, Stuart Harland
> https://groups.google.com/d/msgid/phusion-passenger/017f857e-26a8-4e66-9722-569d4af80fb1%40googlegroups.com.

Stuart Harland

unread,
Feb 5, 2015, 6:24:27 AM2/5/15
to phusion-...@googlegroups.com
So the package that is in there is based on 4.15,

the only patch I can find in it manipulates ev.c

https://github.com/jsonn/pkgsrc/tree/trunk/devel/libev has the pkgsrc source code for building the pkgin module if that's of any help
=====

$NetBSD: patch-ev.c,v 1.1 2014/11/10 18:09:10 joerg Exp $

--- ev.c.orig   2014-11-09 20:47:55.000000000 +0000
+++ ev.c
@@ -963,7 +963,7 @@ ecb_inline uint64_t ecb_rotr64 (uint64_t
   }
 #endif
 
-#if ECB_GCC_VERSION(4,5)
+#if ECB_GCC_VERSION(4,5) || defined(__clang__)
   #define ecb_unreachable() __builtin_unreachable ()
 #else
   /* this seems to work fine, but gcc always emits a warning for it :/ */

=====



You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/cOL7eMypP4g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.

To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.

For more options, visit https://groups.google.com/d/optout.



--


Stuart Harland
Platform Developer

LiveLink - Innovative kiosks for ordering photos, cards and gifts
020 7183 1411    www.LiveLinkTechnology.net    Fax: 070 9212 1288
Head Office: LiveLink House, 8 - 10 East Street, Havant PO9 1AQ

Hongli Lai

unread,
Feb 5, 2015, 7:07:12 AM2/5/15
to phusion-passenger
I see in the port's Makefile this:

# Explicitly disable inotify on SunOS, assumes Linux statfs.
CONFIGURE_ENV.SunOS+= ac_cv_header_sys_inotify_h=no

What happens if you configure libev with the environment variable
ac_cv_header_sys_inotify_h=no? Does that make compilation succeed?

On Thu, Feb 5, 2015 at 12:24 PM, Stuart Harland
> https://groups.google.com/d/msgid/phusion-passenger/CAAw0ORY8xs5LJeLnXfw0FirKBhBUjpGNExs-viFpCj_hMYFYdg%40mail.gmail.com.

Hongli Lai

unread,
Feb 10, 2015, 10:37:51 AM2/10/15
to phusion-passenger
Can you re-run passenger-install-nginx-module with the environment
variable ac_cv_header_sys_inotify_h=no and tell me whether that works?
> https://groups.google.com/d/msgid/phusion-passenger/de995b1b-f7c2-4840-8829-26e93d3f8e81%40googlegroups.com.

Qapf

unread,
May 28, 2016, 10:13:42 PM5/28/16
to Phusion Passenger Discussions, hon...@phusion.nl
I found this thread about a year later trying to install another tool on SmartOS that required libev. 

Raising setting ac_cv_header_sys_inotify_h=no did in fact allow libev to compile successfully, bypassing the error: 'struct statfs' has no member named 'f_type' error. 
Reply all
Reply to author
Forward
0 new messages