[Eisfair] Apache Modul für Streaming

André Rothe arothe at phosco.info
Mi Dez 31 16:44:22 CET 2014


> Das Teil laesst sich ohne Probleme uebersetzen
> 
> ./configure --with-apxs=/usr/local/apache2/bin/apxs
> 
> make

Heul.

....

checking for a BSD-compatible install... /usr/bin/install -c
checking for Apache 2.0 version >= 2.0.55... *** Could not run Apache test program, checking why...
*** The test program failed to compile or link. Check config.log
no
configure: error: *** Apache version 2.0.55 not found!

und in der config.log

...

gcc (GCC) 4.5.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:11181: $? = 0
configure:11188: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i486-pc-linux-gnu/4.5.4/lto-wrapper
Target: i486-pc-linux-gnu
Configured with: ../gcc-4_5-branch/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran --disable-multilib --build=i486-pc-linux-gnu --host=i486-pc-linux-gnu --disable-bootstrap --with-system-zlib
Thread model: posix
gcc version 4.5.4 (GCC) 
configure:11191: $? = 0
configure:11198: gcc -V >&5
gcc: '-V' option must have argument
configure:11201: $? = 1
configure:11204: checking whether we are using the GNU C compiler
configure:11256: result: yes
configure:11261: checking whether gcc accepts -g
configure:11396: result: yes
configure:11413: checking for gcc option to accept ISO C89
configure:11516: result: none needed
configure:11536: checking dependency style of gcc
configure:11626: result: gcc3
configure:11656: checking for a BSD-compatible install
configure:11712: result: /usr/bin/install -c
configure:11839: checking for Apache 2.0 version >= 2.0.55
configure:11918: gcc -o conftest -g -O2   -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apache2/include  -I/usr/include/apr-1 -I/usr/include /include  -I/usr/include/apr-1    conftest.c  >&5
In file included from /usr/local/apache2/include/ap_config.h:138:0,
                 from /usr/local/apache2/include/httpd.h:44,
                 from conftest.c:26:
/usr/local/apache2/include/ap_config_auto.h:210:0: warning: "PACKAGE_BUGREPORT" redefined
conftest.c:6:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:213:0: warning: "PACKAGE_NAME" redefined
conftest.c:2:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:216:0: warning: "PACKAGE_STRING" redefined
conftest.c:5:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:219:0: warning: "PACKAGE_TARNAME" redefined
conftest.c:3:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:225:0: warning: "PACKAGE_VERSION" redefined
conftest.c:4:0: note: this is the location of the previous definition
/include: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure:11921: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "mod_h264_streaming"
| #define PACKAGE_TARNAME "mod_h264_streaming"
| #define PACKAGE_VERSION "2.2.7"
| #define PACKAGE_STRING "mod_h264_streaming 2.2.7"
| #define PACKAGE_BUGREPORT "h264 at code-shop.com"
| #define PACKAGE "mod_h264_streaming"
| #define VERSION "2.2.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| 
| #include <stdio.h>
| #include <stdlib.h>
| #include <string.h>
| #include "httpd.h"
| 
| #ifndef AP_SERVER_BASEREVISION
|     #define AP_SERVER_BASEREVISION SERVER_BASEREVISION
| #endif
| 
| char* my_strdup (char *str)
| {
|     char *new_str;
| 
|     if (str) {
|         new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
|         strcpy (new_str, str);
|     } else
|         new_str = NULL;
| 
|     return new_str;
| }
| 
| int main (int argc, char *argv[])
| {
|     int major1, minor1, micro1;
|     int major2, minor2, micro2;
|     char *tmp_version;
| 
|     { FILE *fp = fopen("conf.apachetest", "a"); if ( fp ) fclose(fp); }
| 
|     tmp_version = my_strdup("2.0.55");
|     if (sscanf(tmp_version, "%d.%d.%d", &major1, &minor1, &micro1) != 3) {
|         printf("%s, bad version string\n", "2.0.55");
|         exit(1);
|     }
|     tmp_version = my_strdup(AP_SERVER_BASEREVISION);
|     if (sscanf(tmp_version, "%d.%d.%d", &major2, &minor2, &micro2) != 3) {
|         printf("%s, bad version string\n", AP_SERVER_BASEREVISION);
|         exit(1);
|     }
| 
|     if ( (major2 == major1) &&
|         ( (minor2 > minor1) ||
|         ((minor2 == minor1) && (micro2 >= micro1)) ) ) {
|         exit(0);
|     } else {
|         exit(1);
|     }
| }
| 
| 
configure:11999: gcc -o conftest -g -O2   -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/usr/local/apache2/include  -I/usr/include/apr-1 -I/usr/include /include  -I/usr/include/apr-1    conftest.c  >&5
In file included from /usr/local/apache2/include/ap_config.h:138:0,
                 from /usr/local/apache2/include/httpd.h:44,
                 from conftest.c:24:
/usr/local/apache2/include/ap_config_auto.h:210:0: warning: "PACKAGE_BUGREPORT" redefined
conftest.c:6:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:213:0: warning: "PACKAGE_NAME" redefined
conftest.c:2:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:216:0: warning: "PACKAGE_STRING" redefined
conftest.c:5:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:219:0: warning: "PACKAGE_TARNAME" redefined
conftest.c:3:0: note: this is the location of the previous definition
/usr/local/apache2/include/ap_config_auto.h:225:0: warning: "PACKAGE_VERSION" redefined
conftest.c:4:0: note: this is the location of the previous definition
/include: file not recognized: Is a directory
collect2: ld returned 1 exit status
configure:12005: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "mod_h264_streaming"
| #define PACKAGE_TARNAME "mod_h264_streaming"
| #define PACKAGE_VERSION "2.2.7"
| #define PACKAGE_STRING "mod_h264_streaming 2.2.7"
| #define PACKAGE_BUGREPORT "h264 at code-shop.com"
| #define PACKAGE "mod_h264_streaming"
| #define VERSION "2.2.7"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| 
| #include <stdio.h>
| #include "httpd.h"
| 
| int main(int argc, char *argv[])
| { return 0; }
| #undef main
| #define main K_and_R_C_main
| 
| int
| main ()
| {
|  return 0;
|   ;
|   return 0;
| }
configure:12023: result: no
configure:12026: error: *** Apache version 2.0.55 not found!

....

Dort wird versucht, mit gcc das conftest-Programm zu kompilieren und auszuführen, was aber nicht funktioniert. conftest prüft dann die Apache-Version.

Danke
André


Mehr Informationen über die Mailingliste Eisfair