Probleme beim kompilieren /amd64)
Hallo zusammen,
wir verwenden auf unseren Servern das Apache-Modul
mod_auth_cookie_mysql2
(http://home.digithi.de/digithi/dev/mod_auth_cookie_mysql/).
Ich habe nun versucht, die Source zu kompilieren (make, make install).
Leider wird das ".so"-Objekt nicht erstellt, und ich habe keine Ahnung, warum.
Ich muss dazu sagen, dass ich nicht wirklich den Plan von Make-Files habe:
Ich habe im Make-File bereits die Location fuer apxs2 und mysql-config
entsprechend an Debian-Verhaeltnisse angepasst, aber es kracht immer
mit der folgenden Meldung ab:
cp ./libs/mod_auth_cookie_mysql2.so
/usr/lib/apache2/modules/mod_auth_cookie_mysql2.so
cp: cannot stat `./libs/mod_auth_cookie_mysql2.so': No such file or directory
apxs:Error: Command failed with rc=65536
Ich habe im Netz zwar ein .deb-Package gefunden, aber leider nur fuer i386.
Hier ist einmal das Make-File - kann mir jemand von Euch evtl. sagen,
wonach ich suchen kann oder an welchen Schrauben ich drehen muss?
#
# Makefile for mod_auth_cookie_(my)sql2
#
# "apxs" is searched in all directories of your PATH variable.
# If apxs cannot be found during the make process, you can adjust
# the path, i.e.:
# APXS = /usr/local/apache2/bin/apxs
# APXS = apxs
APXS = /usr/bin/apxs2
# mysql_config is searched in all directories of your PATH variable.
# If apxs cannot be found during the make process, you can adjust the
# the path, i.e.:
# MYSQCPPFLAGS = `/opt/mysql/bin/mysql_config --include`
# MYSQLDFLAGS = `/opt/mysql/bin/mysql_config --libs`
# MYSQCPPFLAGS = `mysql_config --include`
# MYSQLDFLAGS = `mysql_config --libs`
MYSQCPPFLAGS = `/usr/bin/mysql_config --include`
MYSQLDFLAGS = `/usr/bin/mysql_config --libs`
############### Please don't change anything below this line ###############
MODULE_NAME = auth_cookie_mysql2
APACHE_MODULE = mod_auth_cookie_mysql2.so
SRCS = mod_auth_cookie_sql2.c mod_auth_cookie_sql2_mysql.c
OBJS = mod_auth_cookie_sql2.o mod_auth_cookie_sql2_mysql.o
RM = rm -f
LN = ln -sf
CP = cp -f
#CFLAGS += -DNDEBUG
#CFLAGS += -DDEBUG
CFLAGS = -Wc,-Wall $(MYSQCPPFLAGS) -DMODULE_NAME=$(MODULE_NAME)
-DMODULE_NAME_module=$(MODULE_NAME)_module
LDFLAGS = $(MYSQLDFLAGS) -o $(APACHE_MODULE)
default: all
all: $(APACHE_MODULE)
$(APACHE_MODULE): $(SRCS)
$(APXS) -c $(CFLAGS) $(LDFLAGS) $(SRCS)
install: all
$(APXS) -i -a -n $(MODULE_NAME) ./libs/$(APACHE_MODULE)
clean:
$(RM) $(OBJS) $(APACHE_MODULE)
Gefrusteter Gruss
Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
Reply to: