Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear ALL,
I am trying to cross compile apache-2.0.54 for ARM,I cannot configure it .I get error related to srclib/apr(apache portable runtime).so,I am cross compiling apr package.I am not able to configure it.
root@hbpc:/home/addin/httpd-2.2.11# ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --host=arm-unknown-linux-gnu
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: loading cache /dev/null
/dev/null: line 1: ./configure:: No such file or directory
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking target system type... arm-unknown-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... yes
setting CPP to "arm-unknown-linux-gnu-gcc -E"
setting CFLAGS to " -g -O2"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
setting LDFLAGS to " "
checking for APR-util... yes
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking for arm-unknown-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... arm-unknown-linux-gnu-gcc -E
configure: Configuring PCRE regular expression library
configuring package in srclib/pcre now
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: loading cache /dev/null
/dev/null: line 1: /home/addin/httpd-2.2.11/srclib/pcre/configure:: No such file or directory
checking for arm-unknown-linux-gnu-gcc... arm-unknown-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-unknown-linux-gnu-gcc accepts -g... yes
checking for arm-unknown-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... arm-unknown-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memmove... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pcre.h
config.status: creating pcre-config
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
srclib/pcre configured properly
configure: loading cache /dev/null
setting AP_LIBS to "/home/addin/httpd-2.2.11/srclib/pcre/libpcre.la"
setting INCLUDES to "-I$(top_builddir)/srclib/pcre"
Configuring Apache httpd ...
adding "-I." to INCLUDES
adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
adding "-I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME)" to INCLUDES
adding "-I$(top_srcdir)/modules/http" to INCLUDES
adding "-I$(top_srcdir)/modules/filters" to INCLUDES
adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
adding "-I$(top_srcdir)/include" to INCLUDES
adding "-I$(top_srcdir)/modules/generators" to INCLUDES
adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
adding "-I$(top_srcdir)/modules/database" to INCLUDES
adding "-I/usr/local/apr/include/apr-1" to INCLUDES
adding "-I/usr/local/apr-util/include/apr-1" to INCLUDES
Applying OS-specific hints for httpd ...
forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... no
checking for rsync... no
checking for gawk... gawk
checking whether ln -s works... yes
checking for arm-unknown-linux-gnu-ranlib... arm-unknown-linux-gnu-ranlib
checking for lynx... no
checking for links... no
checking for elinks... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking for APR version 1.2.0 or later... yes
checking for APR-util version 1.2.0 or later... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for void pointer length... yes
configure: error: Size of "void *" is less than size of "long"
Pieces of config.log showing the error and environment are here,
.....
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #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 __EXTENSIONS__ 1
| #define _ALL_SOURCE 1
| #define _GNU_SOURCE 1
| #define _POSIX_PTHREAD_SEMANTICS 1
| #define _TANDEM_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_STRING_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_PWD_H 1
| #define HAVE_GRP_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_PRCTL_H 1
| #define HAVE_SYS_SEM_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_GETPWNAM 1
| #define HAVE_GETGRNAM 1
| #define HAVE_INITGROUPS 1
| /* end confdefs.h. */
| /* Define bindprocessor to an innocuous variant, in case <limits.h> declares bindprocessor.
| For example, HP-UX 11i <limits.h> declares gettimeofday. */
| #define bindprocessor innocuous_bindprocessor
|
| /* System header to define __stub macros and hopefully few prototypes,
| which can conflict with char bindprocessor (); below.
| Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
| <limits.h> exists even on freestanding compilers. */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef bindprocessor
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char bindprocessor ();
| /* The GNU C library defines this for functions which it implements
| to always fail with ENOSYS. Some functions are actually named
| something starting with __ and the normal name is an alias. */
| #if defined __stub_bindprocessor || defined __stub___bindprocessor
| choke me
| #endif
|
| int
| main ()
| {
| return bindprocessor ();
| ;
| return 0;
| }
configure:7776: result: no
configure:7691: checking for prctl
configure:7747: arm-unknown-linux-gnu-gcc -o conftest -g -O2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c -lm >&5
configure:7754: $? = 0
configure:7776: result: yes
configure:7691: checking for timegm
configure:7747: arm-unknown-linux-gnu-gcc -o conftest -g -O2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c -lm >&5
configure:7754: $? = 0
configure:7776: result: yes
configure:7691: checking for getpgid
configure:7747: arm-unknown-linux-gnu-gcc -o conftest -g -O2 -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE conftest.c -lm >&5
configure:7754: $? = 0
configure:7776: result: yes
configure:7791: checking for void pointer length
configure:7848: result: yes
configure:7852: error: Size of "void *" is less than size of "long"
Dear ALL,
I am trying to cross compile apache-2.0.54 for ARM,I cannot configure it .I get error related to srclib/apr(apache portable runtime).so,I am cross compiling apr package.I am not able to configure it.
Can anyone,Please help me to solve the problem.
With Regards,
Keerti
I have the same error.
configure: error: Size of "void *" is less than size of "long"
I have the same error.
configure: error: Size of "void *" is less than size of "long"
How did you fixed that.
You have to specify the size of void * by hand. I added "ap_cv_void_ptr_lt_long=4" to my config options, e.g., "./config ap_cv_void_ptr_lt_long=4" Note that a long just happened to be 4 bytes for my target (powerpc) and it could be different for yours. Look for the following lines whiz by when running ./configure to find the right size:
Code:
checking for inline... inline
checking for an ANSI C-conforming const... yes
checking whether setpgrp takes no argument... (cached) no
checking for socklen_t... yes
checking size of void*... 4
checking size of char... 1
checking size of int... 4
checking size of long... 4
checking size of short... 2
checking size of long long... 8
checking for INT64_C... yes
checking size of pid_t... 8
checking whether ssize_t and int are the same... yes
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.