Issue installing Apache 2 on Leopard

View: New views
4 Messages — Rating Filter:   Alert me  

Issue installing Apache 2 on Leopard

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I try to install Apache 2 on Leopard, I get the following error. Any ideas?

$ sudo port clean apache2
--->  Cleaning apache2
mraible-mn:~ mraible$ sudo port install apache2
--->  Fetching apache2
--->  Verifying checksum(s) for apache2
--->  Extracting apache2
--->  Configuring apache2
--->  Building apache2 with target 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_www_apache2/work/httpd-2.2.8"
&& make all " returned error 2
Command output: Making all in srclib
Making all in os
Making all in unix
/opt/local/share/apr-1/build/libtool --silent --mode=compile
/usr/bin/gcc-4.0 -I/opt/local/include  -O2  -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp  -I/opt/local/include
-I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/os/unix
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/server/mpm/prefork
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/http
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/filters
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/proxy
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/generators
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/mappers
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/database
-I/opt/local/include/apr-1 -I/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/server
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/proxy/../generators
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/ssl
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_apache2/work/httpd-2.2.8/modules/dav/main
 -prefer-non-pic -static -c unixd.c && touch unixd.lo
libtool: compile: unable to infer tagged configuration
libtool: compile: specify a tag with `--tag'
make[3]: *** [unixd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

Thanks,

Matt
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Issue installing Apache 2 on Leopard

by Ryan Schmidt-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Apr 1, 2008, at 10:37, Matt Raible wrote:

> When I try to install Apache 2 on Leopard, I get the following  
> error. Any ideas?

[snip]

> libtool: compile: unable to infer tagged configuration
> libtool: compile: specify a tag with `--tag'

Aw, heck. That issue was supposed to have been taken care of by now. :)

Check these bugs:

http://trac.macosforge.org/projects/macports/query?summary=%7Einfer

Specifically this one:

http://trac.macosforge.org/projects/macports/ticket/13653

According to that, the problem was supposed to have been resolved by  
incrementing apr's revision so that it's forced to rebuild following  
the update to MacPorts 1.6.0. Do you have MacPorts 1.6.0 (or later)  
and are your ports current? Please try "sudo port selfupdate" and  
then use "port outdated" to see if any ports are outdated, and if so,  
"sudo port upgrade" them. Then try installing apache2 again. If it  
still fails, "sudo port clean --work apache2" again, then rebuild apr  
with "sudo port -ncuf upgrade apr" and then try installing apache2  
again. Please let us know your results.

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Issue installing Apache 2 on Leopard

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Running "sudo port upgrade apr" fixed the problem. However, after
copying httpd.conf.sample to httpd.conf, I get the following error on
startup:

httpd: Syntax error on line 97 of /opt/local/apache2/conf/httpd.conf:
Cannot load /opt/local/apache2/modules/mod_ssl.so into server:
dlopen(/opt/local/apache2/modules/mod_ssl.so, 10): Symbol not found:
_ssl_cmd_SSLCACertificateFile\n  Referenced from:
/opt/local/apache2/modules/mod_ssl.so\n  Expected in: flat namespace\n

Commenting out line 97 fixes the problem:

#LoadModule ssl_module modules/mod_ssl.so

However, I want to use SSL on this server. Any idea how to fix?

Thanks,

Matt

On Tue, Apr 1, 2008 at 10:09 AM, Ryan Schmidt <ryandesign@...> wrote:

>
>  On Apr 1, 2008, at 10:37, Matt Raible wrote:
>
>  > When I try to install Apache 2 on Leopard, I get the following
>  > error. Any ideas?
>
>  [snip]
>
>  > libtool: compile: unable to infer tagged configuration
>  > libtool: compile: specify a tag with `--tag'
>
>  Aw, heck. That issue was supposed to have been taken care of by now. :)
>
>  Check these bugs:
>
>  http://trac.macosforge.org/projects/macports/query?summary=%7Einfer
>
>  Specifically this one:
>
>  http://trac.macosforge.org/projects/macports/ticket/13653
>
>  According to that, the problem was supposed to have been resolved by
>  incrementing apr's revision so that it's forced to rebuild following
>  the update to MacPorts 1.6.0. Do you have MacPorts 1.6.0 (or later)
>  and are your ports current? Please try "sudo port selfupdate" and
>  then use "port outdated" to see if any ports are outdated, and if so,
>  "sudo port upgrade" them. Then try installing apache2 again. If it
>  still fails, "sudo port clean --work apache2" again, then rebuild apr
>  with "sudo port -ncuf upgrade apr" and then try installing apache2
>  again. Please let us know your results.
>
>
_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users

Re: Issue installing Apache 2 on Leopard

by Guido Soranzio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> On Apr 1, 2008, at 7:00 PM, Matt Raible wrote:
>
>> However, I want to use SSL on this server. Any idea how to fix?
>
> There are two workarounds explained in these comments on our Trac:
> http://trac.macports.org/projects/macports/ticket/13182.


> -Guido

_______________________________________________
macports-users mailing list
macports-users@...
http://lists.macosforge.org/mailman/listinfo/macports-users