Hi Apache Experts, Gentle reminder! Regard, Salim -----Original Message----- From: Salim Abdul -X (salimabd - HCL TECHNOLOGIES LIMITED at Cisco) Sent: Monday, September 23, 2019 6:43 PM To: users@xxxxxxxxxxxxxxxx Subject: Apache-httpd 2.4.41 compiling/linking error Hi, I am trying to cross-compile Apache-httpd along with APR and APR-util with the below recommended version. httpd-2.4.41 APR 1.7.0, released April 5, 2019 and APR-util 1.6.1, released October 22, 2017 Compilation is failed with error Making all in apr Makefile:139: warning: undefined variable `LOCAL_LIBS' /salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/build/apr_rules.mk:120: warning: undefined variable `EXTRA_SOURCE_DIRS' Makefile:139: warning: undefined variable `LOCAL_LIBS' libtool: compile: x86_64-montavista-linux-gnu-gcc -m64 -msse3 --sysroot /salim/test/distro/tmp/sysroots/x86-generic-64 -isystem/salim/test/distro/tmp/sysroots/x86-generic-64/usr/include -O2 -pipe -DLIBICONV_PLUG -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I./include -I/nobackup/salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/include/arch/unix -I./include/arch/unix -I/salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/include/arch/unix -I/salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/include -I/salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/include/private -I/salim/test/obj/x86_64/apache-httpd/httpd-2.4.41/srclib/apr/include/private -c locks/unix/proc_mutex.c -fPIC -DPIC -o locks/unix/.libs/proc_mutex.o locks/unix/proc_mutex.c: In function ���proc_mutex_choose_method���: locks/unix/proc_mutex.c:1494:28: error: ���mutex_proc_pthread_methods��� undeclared (first use in this function) locks/unix/proc_mutex.c:1494:28: note: each undeclared identifier is reported only once for each function it appears in locks/unix/proc_mutex.c:1496:25: error: ���apr_os_proc_mutex_t��� has no member named ���pthread_interproc��� locks/unix/proc_mutex.c:1499:26: error: ���apr_os_proc_mutex_t��� has no member named ���pthread_interproc��� locks/unix/proc_mutex.c:1499:55: error: ���apr_os_proc_mutex_t��� has no member named ���pthread_interproc��� make[4]: *** [locks/unix/proc_mutex.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make-3.82: *** [obj/x86_64/apache-httpd/httpd.built] Error 1 I can see "USE_PROC_PTHREAD_SERIALIZE" flag is set in configure file but the compiler could not see mutex_proc_pthread_methods structure since it is within the condition of another undefined flag. To workaround this, I removed the 'USE_PROC_PTHREAD_SERIALIZE=1 part in configure file got stuck in another error duing linking . /auto/roc-bgl/tools/MV/170123/install/tools/x86_64-gnu/libexec/../lib/gcc/x86_64-montavista-linux-gnu/4.7.0/../../../../x86_64-montavista-linux-gnu/bin/ld: server/mpm/event/.libs/libevent.a(event.o): undefined reference to symbol 'pthread_sigmask@@GLIBC_2.2.5' /auto/roc-bgl/tools/MV/170123/install/tools/x86_64-gnu/libexec/../lib/gcc/x86_64-montavista-linux-gnu/4.7.0/../../../../x86_64-montavista-linux-gnu/bin/ld: note: 'pthread_sigmask@@GLIBC_2.2.5' is defined in DSO /salim/test/distro/tmp/sysroots/x86-generic-64/lib64/libpthread.so.0 so try adding it to the linker command line /salim/test/distro/tmp/sysroots/x86-generic-64/lib64/libpthread.so.0: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [httpd] Error 1 make[1]: *** [all-recursive] Error 1 make-3.82: *** [obj/x86_64/apache-httpd/httpd.built] Error 1 Need your help to get rid of the errors. Thanks for any help. Regards, Salim --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx