[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mod_clamav will nicht kompilieren



Und was genau ist dein Problem?


Servus (die Mail davor war ein versehen ;O)

Ich würde gerne mod_clamav für den 2er Apache kompilieren, komme aber im Moment nicht weiter. Unten angehängt die Randdaten für mein System.

Hier mal meine Vorgehensweise nach dem Download:

  tar xfz mod_clamav-0.21.tar.gz
  chown -R root.root mod_clamav-0.21
  chmod 755 mod_clamav-0.21
  cd mod_clamav-0.21
  ./configure --with-apxs=/usr/bin/apxs2
  -> Ausgabe siehe unten

Bis dahin sieht soweit alles gut aus, jedoch fangen beim make dann die Probleme an. Bei make kommt:

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

Ich habe dann im Makefile das hier getauscht:

  - LIBTOOL = $(SHELL) $(top_builddir)/libtool
  + LIBTOOL = $(SHELL) $(top_builddir)/libtool --tag CXX

Dann kommt beim make wieder eine Fehlermeldung:

  /usr/include/apache2/ap_config.h:25:17:
    error: apr.h: No such file or directory
  /usr/include/apache2/ap_config.h:26:23:
    error: apr_hooks.h: No such file or directory
  /usr/include/apache2/ap_config.h:27:32:
    error: apr_optional_hooks.h: No such file or directory

Nach ein bisl Suchen habe ich dann in dem Makefile das hier angepasst:

  - CFLAGS = -g -O2
  + CFLAGS = -g -O2 -I/usr/include/apr-1.0

Dann kommt das hier:

  mod_clamav.c:20:24: error: apr_compat.h: No such file or directory

Das File habe ich nirgends gefunden. Die Suche von packages.debian.org ergab, dass unter Etch das File wohl nicht mehr vorhanden ist. Unter Sarge habe ich es im Paket libapr0-dev gefunden. Laut der Apache Homepage gibt es das File in der neuen APR einfach nicht mehr:

  http://www.apache.org/dist/apr/CHANGES-APR-1.2

Tjo, ab hier bin ich ratlos und ein Downgrade auf Sarge macht für mich
keinen Sinn. Hat eventuell jemand noch eine Idee oder Alternative?

Gruß
Mathias




### Randdaten ###

OS: Debian Etch
Architektur: x86_64
Software: http://software.othello.ch/mod_clamav/
Packages:

  apache2
  apache2-mpm-prefork
  apache2-threaded-dev
  apache2-utils
  apache2.2-common

  clamav
  clamav-base
  clamav-freshclam

  cpp-3.3
  cpp-3.4
  cpp-4.1
  g++-3.3
  g++-3.4
  g++-4.1
  gcc-3.3
  gcc-3.3-base
  gcc-3.4
  gcc-3.4-base
  gcc-4.1
  gcc-4.1-base
  libstdc++5
  libstdc++5-3.3-dev
  libstdc++6
  libstdc++6-dev
  libstdc++6-4.1-dev

  linux-headers-2.6.18-5
  linux-headers-2.6.18-5-amd64

  libapr1
  libapr1-dev
  libapreq2
  libapreq2-dev
  libaprutil1
  libaprutil1-dev
  libc6
  libc6-dev
  libclamav-dev
  libclamav2






# ./configure --with-apxs=/usr/bin/apxs2

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for APXS tool... using /usr/bin/apxs2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux
checking host system type... x86_64-unknown-linux
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for file... /usr/bin/file
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking for cl_scanfile in -lclamav... yes
checking for mkstemp... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mod_clamav_version.h
config.status: creating mod_clamav.html
config.status: executing depfiles commands


Reply to: