blnsnoopy26 wrote:
Das geht nicht. Weil mein Apache via rpm installiert ist kann ich vom Source nicht bauen, da bekomme ich immer eine Fehlermeldung.
Code: Select all
x:/usr/src/mod_layout-4.0.2a # make
Makefile:7: /usr/local/apache2/build/special.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/usr/local/apache2/build/special.mk« zu erstellen. Schluss.
Daher mein Apache 2.0.50 via rpm installiert ist habe ich kein solches verzeichnis. Gibs andere Lösung?
genau das gleiche Problem mit Suse 10.1 und mod_layout:
# make
/usr/sbin/apxs2 -c mod_layout.c
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2 -I/usr/include -I/usr/include/apr-1 -c -o mod_layout.lo mod_layout.c && touch mod_layout.slo
In file included from mod_layout.c:5:
mod_layout.h:13:24: error: apr_compat.h: No such file or directory
mod_layout.c: In function âcreate_dir_mconfigâ:
mod_layout.c:15: warning: implicit declaration of function âap_pcallocâ
mod_layout.c:15: warning: assignment makes pointer from integer without a cast
mod_layout.c:16: warning: implicit declaration of function âap_pstrdupâ
mod_layout.c:16: warning: assignment makes pointer from integer without a cast
mod_layout.c:36: warning: implicit declaration of function âap_make_tableâ
mod_layout.c:36: warning: assignment makes pointer from integer without a cast
mod_layout.c:47: warning: implicit declaration of function âap_table_setnâ
mod_layout.c: In function âmerge_dir_mconfigâ:
mod_layout.c:62: warning: initialization makes pointer from integer without a cast
mod_layout.c:65: warning: assignment makes pointer from integer without a cast
mod_layout.c:95: warning: assignment makes pointer from integer without a cast
mod_layout.c:97: warning: assignment makes pointer from integer without a cast
mod_layout.c:101: warning: assignment makes pointer from integer without a cast
mod_layout.c:103: warning: assignment makes pointer from integer without a cast
mod_layout.c:107: warning: assignment makes pointer from integer without a cast
mod_layout.c:109: warning: assignment makes pointer from integer without a cast
mod_layout.c:113: warning: assignment makes pointer from integer without a cast
mod_layout.c:115: warning: assignment makes pointer from integer without a cast
mod_layout.c:133: warning: implicit declaration of function âap_append_arraysâ
mod_layout.c:133: warning: assignment makes pointer from integer without a cast
mod_layout.c:161: warning: assignment makes pointer from integer without a cast
mod_layout.c:164: warning: assignment makes pointer from integer without a cast
mod_layout.c:175: warning: implicit declaration of function âap_overlay_tablesâ
mod_layout.c:175: warning: assignment makes pointer from integer without a cast
mod_layout.c:185: warning: assignment makes pointer from integer without a cast
mod_layout.c:195: warning: assignment makes pointer from integer without a cast
mod_layout.c:205: warning: assignment makes pointer from integer without a cast
mod_layout.c:215: warning: assignment makes pointer from integer without a cast
mod_layout.c:225: warning: assignment makes pointer from integer without a cast
mod_layout.c:235: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âlayout_filterâ:
mod_layout.c:293: warning: implicit declaration of function âAPR_BRIGADE_FOREACHâ
mod_layout.c:293: error: expected â;â before â{â token
mod_layout.c:255: warning: unused variable âbodyâ
mod_layout.c:254: warning: unused variable âstart_positionâ
mod_layout.c:251: warning: unused variable âlenâ
mod_layout.c:250: warning: unused variable âstrâ
mod_layout.c: In function âadd_http_headerâ:
mod_layout.c:341: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âadd_layout_patternâ:
mod_layout.c:354: warning: assignment makes pointer from integer without a cast
mod_layout.c:357: warning: assignment makes pointer from integer without a cast
mod_layout.c:358: warning: assignment makes pointer from integer without a cast
mod_layout.c:364: warning: assignment makes pointer from integer without a cast
mod_layout.c:365: warning: assignment makes pointer from integer without a cast
mod_layout.c:368: warning: assignment makes pointer from integer without a cast
mod_layout.c:369: warning: assignment makes pointer from integer without a cast
mod_layout.c:374: warning: assignment makes pointer from integer without a cast
mod_layout.c:377: warning: implicit declaration of function âap_make_arrayâ
mod_layout.c:377: warning: assignment makes pointer from integer without a cast
mod_layout.c:407: warning: implicit declaration of function âap_push_arrayâ
mod_layout.c: In function âignore_uriâ:
mod_layout.c:426: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_header_uriâ:
mod_layout.c:436: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_http_header_uriâ:
mod_layout.c:446: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_footer_uriâ:
mod_layout.c:456: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_addâ:
mod_layout.c:473: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_footer_addâ:
mod_layout.c:483: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_header_addâ:
mod_layout.c:493: warning: assignment makes pointer from integer without a cast
mod_layout.c: At top level:
mod_layout.c:548: warning: implicit declaration of function âAPR_XtOffsetOfâ
mod_layout.c:548: error: expected expression before âlayout_confâ
mod_layout.c:548: error: initializer element is not constant
mod_layout.c:548: error: (near initialization for âlayout_cmds[4].cmd_dataâ)
mod_layout.c:549: error: expected expression before âlayout_confâ
mod_layout.c:549: error: initializer element is not constant
mod_layout.c:549: error: (near initialization for âlayout_cmds[5].cmd_dataâ)
mod_layout.c:554: error: expected expression before âlayout_confâ
mod_layout.c:554: error: initializer element is not constant
mod_layout.c:554: error: (near initialization for âlayout_cmds[10].cmd_dataâ)
mod_layout.c:555: error: expected expression before âlayout_confâ
mod_layout.c:555: error: initializer element is not constant
mod_layout.c:555: error: (near initialization for âlayout_cmds[11].cmd_dataâ)
mod_layout.c:556: error: expected expression before âlayout_confâ
mod_layout.c:556: error: initializer element is not constant
mod_layout.c:556: error: (near initialization for âlayout_cmds[12].cmd_dataâ)
mod_layout.c:561: error: expected expression before âlayout_confâ
mod_layout.c:561: error: initializer element is not constant
mod_layout.c:561: error: (near initialization for âlayout_cmds[17].cmd_dataâ)
mod_layout.c:562: error: expected expression before âlayout_confâ
mod_layout.c:562: error: initializer element is not constant
mod_layout.c:562: error: (near initialization for âlayout_cmds[18].cmd_dataâ)
mod_layout.c:563: error: expected expression before âlayout_confâ
mod_layout.c:563: error: initializer element is not constant
mod_layout.c:563: error: (near initialization for âlayout_cmds[19].cmd_dataâ)
mod_layout.c:564: error: expected expression before âlayout_confâ
mod_layout.c:564: error: initializer element is not constant
mod_layout.c:564: error: (near initialization for âlayout_cmds[20].cmd_dataâ)
mod_layout.c:565: error: expected expression before âlayout_confâ
mod_layout.c:565: error: initializer element is not constant
mod_layout.c:565: error: (near initialization for âlayout_cmds[21].cmd_dataâ)
apxs:Error: Command failed with rc=65536
.
make: *** [mod_layout.o] Error 1
im Makefile steht was von
##
## Makefile -- Build procedure for mod_layout Apache module
##
builddir=$(shell pwd)
top_srcdir=/usr/local/apache2
top_builddir=/usr/local/apache2
#include /usr/local/apache2/build/special.mk
# the used tools
#APXS=/usr/local/apache2/bin/apxs
APXS=/usr/sbin/apxs2
APACHECTL=apachectl
CC=`$(APXS) -q CC`
INC=-I`$(APXS) -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
LD_SHLIB=`apxs -q LDFLAGS_SHLIB`
VERSION = 4.0.1a
DISTNAME = mod_layout
DISTVNAME = $(DISTNAME)-$(VERSION)
Aber /usr/local/apache2 gibt es doch unter SuSE gar nicht ...
:?: