Build Apache on vista - apache

I try to build Apache2.4.9 by MINGW on VISTA.
When I make it following messages are showed.
mod_proxy.c:2700:1: error: initializer element is not constant
In file included from c:/devel/apache/httpd-2.4.9/include/util_mutex.h:30:0,
from mod_proxy.h:47,
from mod_proxy.c:17:
Does anyone know how to fix this?
I configured it with following command line.
./configure --prefix=/c/opt/apache --with-apr=/c/opt/apache --with-apr-util=/c/opt/apache --with-pcre=/c/opt/pcre --with-ssl=/c/opt/openssl --disable-ratelimit --disable-mod_proxy
If I change to Apache2.4.7 and run make following messages are showed.
modules/generators/.libs/libmod_status.a(mod_status.o): In function `status_hand
ler':
c:\devel\apache\httpd-2.2.27\modules\generators/mod_status.c:825: undefined refe
rence to `_imp__ap_run_status_hook#8'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [httpd] Error 1
I can't solve these.

Related

Building C++ Pybind11 extension with setuptools and CMake generates .so directory

I am trying to use setuptools to install a C++ library with a Pybind11 interface using CMake. For using CMake with setuptools, I am using the code in the following answer: Extending setuptools extension to use CMake in setup.py?
I am able to build the library by hand with cmake.
Unfortunately however, when executing pip install . in the root directory of my project, the build fails.
While the first call to cmake (self.spawn(['cmake', str(cwd)] + cmake_args)) finishes without any error, executing the second call (self.spawn(['cmake', '--build', '.'] + build_args)) gives me the following error:
/users/thoerman/miniconda3/envs/postproc_np_products/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot open output file /users/thoerman/postproc_np_products/build/lib.linux-x86_64-cpython-37/postproc_ops_cpp.cpython-37m-x86_64-linux-gnu.so: Is a directory
collect2: error: ld returned 1 exit status
gmake[3]: *** [/users/thoerman/postproc_np_products/build/lib.linux-x86_64-cpython-37/postproc_ops_cpp.cpython-37m-x86_64-linux-gnu.so] Error 1
gmake[2]: *** [CMakeFiles/postproc_ops_cpp.dir/all] Error 2
gmake[1]: *** [CMakeFiles/postproc_ops_cpp.dir/rule] Error 2
gmake: *** [postproc_ops_cpp] Error 2
But when running the exact same commands on the command line inside the build_temp directory, everything works just fine.
Does anyone have a hint for me, what might be going wrong?
After further digging into the problem, I found the solution myself.
The problem was with the lines
extdir = pathlib.Path(self.get_ext_fullpath(ext.name))
extdir.mkdir(parents=True, exist_ok=True)
This created a directory for the target to be built. Building the target then failed, since there was already a directory with the same name.
I was able to solve it by replacing the second line as follows:
extdir.parent.mkdir(parents=True, exist_ok=True)

ld unrecognised emulation mode aarch64linux

When running make in CMake, I only get an error that says /usr/bin/ld unrecognised emulation mode aarch64linux.
Im trying to build DualBootPatcher app for Android, this is the error:
/usr/bin/ld: unrecognised emulation mode: aarch64linux
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu elf_l1om elf_k1om i386pep i386pe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: *** [misc/CMakeFiles/fsck-wrapper.dir/build.make:76: misc/fsck-wrapper] Error 1
make[4]: *** [CMakeFiles/Makefile2:1786: misc/CMakeFiles/fsck-wrapper.dir/all] Error 2
make[3]: *** [Makefile:163: all] Error 2
make[2]: *** [android/CMakeFiles/android-system_arm64-v8a.dir/build.make:111: android/android-system_arm64-v8a-prefix/src/android-system_arm64-v8a-stamp/android-system_arm64-v8a-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:1868: android/CMakeFiles/android-system_arm64-v8a.dir/all] Error 2
make: *** [Makefile:163: all] Error 2>
Im running latest Cmake and binutils. Also tried reinstalling binutils.
Im NOT a developers, so it would be nice if you could explain it^^
Does anyone has a solution?
The issue is clear from the fact that the output is coming from /usr/bin/ld. This is the system ld, rather than the ld included with the NDK. You should investigate why this ld is being executed instead, for example via strace.
For me it turned out to be a file permissions issue - the NDK zip file had extracted without execute permissions, so the toolchain binaries were silently ignored. A few chmod +x later and all was well.

Undefined reference to `XF86VidModeQueryExtension'

I am trying to compile libfreenect2 from libfreenect2 and it turns out that when I run the make file after having done cmake CMakeLists.txt in step 5, I keep having the following errors:
Linking CXX executable /home/lex/libfreenect2/examples/protonect/bin/Protonect
/home/lex/libfreenect2/examples/protonect/lib/libfreenect2.so: undefined reference to `XF86VidModeQueryExtension'
/home/lex/libfreenect2/examples/protonect/lib/libfreenect2.so: undefined reference to `XF86VidModeGetGammaRampSize'
/home/lex/libfreenect2/examples/protonect/lib/libfreenect2.so: undefined reference to `XF86VidModeGetGammaRamp'
/home/lex/libfreenect2/examples/protonect/lib/libfreenect2.so: undefined reference to `XF86VidModeSetGammaRamp'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/lex/libfreenect2/examples/protonect/bin/Protonect] Error 1
make[1]: *** [CMakeFiles/Protonect.dir/all] Error 2
make: *** [all] Error 2
Does anyone have any idea on how to fix this?
Your program appears to depend upon libXxf86vm. You will need to add something like
-lXxf86vm
to the link command line. Be sure to install the development package. I am surprised the CMakeLists.txt did not have this.
Installing Mesa3D seems to fix my issue. It's something that probably had to do with the dependencies of libfreenect2 during the cmake installation.

Apache does not install on FreeBSD 8.4

today i tried to install a Webserver on FreeBSD 8.4... I updated the ports, but apache gives me this message:
pkg_create: make_dist: tar command failed with code 256
*** Error code 1
Stop in /usr/ports/devel/p5-Locale-gettext.
*** Error code 1
Stop in /usr/ports/misc/help2man.
*** Error code 1
Stop in /usr/ports/misc/help2man.
*** Error code 1
Stop in /usr/ports/devel/autoconf.
*** Error code 1
Stop in /usr/ports/www/apache24.
*** Error code 1
Stop in /usr/ports/www/apache24.
How can I resolve?
Thank you and sorry for bad english
The error is probably in the line before the error cascade you posted.
The error is not in apache but in p5-Locale-gettext. Most likely it is missing some files.
Workaround:
cd /usr/ports/misc/help2man
make config
disable the NLS option
...and try again.
After this, i tried to install PHP 5.3, but i got this message
configure: error: xml2-config not found. Please check your libxml2 installation.
And it says to give you the config.log
Here you are:
http://notepad.cc/share/c8K36t3G3x

How can I use WSGI 3.4 with Python 3.3.1?

I installed Python 3.3.1 and Apache 2.4.4 from source in Ubuntu 12.10.
When I built WSGI source code, it told me that:
/usr/bin/ld: cannot find -lpython3.3
collect2: error: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
I don't know how to deal with it.
Thanks for help!
Modify the generated Makefile and change '-lpython3.3' to '-lpython3.3m'. Then build again.