Opened 15 years ago
Closed 13 years ago
#20589 closed defect (fixed)
p5-cgi-speedycgi fails on 10.5 server
Reported by: | schneider.pj@… | Owned by: | markd@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: | smokeping |
Description (last modified by mf2k (Frank Schima))
After installing smokeping, you get instructions how to setup smokeping.
It says: "-For Apple's Apache 1, manually copy mod_speedycgi.so and smokeping.cgi into place ...
sudo cp ${prefix}/share/doc/speedycgi/mod_speedycgi.so /usr/libexec/httpd sudo cp ${prefix}${smokedata}/smokeping.cgi /Library/WebServer/CGI-Executables
... and add the lines below to /etc/httpd/httpd.conf.
LoadModule speedycgi_module libexec/mod_speedycgi.so AddModule mod_speedycgi.c"
This may be correct for previous versions of Mac OS X, but in Mac OS X 10.5, Apple ships Apache2. The correct instructions could be these: "-For Apple's Apache 2, manually copy mod_speedycgi.so and smokeping.cgi into place ...
sudo cp ${prefix}/share/doc/speedycgi/mod_speedycgi.so /usr/libexec/apache2 sudo cp ${prefix}${smokedata}/smokeping.cgi /Library/WebServer/CGI-Executables
... and add the lines below to /etc/apache2/httpd.conf.
LoadModule speedycgi_module libexec/mod_speedycgi.so"
I tested it, and it works.
Best regards.
Peter
Change History (21)
comment:1 Changed 15 years ago by blb@…
Owner: | changed from macports-tickets@… to markd@… |
---|
comment:2 Changed 15 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
comment:3 Changed 15 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 15 years ago by northnet04@…
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I have been trying to get a successful smokeping @2.4.2 install on a 10.5.8 server. Last night I uninstalled and cleaned out all of my previous ports and started fresh this morning. After installing macports and running a selfupdate I did an install smokeping as the first install.
During install there were warnings after Staging p5-cgi-speedycgi into destroot;
Warning: violation by /opt/local/apache2 Warning: p5-cgi-speedycgi violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing p5-cgi-speedycgi @2.22_3 ---> Activating p5-cgi-speedycgi @2.22_3
Subsequently, I did not find mod_speedycgi.so under ${prefix}/share/doc/speedycgi/mod_speedycgi.so but instead under /opt/local/apache2/modules.
Unfortunately, I also have a problem with the module, as it fails to load under apples apache2 due to the wrong architecture, but that's another problem. I just wanted to point out that apparently the path to the module has changed.
comment:5 Changed 15 years ago by jmroot (Joshua Root)
Type: | request → defect |
---|
comment:6 follow-up: 7 Changed 15 years ago by markd@…
The path is ${prefix}/share/doc/speedycgi/mod_speedycgi.so only if you use the variant apple_apache. Then you need to copy it to /usr/libexec/apache2. (I fixed a minor error with the ui_msg just now in r66423) The ui_msg uses an isset_variant keyword to display the right ui_msg block.
It sounds like you want to use Apple's built-in Apache but didn't use the apple_apache variant. Can you try that and let me know?
If you don't use the apple_apache variant, macports apache2 is installed and the file is placed in ${prefix}/apache2/modules.
comment:7 Changed 15 years ago by northnet04@…
Replying to markd@…:
The path is ${prefix}/share/doc/speedycgi/mod_speedycgi.so only if you use the variant apple_apache. Then you need to copy it to /usr/libexec/apache2. (I fixed a minor error with the ui_msg just now in r66423) The ui_msg uses an isset_variant keyword to display the right ui_msg block.
It sounds like you want to use Apple's built-in Apache but didn't use the apple_apache variant. Can you try that and let me know?
If you don't use the apple_apache variant, macports apache2 is installed and the file is placed in ${prefix}/apache2/modules.
I'd have to uninstall, clean and run it again to be positive, but I think I tried removing macports in its entirety, instlalled, selfupdate, and then install smokeping with the +apple_apache variant as the first and only 'install' and I still ended up with the module installed under the apache2 port. I thought that odd, that it would even install apache when I'm telling it I don't need it.
My stubborn problem with smokeping is the mod_speedycgi.so, as it refuses to make properly for my platform. The apple apache2 server pukes due to it being the wrong architecture.
I did do a complete uninstall, clean, install etc., and I ran perl5.8 and apache2 with the universal variant specified, then I ran smokeping with the apple_apache switch and speedycgi did end up where it was supposed to be. However, the mod_speedycgi.so is still not right for my archtitecture.
I'll do another complete uninstall, clean and install from scratch and see where it ends up. Any idea why speedycgi wouldn't be right for my platform? I'll run it with -d this time.
Model Name: Xserve
Model Identifier: Xserve1,1 Processor Name: Dual-Core Intel Xeon Processor Speed: 2.66 GHz Number Of Processors: 2 Total Number Of Cores: 4 L2 Cache (per processor): 4 MB Memory: 4 GB Bus Speed: 1.33 GHz Boot ROM Version: XS11.0080.B01 SMC Version (system): 1.11f5 LOM Revision: 1.2.8 System Version: Mac OS X Server 10.5.8 (9L34) Kernel Version: Darwin 9.8.0
Regards,
comment:8 Changed 15 years ago by northnet04@…
Uninstalled all ports and cleaned out any evidence of mod_speedycgi.so and smokeping.cgi.
ran an rm -rf on /opt/local...
Installed macports, 1.8.2
Ran a sudo port -d selfupdate.
ran a sudo port -d install p5-cgi-speedycgi +apple_apache
failed due to no perl under /opt/local/bin/perl
sh: /opt/local/bin/perl: No such file or directory
Decided to try 'sudo port -d install perl5.10'
Build ok.
Then tried
sudo port -d install p5-cgi-speedycgi +apple_apache >> ~/portfile.log
GOT;
DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-cgi-speedycgi DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-cgi-speedycgi DEBUG: OS Platform: darwin DEBUG: OS Version: 9.8.0 DEBUG: Mac OS X Version: 10.5 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/perl5-1.0.tcl DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Requested variant darwin is not provided by port p5-cgi-speedycgi. DEBUG: Requested variant i386 is not provided by port p5-cgi-speedycgi. DEBUG: Requested variant macosx is not provided by port p5-cgi-speedycgi. DEBUG: Executing variant apple_apache provides apple_apache DEBUG: Executing org.macports.main (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.fetch (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.checksum (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.extract (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.patch (p5-cgi-speedycgi) DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (p5-cgi-speedycgi) DEBUG: Environment: CFLAGS='-O2 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2 -m32' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2 -m32' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-O2 -arch i386' FFLAGS='-O2 -m32' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor' DEBUG: Executing org.macports.build (p5-cgi-speedycgi) DEBUG: port disallows a parallel build DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all' Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9) invoked from within
"$procedure $targetname" Error: Status 1 encountered during processing.
So, tried sudo port -d install p5-cgi-speedycgi +apple_apache >> ~/portfile.log Password: DEBUG: Found port in file:///opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-cgi-speedycgi DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/perl/p5-cgi-speedycgi DEBUG: OS Platform: darwin DEBUG: OS Version: 9.8.0 DEBUG: Mac OS X Version: 10.5 DEBUG: System Arch: i386 DEBUG: setting option os.universal_supported to yes DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/perl5-1.0.tcl DEBUG: adding the default universal variant DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: Requested variant darwin is not provided by port p5-cgi-speedycgi. DEBUG: Requested variant i386 is not provided by port p5-cgi-speedycgi. DEBUG: Requested variant macosx is not provided by port p5-cgi-speedycgi. DEBUG: Executing variant apple_apache provides apple_apache DEBUG: Executing org.macports.main (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.fetch (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.checksum (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.extract (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.patch (p5-cgi-speedycgi) DEBUG: Using compiler 'Mac OS X gcc 4.0' DEBUG: Executing org.macports.configure (p5-cgi-speedycgi) DEBUG: Environment: CFLAGS='-O2 -arch i386' CPPFLAGS='-I/opt/local/include' CXXFLAGS='-O2 -arch i386' MACOSX_DEPLOYMENT_TARGET='10.5' CXX='/usr/bin/g++-4.0' F90FLAGS='-O2 -m32' LDFLAGS='-L/opt/local/lib' FCFLAGS='-O2 -m32' OBJC='/usr/bin/gcc-4.0' INSTALL='/usr/bin/install -c' PERL_AUTOINSTALL='--skipdeps' OBJCFLAGS='-O2 -arch i386' FFLAGS='-O2 -m32' CC='/usr/bin/gcc-4.0' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor' DEBUG: Executing org.macports.build (p5-cgi-speedycgi) DEBUG: port disallows a parallel build DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all' Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9) invoked from within
"$procedure $targetname" Error: Status 1 encountered during processing.
So I tried sudo port -d install smokeping +apple_apache >> ~/portfile.log
And got the same result when it got to p5-cgi-speedycgi;
DEBUG: Executing org.macports.main (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.fetch (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.checksum (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.extract (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.patch (p5-cgi-speedycgi) DEBUG: Skipping completed org.macports.configure (p5-cgi-speedycgi) DEBUG: Executing org.macports.build (p5-cgi-speedycgi) DEBUG: port disallows a parallel build DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all' Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2 DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-cgi-speedycgi/work/CGI-SpeedyCGI-2.22" && /usr/bin/make all " returned error 2
while executing
"command_exec build"
(procedure "portbuild::build_main" line 9) invoked from within
"$procedure $targetname" Error: The following dependencies failed to build: p5-cgi-speedycgi p5-io-socket-ssl p5-net-libidn p5-net-ssleay p5-libwww-perl p5-compress-raw-zlib p5-crypt-ssleay p5-html-parser p5-html-tagset p5-io-compress p5-compress-raw-bzip2 p5-uri p5-net-dns p5-digest-hmac p5-digest-sha1 p5-net-ip p5-net-radius p5-net-snmp p5-crypt-des p5-net-telnet p5-pathtools p5-perl-ldap p5-authen-sasl p5-gssapi p5-convert-asn1 p5-digest-md5 p5-xml-parser p5-xml-sax-writer p5-text-iconv p5-xml-filter-buffertext p5-snmp_session p5-socket6 rrdtool glib2 autoconf help2man p5-locale-gettext m4 automake libtool intltool gnome-common p5-getopt-long p5-scalar-list-utils libpng libxml2 pango Xft2 fontconfig freetype xrender xorg-libX11 xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto cairo libpixman tcl Error: Status 1 encountered during processing.
I'm not clear why this failed to build. Previously smokeping would build but I'd end up with a mod_speedycgi.so that was not compatible (wrong architecture). This post should no doubt be moved to a new ticket though. ?
Regards,
-David
comment:9 Changed 15 years ago by markd@…
Summary: | Instructions for port "smokeping" do not cover 10.5 → p5-cgi-speedycgi fails on 10.5 |
---|
The compile works fine for me on 10.5, and I don't have time right now to see if mod_speedycgi.so works ok. But I'm confused. You mention installing installing macports apache2 with universal enabled, but I thought you wanted to use Apple's built-in apache2.
To use Apple's built-in apache2, it should be:
port install p5-cgi-speedycgi +apple_apache port install smokeping +apple_apache
And you should see as I do:
Port p5-cgi-speedycgi contains:
/opt/local/bin/speedy /opt/local/bin/speedy_backend /opt/local/bin/speedy_suidperl /opt/local/lib/perl5/vendor_perl/5.8.9/CGI/SpeedyCGI.pm /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/CGI/SpeedyCGI/.packlist /opt/local/share/doc/speedycgi/backend_parent /opt/local/share/doc/speedycgi/file_cleanup.html /opt/local/share/doc/speedycgi/file_struct.crd /opt/local/share/doc/speedycgi/file_struct.gif /opt/local/share/doc/speedycgi/file_struct.html /opt/local/share/doc/speedycgi/graph_notes.html /opt/local/share/doc/speedycgi/index.html /opt/local/share/doc/speedycgi/mod_speedycgi.so /opt/local/share/doc/speedycgi/options.txt /opt/local/share/doc/speedycgi/prog_outline.txt /opt/local/share/doc/speedycgi/README
To use macports apache2, you'd do:
port install p5-cgi-speedycgi port install smokeping
In this case macports apache2 is installed and you see:
Port p5-cgi-speedycgi contains:
/opt/local/apache2/modules/mod_speedycgi.so /opt/local/bin/speedy /opt/local/bin/speedy_backend /opt/local/bin/speedy_suidperl /opt/local/lib/perl5/vendor_perl/5.8.9/CGI/SpeedyCGI.pm /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/CGI/SpeedyCGI/.packlist /opt/local/share/doc/speedycgi/backend_parent /opt/local/share/doc/speedycgi/file_cleanup.html /opt/local/share/doc/speedycgi/file_struct.crd /opt/local/share/doc/speedycgi/file_struct.gif /opt/local/share/doc/speedycgi/file_struct.html /opt/local/share/doc/speedycgi/graph_notes.html /opt/local/share/doc/speedycgi/index.html /opt/local/share/doc/speedycgi/options.txt /opt/local/share/doc/speedycgi/prog_outline.txt /opt/local/share/doc/speedycgi/README
If you are doing the latter, could it be that the universal build in apache is causing the problem for speedycgi? I have no idea, since I don't know enough about it, but I'm just asking.
It probably should be another ticket but I'll change the summary since there is a lot of history in it now.
comment:10 Changed 15 years ago by northnet04@…
To close the module path issue; yes, if I install with the apple_apache variant then the files end up where they should. I think in my initial attempt to install smokeping I already had the macport apache2 installed and so the files ended up there. Starting from a clean install the apple_apache variant works fine as far as putting the files where we expect them.
Now then, the problem with speedycgi continues;
I can get p5-cgi-speedycgi to compile fine when I start from scratch and do a 'sudo port -d install smokeping +apple_apache'; however I end up with a module that my apple apache2 server barfs on when I try to enable it.
4/14/10 1:46:38 AM org.apache.httpd[85091] httpd: Syntax error on line 156 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_speedycgi.so into server: dlopen(/usr/libexec/apache2/mod_speedycgi.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_speedycgi.so: mach-o, but wrong architecture
I have been unable to guess my way to getting speedy to compile properly for my platform. I thought maybe installing perl5.8 from a clean install might do it. But no. I've tried multiple attempts and either speedycgi fails to compile or I end up with this version that won't run under apple apache2.
Regards,
comment:11 Changed 14 years ago by markd@…
I think the problem is that 10.5 server uses an Apache compiled for 64-bits. The speedycgi module is compiled in 32-bit mode, so you will not be able to load it into a 64-bit apache.
comment:12 Changed 14 years ago by markd@…
Summary: | p5-cgi-speedycgi fails on 10.5 → p5-cgi-speedycgi fails on 10.5 server |
---|
So for server you'll need to use MacPorts Apache2.
comment:13 Changed 13 years ago by filter@…
Just successfully installed smokeping on 10.6 using built-in apache2 without the 'mach-o, but wrong architecture' error. Then, tried to install smokeping on a fresh install of 10.5 (not 10.5 Server!) using built-in apache2 on an older machine, and received this error. Not sure how to proceed. Any solutions discovered?
comment:14 Changed 13 years ago by markd@…
I'm not clear on what you are saying. Does the error happen on both 10.5 and 10.6? I could be wrong, but I don't think the variant apple_apache is a viable option anymore for the reason I gave above. Apple's Apache is now compiled in 64-bit mode, and p5-cgi-speedycgi can't work on that because it hasn't been updated for years. Perhaps the variant should be removed, since it runs counter to the advice we give to run macports libraries whenever possible. Installing macports' Apache 2 is quite painless in fact, and Apple updates won't overwrite your Apache conf file and other changes if you install the one from macports.
comment:15 Changed 13 years ago by filter@…
The error did not occur when installing on 10.6 using Apple's built in version of apache2. The error did occur when performing an identical installation on 10.5 also using Apple's built in version of apache2. So, it would seem that p5-cgi-speedycgi still does work, as it installed and runs without a hitch over buit in apache2 on my 10.6 system:
$ httpd -v Server version: Apache/2.2.17 (Unix)
$ ps -ax | grep speedy
3387 ?? 0:00.40 /opt/local/bin/speedy_backend /opt/local/var/smokeping/smokeping.cgi 3390 ?? 0:48.40 /opt/local/bin/speedy_backend /opt/local/var/smokeping/smokeping.cgi
Yet, I still can't get it to run on 10.5:
$ httpd -v Server version: Apache/2.2.14 (Unix)
$ sudo apachectl -k restart httpd: Syntax error on line 116 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/mod_speedycgi.so into server: dlopen(/usr/libexec/apache2/mod_speedycgi.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/mod_speedycgi.so: mach-o, but wrong architecture
I am comfortable with installing macports apache and with having both versions installed, but just prefer to use built in version when possible. It clearly can work, as I've got it to do so on the 10.6 host without a problem. According to your note, it would seem that this is a miracle, as p5-cgi-speedycgi shouldn't be able to work at all. Is there a way that I can figure out how and why it is managing to work on the 10.6 machine? I am sure that it is using the built in version of apache. The configuration file for the built in version is the only one that has LoadModule speedycgi_module modules/mod_speedycgi.so enabled, and shutting down the server from the Sharing control panel shuts down the smokeping site.
Regarding the apple_apache option, I think it's optimal to give users as much choice as possible -- a user may already have a fairly sophisticated and/or in-production configuration of Apple's apache already set up when electing to install smokeping. I personally appreciated discovering that the apple_apache option existed. Thanks!
comment:16 Changed 13 years ago by markd@…
Okay I was wrong. From what you are saying speedycgi can compile 64-bit (10.6). I just checked a 10.5 and 10.6 machine with 'httpd -V'. The former is 32; the latter 64. So it seems to be failing on the 32-bit apache.
See if this link helps at all. otool can be useful. Maybe try this in the speedycgi portfile on the 10.5 machine? Wild guess. It shouldn't be necessary.
configure.ldflags-append=-arch x86_32
Maybe if you install with the verbose flags and watch the output it will give a clue. I'm not knowledgeable enough to go farther and the only 10.5 machine I have access to I can't test on.
comment:17 Changed 13 years ago by markd@…
My wiki markup skills are lacking. Here is the link: http://www.modpython.org/pipermail/mod_python/2007-October/024394.html
comment:18 Changed 13 years ago by markd@…
Maybe the problem is that 10.5 compiles in 32-bits even though the OS is 64. https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPMacApache32 Pretty sure speedycgi worked at one time at least on 10.5 though.
comment:19 Changed 13 years ago by filter@…
Thanks for steering me in the right direction. Finally able to start the built-in apache2 successfully on OS 10.5 with the following architecture option added to /usr/sbin/apachectl
# the path to your httpd binary, including options if necessary HTTPD="arch -ppc /usr/sbin/httpd"
I now have smokeping running successfully over 10.5/PPC and 10.6/Intel while employing SpeedyCGI. Interestingly, I note that mention has been made on the smokeping maillist this week of what it might involve to migrate from SpeedyCGI to FastCGI.
comment:20 Changed 13 years ago by markd@…
Ah so it was PPC rather than 10.5. I added that to the notes section on the apple_apache variant in r80902. Thanks.
comment:21 Changed 13 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Modified the ui_msg in r55136. Many thanks for reporting this!