Re: Install Apache 2.4.20 on Solaris 10 --- Error "ld: fatal: file ab.o: wrong ELF class: ELFCLASS32"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 28.04.2016 um 19:59 schrieb Jinhui.Huang.CTR@xxxxxxx:
Hi, Rainer:
The following is the output of make,  after I run a "make clean" first.
Jin
--------------------------------------------------------
# make clean
Making clean in test
rm -f *.o *.lo *.slo *.obj *.a *.la
rm -rf .libs
Making clean in srclib
Making clean in apr-util
Making clean in test
rm -f ./*.o ./*.lo ./*.a ./*.la ./*.so ./*.obj
rm -rf ./.libs
rm -f manyfile.bin testfile.txt data/sqlite*.db dbd testall
rm -rf autom4te.cache
......
......

# make
Making all in srclib
Making all in apr
/usr/local/apache2/install/httpd-2.4.20/srclib/apr/build/mkdir.sh tools
/bin/bash /usr/local/apache2/install/httpd-2.4.20/srclib/apr/libtool --silent --mode=compile gcc -m64 -g -O2   -DHAVE_CONFIG_H  -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT   -I./include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include/arch/unix -I./include/arch/unix -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include/arch/unix -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include/private -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include/private  -o tools/gen_test_char.lo -c tools/gen_test_char.c && touch tools/gen_test_char.lo
/bin/bash /usr/local/apache2/inst
......
......
pd-2.4.20/modules/ssl -I/usr/local/apache2/install/httpd-2.4.20/modules/test -I/usr/local/apache2/install/httpd-2.4.20/server -I/usr/local/apache2/install/httpd-2.4.20/modules/arch/unix -I/usr/local/apache2/install/httpd-2.4.20/modules/dav/main -I/usr/local/apache2/install/httpd-2.4.20/modules/generators -I/usr/local/apache2/install/httpd-2.4.20/modules/mappers  -prefer-non-pic -static -c util_xml.c && touch util_xml.lo
/usr/local/apache2/install/httpd-2.4.20/srclib/apr/libtool --silent --mode=compile gcc -m64 -std=gnu99  -g -O2      -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT     -I. -I/usr/local/apache2/install/httpd-2.4.20/os/unix -I/usr/local/apache2/install/httpd-2.4.20/include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr-util/include -I/usr/local/apache2/pcre2/include -I/usr/local/apache2/install/httpd-2.4.20/modules/aaa -I/usr/local/apache2/install/httpd-2.4.20/modules/cache -I/usr/local/apache2/install/httpd-2.4.20/modules/core -I/usr/local/apache2/install/httpd-2.4.20/modules/database -I/usr/local/apache2/install/httpd-2.4.20/modules/filters -I/usr/local/apache2/install/httpd-2.4.20/modules/ldap -I/usr/local/apache2/install/httpd-2.4.20/modules/loggers -I/usr/local/apache2/install/httpd-2.4.20/modules/lua -I/usr/local/apache2/install/httpd-2.4.20/modules/proxy -I/usr/local/apache2/install/httpd-2.4.20/!
modules/
session -I/usr/local/apache2/install/httpd-2.4.20/modules/ssl -I/usr/local/apache2/install/httpd-2.4.20/modules/test -I/usr/local/apache2/install/httpd-2.4.20/server -I/usr/local/apache2/install/httpd-2.4.20/modules/arch/unix -I/usr/local/apache2/install/httpd-2.4.20/modules/dav/main -I/usr/local/apache2/install/httpd-2.4.20/modules/generators -I/usr/local/apache2/install/httpd-2.4.20/modules/mappers  -prefer-non-pic -static -c util_filter.c && touch util_filter.lo
/usr/local/apache2/install/httpd-2.4.20/srclib/apr/libtool --silent --mode=compile gcc -m64 -std=gnu99  -g -O2      -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT     -I. -I/usr/local/apache2/install/httpd-2.4.20/os/unix -I/usr/local/apache2/install/httpd-2.4.20/include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr/include -I/usr/local/apache2/install/httpd-2.4.20/srclib/apr-util/include -I/usr/local/apache2/pcre2/include -I/usr/local/apache2/install/httpd-2.4.20/modules/aaa -I/usr/local/apache2/install/httpd-2.4.20/modules/cache -I/usr/local/apache2/install/httpd-2.4.20/modules/core -I/usr/local/apache2/install/httpd-2.4.20/modules/database -I/usr/local/apache2/install/httpd-2.4.20/modules/filters -I/usr/local/apache2/install/httpd-2.4.20/modules/ldap -I/usr/local/apache2/install/httpd-2.4.20/modules/loggers -I/usr/local/apache2/install/httpd-2.4.20/modules/lua -I/usr/local/apache2/install/httpd-2.4.20/modules/proxy -I/usr/local/apache2/install/httpd-2.4.20/!
modules/
session -I/usr/local/apache2/install/httpd-2.4.20/modules/ssl -I/usr/local/apache2/install/httpd-2.4.20/modules/test -I/usr/local/apache2/install/httpd-2.4.20/server -I/usr/local/apache2/install/httpd-2.4.20/modules/arch/unix -I/usr/local/apache2/install/httpd-2.4.20/modules/dav/main -I/usr/local/apache2/install/httpd-2.4.20/modules/generators -I/usr/local/apache2/install/httpd-2.4.20/modules/mappers  -prefer-non-pic -static -c util_pcre.c && touch util_pcre.lo
util_pcre.c:49:18: pcre.h: No such file or directory
util_pcre.c: In function `ap_regfree':
util_pcre.c:104: error: `pcre_free' undeclared (first use in this function)
util_pcre.c:104: error: (Each undeclared identifier is reported only once
util_pcre.c:104: error: for each function it appears in.)
util_pcre.c: In function `ap_regcomp':
util_pcre.c:128: error: `PCRE_DUPNAMES' undeclared (first use in this function)
util_pcre.c:131: error: `PCRE_CASELESS' undeclared (first use in this function)
util_pcre.c:133: error: `PCRE_MULTILINE' undeclared (first use in this function)
util_pcre.c:135: error: `PCRE_DOTALL' undeclared (first use in this function)
util_pcre.c:138: warning: implicit declaration of function `pcre_compile2'
util_pcre.c:138: warning: assignment makes pointer from integer without a cast
util_pcre.c:151: warning: implicit declaration of function `pcre_fullinfo'
util_pcre.c:151: error: syntax error before "pcre"
util_pcre.c: In function `ap_regexec_len':
util_pcre.c:189: error: `PCRE_NOTBOL' undeclared (first use in this function)
util_pcre.c:191: error: `PCRE_NOTEOL' undeclared (first use in this function)
util_pcre.c:207: warning: implicit declaration of function `pcre_exec'
util_pcre.c:207: error: syntax error before "pcre"
util_pcre.c:230: error: `PCRE_ERROR_NOMATCH' undeclared (first use in this function)
util_pcre.c:232: error: `PCRE_ERROR_NULL' undeclared (first use in this function)
util_pcre.c:234: error: `PCRE_ERROR_BADOPTION' undeclared (first use in this function)
util_pcre.c:236: error: `PCRE_ERROR_BADMAGIC' undeclared (first use in this function)
util_pcre.c:238: error: `PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function)
util_pcre.c:240: error: `PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
util_pcre.c: In function `ap_regname':
util_pcre.c:269: error: syntax error before "pcre"
util_pcre.c:271: error: syntax error before "pcre"
util_pcre.c:273: error: syntax error before "pcre"
*** Error code 1
make: Fatal error: Command failed for target `util_pcre.lo'
Current working directory /usr/local/apache2/install/httpd-2.4.20/server
*** Error code 1

This error is likely a consequence of the error during configure:

checking for pcre-config... false

configure: Using external PCRE library from /usr/local/apache2/pcre2/bin/pcre2-config

  setting PCRE_INCLUDES to "-I/usr/local/apache2/pcre2/include"

Usage: pcre2-config [--prefix] [--exec-prefix] [--version] [--libs8] [--libs-posix] [--cflags] [--cflags-posix]

  setting PCRE_LIBS to ""

Usage: pcre2-config [--prefix] [--exec-prefix] [--version] [--libs8] [--libs-posix] [--cflags] [--cflags-posix]


This indicates that your try to build httpd against pcre version 10. We only support pcre until version 8, latest is 8.38. PCRE version 10, aka pcre2, is not API compatible with pcre until 8. Since the path /usr/local/apache2/pcre2/ looks like you compiled pcre2 yourself, grab pcre 8.38, compile it again and run configure against that one.

This will IMHO *not* fix you other issue about ab.o being 32 bit. Could it be, that ab.o was in your build directory from another attempt at building where you started without the -m64 flag, so that there was already an old 32 bit ab.o file and "make clean" has already fixed that?

Regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux