You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/03/09 15:04:20 UTC

[Bug 62169] New: Not able to compile mod_jk on MacOS

https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

            Bug ID: 62169
           Summary: Not able to compile mod_jk on MacOS
           Product: Tomcat Connectors
           Version: unspecified
          Hardware: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_jk
          Assignee: dev@tomcat.apache.org
          Reporter: cgoncalves@deetc.isel.pt
  Target Milestone: ---

Created attachment 35759
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35759&action=edit
full output from the configure and make commands

I'm trying to compile mod_jk 1.2.43 on MacOS (in a Lampp environment) and I'm 
getting the error:

ld: unknown option: -I/Applications/XAMPP/xamppfiles/include
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [mod_jk.la] Error 1
make: *** [all-recursive] Error 1

I made this steps:
wget
http://mirrors.up.pt/pub/apache/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.43-src.tar.gz
tar -xzvf tomcat-connectors-1.2.43-src.tar.gz
cd tomcat-connectors-1.2.43-src/native
./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64'
-with-apxs=/Applications/XAMPP/bin/apxs
make

but last message that I get is the above one.

I also tried to only use
./configure -with-apxs=/Applications/XAMPP/bin/apxs

but the error is the same

the output of the "uname -a" command gives something like:
Darwin xxx.xxx.xxx.xxx 17.4.0 Darwin Kernel Version 17.4.0
root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64

In attache I send the full output from the configure and make commands.

Thanks for the help.
Carlos

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62169] Not able to compile mod_jk on MacOS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

Carlos Gonçalves <cg...@deetc.isel.pt> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
                 CC|                            |cgoncalves@deetc.isel.pt

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62169] Not able to compile mod_jk on MacOS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

--- Comment #3 from Michael Osipov <19...@gmx.net> ---
(In reply to Christopher Schultz from comment #2)
> Since you are using the libtool bundled with XAMPP, I think this is not a
> bug in the mod_jk distribution... it's likely a problem with XAMPP's libtool.
> 
> Can you try again with an httpd source package from httpd.apache.org and see
> if that works?

I fully agree with that, or better yet use the most recent libtool provided by
libtoolize. Your YAMPP is a third-party bundle we don't support.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62169] Not able to compile mod_jk on MacOS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

--- Comment #2 from Christopher Schultz <ch...@christopherschultz.net> ---
Since you are using the libtool bundled with XAMPP, I think this is not a bug
in the mod_jk distribution... it's likely a problem with XAMPP's libtool.

Can you try again with an httpd source package from httpd.apache.org and see if
that works?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62169] Not able to compile mod_jk on MacOS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Resolving as INVALID based on the the previous two comments as the bug appears
to be in a different tool rather than in mod_jk.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62169] Not able to compile mod_jk on MacOS

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62169

--- Comment #1 from Christopher Schultz <ch...@christopherschultz.net> ---
The error is here:

/Applications/XAMPP/xamppfiles/build/libtool --silent --mode=link gcc
-std=gnu99 -I/Applications/XAMPP/xamppfiles/include -arch x86_64
-DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -DDARWIN
-DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10
-I/Applications/XAMPP/xamppfiles/include/c-client
-I/Applications/XAMPP/xamppfiles/include/libpng
-I/Applications/XAMPP/xamppfiles/include/freetype2 -O3
-L/Applications/XAMPP/xamppfiles/lib -I/Applications/XAMPP/xamppfiles/include
-I/Applications/XAMPP/xamppfiles/include/ncurses -arch x86_64  -DHAVE_APR 
-I/Applications/XAMPP/xamppfiles/include/apr-1
-I/Applications/XAMPP/xamppfiles/include/apr-1 -arch x86_64 -DHAVE_CONFIG_H 
-DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -Wl,-rpath
-Wl,/Applications/XAMPP/xamppfiles/lib -Wl,-L/Applications/XAMPP/xamppfiles/lib
-Wl,-I/Applications/XAMPP/xamppfiles/include -Wl,-arch -Wl,x86_64
-Wl,-L/Applications/XAMPP/xamppfiles/lib -Wl,-L/Applications/XAMPP/xamppfiles
-o mod_jk.la -module -rpath /Applications/XAMPP/xamppfiles/modules
-avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo
../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo
../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo
../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo
../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo
../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo
../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo
../common/jk_status.lo
ld: unknown option: -I/Applications/XAMPP/xamppfiles/include

Looks like libtool is invoking `ld` with the `-I` option, which isn't quite
legal. GNU ld uses `-I` to name the resulting library, and MacOS's BSD ld
(LLVM/clans/whatever) doesn't support it at all.

This looks like a mistake in the build script somewhere. I don't understand
enough about how the tooling works to fix it, unfortunately.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org