apache2nginx icon indicating copy to clipboard operation
apache2nginx copied to clipboard

Fixed segfault on ubuntu by updating apr

Open gaby64 opened this issue 6 years ago • 4 comments

included your changes to apr in the update

gaby64 avatar Dec 06 '18 15:12 gaby64

I can confirm, on MacOS (Catalina) there was a segfault also, when trying to run app after build. This gaby64's changes fixed this. By the way, I also needed to give exact zlib path to configure. Otherwise it gave me "not found" error. (i.e. ./configure --prefix=/usr/local/apache2nginx --with-z=/usr/local/Cellar/zlib/1.2.11)

micczu2 avatar Feb 06 '20 10:02 micczu2

Unfortunately, this does not appear to work on Ubuntu 18.04.4 LTS:

/bin/bash /usr/local/src/apache2nginx/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread   -DHAVE_CONFIG_H  -DLINUX -D_REENTRANT -D_GNU_SOURCE   -I/usr/local/src/apache2nginx/srclib/apr-util/include -I/usr/local/src/apache2nginx/srclib/apr-util/include/private  -I/usr/local/src/apache2nginx/srclib/apr/include    -o xml/apr_xml.lo -c xml/apr_xml.c && touch xml/apr_xml.lo
xml/apr_xml.c:35:10: fatal error: expat.h: No such file or directory
 #include <expat.h>
          ^~~~~~~~~
compilation terminated.
/usr/local/src/apache2nginx/srclib/apr-util/build/rules.mk:206: recipe for target 'xml/apr_xml.lo' failed
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/usr/local/src/apache2nginx/srclib/apr-util'
/usr/local/src/apache2nginx/srclib/apr-util/build/rules.mk:118: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/usr/local/src/apache2nginx/srclib/apr-util'
/usr/local/src/apache2nginx/build/rules.mk:72: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/apache2nginx/srclib'
/usr/local/src/apache2nginx/build/rules.mk:72: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

samip5 avatar Apr 05 '20 20:04 samip5

@gaby64 Could you maybe make a Docker version of this app? :)

samip5 avatar Apr 05 '20 20:04 samip5

sudo apt install libexpat1

gaby64 avatar Apr 08 '20 19:04 gaby64