mod_jk-apache2 lässt sich nicht bauen

dark_angel

Well-Known Member
Hi,

ich darf für ein Projekt an der Uni den Apache22 und Tomcat verheiraten. Soweit ich es verstanden habe brauche ich dafür den Port www/mod_jk-apache2. Dieser lässt sich jedoch leider nicht bauen. Er bricht immer mit einer Fehlermeldung ab. Google konnte mir leider auch nicht weiterhelfen. :(

Code:
# cd /usr/ports/www/mod_jk-apache2
# make
[snip]
Making all in apache-2.0
gmake[1]: Entering directory `/usr/ports/www/mod_jk-apache2/work/tomcat-connectors-1.2.30-src/native/apache-2.0'
/usr/local/build-1/libtool --silent --mode=compile cc -I/usr/local/include/apache22 -O2 -pipe -fno-strict-aliasing -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix  -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -I/usr/local/include -DHAVE_APR  -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -O2 -pipe -fno-strict-aliasing -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -I/usr/local/include  -c mod_jk.c -o mod_jk.lo
/usr/local/build-1/libtool --silent --mode=link cc -I/usr/local/include/apache22 -O2 -pipe -fno-strict-aliasing -DUSE_APACHE_MD5 -I ../common -I /include -I /include/unix  -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -I/usr/local/include -DHAVE_APR  -I/usr/local/include/apr-1 -I/usr/local/include/apr-1 -O2 -pipe -fno-strict-aliasing -O2 -pipe -I/usr/local/include/mysql -DHAVE_MYSQL_H -I/usr/include -fno-strict-aliasing -I/usr/local/include  -Wl,-L-L/usr/local/lib/mysql -Wl,-rpath=/usr/lib -Wl,/usr/local/lib -Wl,-L/usr/lib -o mod_jk.la -module -rpath /usr/local/libexec/apache22 -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
/usr/local/lib: file not recognized: File format not recognized
gmake[1]: *** [mod_jk.la] Error 1
gmake[1]: Leaving directory `/usr/ports/www/mod_jk-apache2/work/tomcat-connectors-1.2.30-src/native/apache-2.0'
gmake: *** [all-recursive] Error 1
*** Error code 1

Hoffe einer von euch kann mir helfen. :)

Grüße
Chris
 
Spaßeshalber wurde eben auf der Entwicklungskiste das Modul mod_jk-ap2-1.2.30_1 problemlos übersetzt für apache-2.2.14_5 . Was aber auffällt, mysql-Support scheint nicht einkompoiliert zu werden (s. Zeile 191), obwohl z.B. ein vollwertiger AMP-Stack installiert ist mit Mysql 4.1.25. Aber ich habe null Erfahrung mit Tomcat. Sorry.
 

Anhänge

  • mod_jk-apache2_make_log.rar.zip
    4,2 KB · Aufrufe: 130
Hmm ok, dann scheint es ja zumindest kein generelles Problem zu sein. Ich werde mich dann glaub noch mal richtig mit auseinander setzen müssen.
Dankeschön aber fürs testen!
 
@spaulding:
Kannste mir die Optionen nennen mit denen du den Apache gebaut hast? Evtl. liegt da der Hund begraben.
 
Hi dark_angel,

hier die Config:

%make showconfig
===> The following configuration options are available for apache-2.2.14_5:
APR_FROM_PORTS=off "Use devel/apr as APR (preferred)"
THREADS=off "Enable threads support in APR"
MYSQL=off "Enable MySQL support for apr-dbd"
PGSQL=off "Enable PostgreSQL support for apr-dbd"
SQLITE=off "Enable SQLite support for apr-dbd"
IPV6=on "Enable IPv6 support"
BDB=off "Enable BerkeleyDB dbm"
AUTH_BASIC=on "Enable mod_auth_basic"
AUTH_DIGEST=on "Enable mod_auth_digest"
AUTHN_FILE=on "Enable mod_authn_file"
AUTHN_DBD=off "Enable mod_authn_dbd"
AUTHN_DBM=on "Enable mod_authn_dbm"
AUTHN_ANON=on "Enable mod_authn_anon"
AUTHN_DEFAULT=on "Enable mod_authn_default"
AUTHN_ALIAS=on "Enable mod_authn_alias"
AUTHZ_HOST=on "Enable mod_authz_host"
AUTHZ_GROUPFILE=on "Enable mod_authz_groupfile"
AUTHZ_USER=on "Enable mod_authz_user"
AUTHZ_DBM=on "Enable mod_authz_dbm"
AUTHZ_OWNER=on "Enable mod_authz_owner"
AUTHZ_DEFAULT=on "Enable mod_authz_default"
CACHE=on "Enable mod_cache"
DISK_CACHE=on "Enable mod_disk_cache"
FILE_CACHE=on "Enable mod_file_cache"
MEM_CACHE=off "Enable mod_mem_cache"
DAV=on "Enable mod_dav"
DAV_FS=on "Enable mod_dav_fs"
BUCKETEER=off "Enable mod_bucketeer"
CASE_FILTER=off "Enable mod_case_filter"
CASE_FILTER_IN=off "Enable mod_case_filter_in"
EXT_FILTER=off "Enable mod_ext_filter"
LOG_FORENSIC=off "Enable mod_log_forensic"
OPTIONAL_HOOK_EXPORT=off "Enable mod_optional_hook_export"
OPTIONAL_HOOK_IMPORT=off "Enable mod_optional_hook_import"
OPTIONAL_FN_IMPORT=off "Enable mod_optional_fn_import"
OPTIONAL_FN_EXPORT=off "Enable mod_optional_fn_export"
LDAP=off "Enable mod_ldap"
AUTHNZ_LDAP=off "Enable mod_authnz_ldap"
ACTIONS=on "Enable mod_actions"
ALIAS=on "Enable mod_alias"
ASIS=on "Enable mod_asis"
AUTOINDEX=on "Enable mod_autoindex"
CERN_META=on "Enable mod_cern_meta"
CGI=on "Enable mod_cgi"
CHARSET_LITE=on "Enable mod_charset_lite"
DBD=off "Enable mod_dbd"
DEFLATE=on "Enable mod_deflate"
DIR=on "Enable mod_dir"
DUMPIO=on "Enable mod_dumpio"
ENV=on "Enable mod_env"
EXPIRES=on "Enable mod_expires"
HEADERS=on "Enable mod_headers"
IMAGEMAP=on "Enable mod_imagemap"
INCLUDE=on "Enable mod_include"
INFO=on "Enable mod_info"
LOG_CONFIG=on "Enable mod_log_config"
LOGIO=on "Enable mod_logio"
MIME=on "Enable mod_mime"
MIME_MAGIC=on "Enable mod_mime_magic"
NEGOTIATION=on "Enable mod_negotiation"
REWRITE=on "Enable mod_rewrite"
SETENVIF=on "Enable mod_setenvif"
SPELING=on "Enable mod_speling"
STATUS=on "Enable mod_status"
UNIQUE_ID=on "Enable mod_unique_id"
USERDIR=on "Enable mod_userdir"
USERTRACK=on "Enable mod_usertrack"
VHOST_ALIAS=on "Enable mod_vhost_alias"
FILTER=on "Enable mod_filter"
VERSION=on "Enable mod_version"
PROXY=on "Enable mod_proxy"
PROXY_CONNECT=on "Enable mod_proxy_connect"
PATCH_PROXY_CONNECT=on "Patch proxy_connect SSL support"
PROXY_FTP=on "Enable mod_proxy_ftp"
PROXY_HTTP=on "Enable mod_proxy_http"
PROXY_AJP=on "Enable mod_proxy_ajp"
PROXY_BALANCER=on "Enable mod_proxy_balancer"
PROXY_SCGI=off "Enable mod_proxy_scgi"
SSL=on "Enable mod_ssl"
SUEXEC=on "Enable mod_suexec"
CGID=on "Enable mod_cgid"
 
Kannst du mal MAKE_JOBS_SAFE= yes im Makefile des Ports auskommentieren und schauen, ob sich an der Fehlermeldung etwas ändert?
 
@laedmodost: ok werde ich mal machen

Ansonsten werde ich mal den Apachen mit mysql=off neu bauen. Das ist nämlich der einzige unterschied.
 
Jüpp, in der Tat, das Tomcat-Modul kann nicht gebaut werden, wenn Mysql-Support für den Apachen aktiviert ist.

Edit:
Mit aktiviertem Postgres-Support scheitert die Übersetzung auch. Das Problem wird es dann wohl mit jedem DB-Client geben.
 
Zuletzt bearbeitet:
Super Installation hat geklappt. Jetzt geht's an die Konfiguration.
Glaub habe gerade n PEBCAK-Problem, bekomme als n 404 Fehler. Irgendwo ist da der Wurm drin. :S
 
Okay,

ich habe jetzt mal apache-tomcat-4.1.36_2 installiert und alles minimal konfiguriert (jk.home.de ist im lokalen dns bzw. in /etc/hosts; an JDKs sind installiert diablo-jdk-1.6.0.07.02_8 und jdk-1.6.0.3p4_14 ):

/usr/local/etc/apache22/workers.properties:
# Incredibly simple workers.properties file, intended for connecting
# to one host, via AJP13. See the tomcat documentation for
# information on more exotic configuration options.
#
# Change jsp-hostname to the hostname of your JSP server.
#

workers.tomcat_home=/usr/local/apache-tomcat4.1
workers.java_home=/usr/local/jdk1.6.0

worker.list=jk
worker.jk.port=8009
worker.jk.host=jk.home.de
worker.jk.type=ajp13
worker.jk.lbfactor=1


Der VirtualHost:
<IfModule jk_module>
# Replace jsp-hostname with the hostname of your JSP server, as
# specified in workers.properties.
#
JkWorkersFile /usr/local/etc/apache22/workers.properties
JkLogFile /var/log/jk.log
JkShmFile /var/log/jk-runtime-status
JkLogLevel error

<VirtualHost *:80>
ServerName jk.home.de
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp

# Sample JkMounts. Replace these with the paths you would
# like to mount from your JSP server.
JkMount / jk
JkMount /* jk
</VirtualHost>
</IfModule>

Dann liefert http://jk.home.de das selbe wie Coyote http://gw.home.de:8180 .

---
Quelle:
http://www.debianhelp.co.uk/apachetomcat.htm
http://www.johnturner.com/howto/mod_jk_conf.html
 
Zuletzt bearbeitet:
Hab's auch hinbekommen. Hatte mein deppertes test.jsp im falschen Ordner. Ganz klares PEBCAK Problem. :D

Vielen Dank spaulding für deine Hilfe!
 
Bin ehrlich gesagt net so der Fan von diesem ganzen Java Krams im Web-Bereich. Stehe in dem Bereich eher auf PHP.
 
Es gab Zeiten, wo ich mir händeringend PHP ins Projekt gewünscht habe aber mit kommerziellen Unzulänglichkeiten wie z.B. (dem Gott sei Dank verstorbenen) HexBase leben und kreative Workarounds finden musste. Von daher darf ich nicht wirklich was dagegen haben, versuche mich aber davon zu trennen, zumindest wenn es um neue Projekte geht.
 
Zurück
Oben