-
Notifications
You must be signed in to change notification settings - Fork 547
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
"gem install passenger" fails Solaris 10/SPARC (struct msghdr) #119
Comments
From honglilai on April 14, 2008 12:51:17 Could you add '#define _KERNEL' to the beginning of ext/passenger/native_support.c |
From honglilai on April 14, 2008 15:36:21 Labels: OpSys-Solaris Portability |
From martin.carpenter on April 15, 2008 01:15:59 Either definition (_KERNEL or _XPG4_2) is sufficient to resolve the issue (and not #define _XPG_4_2 seems a more sensible choice? pwd/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.1/ext/passenger makegcc -I. -I/usr/local/lib/ruby/1.8/sparc-solaris2.10 -I/usr/local/lib/ruby/1.8/sparc- |
From honglilai on April 15, 2008 01:57:24 Compilation succeeds, that's good. But does Passenger actually work after this? |
From martin.carpenter on April 15, 2008 15:31:16 Compilation continues, but the build does not succeed. I have tested manually as pwd/usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.1 rake clean... rake... I've attached the script of my session, with _XPG4_2 #def'ed early in There are a two issues:
Attached full script from my test. Attachment: typescript |
From yukkestar on April 29, 2008 19:35:36 fails Solaris 10/i386 $ uname -a |
From robbie.allen on May 01, 2008 13:18:11 Any update on a fix? It fails for me too: [DEV:/] admin$ uname -a |
From honglilai on May 01, 2008 15:04:30 Well none of our team have Solaris, so a patch would be much appreciated. |
From Rawn027 on May 01, 2008 16:25:13 Something that might be worth it is a development VM for Solaris. If you need any suggestions of tips, let me |
From ausbits on May 06, 2008 07:21:03 I see on http://blog.igorminar.com/2006/09/solaris-lighttpd-fastcgi-ssl-howto.html that the Sun C compiler was required in order to successfully compile ruby-fcgi. I This is a totally naive comment on my part, but I am keen to see passenger up and |
From chris.a.williams on May 20, 2008 07:19:57 Just a note that someone did manage to get it compiled under Sun Studio on an David Kleiner is also trying and ran into issues: http://opensolaris.org/jive/thread.jspa?threadID=57357&tstart=15 and http://groups.google.com/group/phusion-passenger/browse_thread/thread/6870c2f026926ae2/0c6deb7df69f9d37 I'd really like to get this working on my Joyent box, it seems like combined we're Has anyone managed to get it to work? I can provide SSH/SFTP access to a Joyent box |
From chris.a.williams on May 20, 2008 07:24:18 I should note that the box I'm trying to get it compiled on outputs the following for |
From harrisj.home on June 03, 2008 08:20:42 I actually got mod_rails to finally compile on Solaris 10 x86 with GCC by making a
And that seemed to do the trick. The hard part was figuring out how to enable various |
From harrisj.home on June 17, 2008 09:28:13 Okay, I've gotten in working on Solaris x86, but need help testing the patch on other |
From alex.kiernan on September 10, 2008 06:27:27 I've just been trying to get passenger to work on Solaris 10 Sparc (using the code Attachment: solaris-sparc.diff |
From honglilai on September 10, 2008 09:19:09 Thanks, I've applied the patch. Can anyone else confirm whether the problem is now |
From honglilai on September 10, 2008 09:19:30 Thanks, I've applied the patch. Can anyone else confirm whether the problem is now |
From steelfu on December 10, 2008 19:59:25 I've tried installing Passenger via 2.0.5 gem on Open Solaris on Joyent but failed with the same error. I did get it |
From honglilai on December 11, 2008 01:37:55 Status: Fixed |
From martin.carpenter on April 14, 2008 20:33:28
Running the command:
gem install passenger
fails at the build stage on Solaris 10 SPARC (possibly also x86:
untested). Errors and system information are below. A typical compiler
error is:
native_support.c:63: error: structure has no member named `msg_control'
See the following guard in <sys/socket.h>:
if defined(_XPG4_2) || defined(_KERNEL)
void msg_control; / ancillary data /
socklen_t msg_controllen; / ancillary data buffer len /
int msg_flags; / flags on received message */
else
gem install passenger
Updating metadata for 7 gems from http://gems.rubyforge.org/ .......
complete
Bulk updating Gem source index for: http://gems.rubyforge.org/ Building native extensions. This could take a while...
ERROR: Error installing passenger:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install passenger
creating Makefile
make
gcc -I. -I/usr/local/lib/ruby/1.8/sparc-solaris2.10 -I/usr/local/lib/ruby/
1.8/sp
arc-solaris2.10 -I. -I/usr/local/include -I/usr/local/ssl/include -I/usr/
local/i
nclude/ncurses -I/usr/local/BerkeleyDB.4.2/include -I/usr/openwin/include -
fPIC
-O2 -L/usr/local/lib -R/usr/local/lib -L/usr/local/ssl/lib -R/usr/local/
ssl/lib
-L/usr/openwin/lib -R/usr/openwin/lib -c native_support.c
native_support.c: In function
send_fd': native_support.c:63: error: structure has no member named
msg_control'native_support.c:64: error: structure has no member named
msg_controllen' native_support.c:65: error: structure has no member named
msg_flags'native_support.c: In function
recv_fd': native_support.c:107: error: structure has no member named
msg_control'native_support.c:108: error: structure has no member named
msg_controllen' native_support.c:109: error: structure has no member named
msg_flags'native_support.c:120: error: structure has no member named `msg_controllen'
make: *** [native_support.o] Error 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/
passenger-1
.0.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/passenger-1.0.1/ext/
passenge
r/gem_make.out
System/environment information follows:
$ uname -a
SunOS ftl1sutst04 5.10 Generic_125100-06 sun4u sparc SUNW,UltraAX-i2
$
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [sparc-solaris2.10]
ftl1sutst04 $ pkginfo -x SMCruby
SMCruby ruby
(sparc) 1.8.6
$
$ gem -v
1.1.1
$
$ gcc -v
Reading specs from /opt/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.2/specs
Configured with: ../gcc-3.4.2/configure --prefix=/opt/sfw --with-ld=/usr/
ccs/bin/ld --with-gnu-as --with-as=/opt/sfw/bin/gas --enable-shared --
disable-libgcj
Thread model: posix
gcc version 3.4.2
$
Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=18
The text was updated successfully, but these errors were encountered: