cancel
Showing results for 
Search instead for 
Did you mean: 

Apache Installation configure: error: could not determine the size of off_t

deepak_kn1
Discoverer
0 Kudos

Hi,

I was installing Apache httpd-2.2.g.tar.gz, i got the below error message while configure.

checking size of short... 2

checking for long long... yes

checking size of long long... 8

checking for INT64_C... yes

checking size of ssize_t... 0

checking size of size_t... 0

checking size of off_t... 0

checking which type to use for apr_off_t... configure: error: could not determine the size of off_t

configure failed for srclib/apr

gnumake: *** [/net/usr.scratch/i030947/deepak/platforms/sun/cs2/httpd-2.2.8/inst/include/ap_config_auto.h] Error 1

Regards

Deepak

Accepted Solutions (0)

Answers (1)

Answers (1)

markus_doehr2
Active Contributor
0 Kudos

First: how relates an Apache compile to a "SAP on Unix" system? What is your goal?

Second: Without any information about OS, compiler and compile flags used it's next to impossible to help you. Are you trying to build 32bit or 64bit? Using GCC or Sun native compilers?

Markus

deepak_kn1
Discoverer
0 Kudos

Dear Markus,

I want to install and build Content Server Modules with Apache 2.2 on all platforms.

I have validated and successfully built on all platforms except sunx86_64.

I get the below error when doing so .

Can you please advise here .

./configure --enable-mods-shared=most --prefix=/net/usr.scratch/i030947/deepak/platforms/sunx86_64/cs2/httpd-2.2.8/inst

checking for inline... inline

checking for an ANSI C-conforming const... yes

checking whether setpgrp takes no argument... yes

checking for socklen_t... yes

checking for void*... yes

checking size of void*... 4

checking for char... yes

checking size of char... 1

checking for int... yes

checking size of int... 4

checking for long... yes

checking size of long... 4

checking for short... yes

checking size of short... 2

checking for long long... yes

checking size of long long... 8

checking for INT64_C... yes

checking size of ssize_t... 0

checking size of size_t... 0

checking size of off_t... 0

checking which type to use for apr_off_t... configure: error: could not determine the size of off_t

configure failed for srclib/apr

gnumake: *** [/net/usr.scratch/i030947/deepak/platforms/sunx86_64/cs2/httpd-2.2.8/inst/include/ap_config_auto.h] Error 1

I am trying to build 64 bit apache.

Regards

Deepak

deepak_kn1
Discoverer
0 Kudos

"aparequest.h", line 4: Error: Could not open include file "ap_config_auto.h".

"httpd-2.2.8/include/ap_config.h", line 25: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr-util/include/apr_hooks.h", line 20: Error: Could not open include file "apu.h".

"httpd-2.2.8/srclib/apr/include/apr_tables.h", line 25: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr/include/apr_pools.h", line 37: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr/include/apr_errno.h", line 25: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr/include/apr_errno.h", line 52: Error: "{" expected instead of "apr_strerror".

"httpd-2.2.8/srclib/apr/include/apr_errno.h", line 52: Error: Unexpected type name "apr_status_t" encountered.

"httpd-2.2.8/srclib/apr/include/apr_errno.h", line 52: Error: statcode is not defined.

"httpd-2.2.8/srclib/apr/include/apr_errno.h", line 52: Error: Badly formed expression.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 28: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 160: Error: Only one of a set of overloaded functions can be extern "C".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 160: Error: std::memchr(const void, int, unsigned long), returning void, was previously declared returning const void*.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 176: Error: Only one of a set of overloaded functions can be extern "C".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 176: Error: "{" expected instead of "apr_initialize".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 176: Error: Badly formed expression.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 190: Error: Unexpected type name "apr_status_t" encountered.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 190: Error: Badly formed expression.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 192: Error: A declaration was expected instead of "char".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 192: Error: Use ";" to terminate declarations.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 192: Error: "," expected instead of ")".

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 203: Error: Badly formed expression.

"httpd-2.2.8/srclib/apr/include/apr_general.h", line 214: Error: Badly formed expression.

"httpd-2.2.8/srclib/apr/include/apr_want.h", line 17: Error: Could not open include file "apr.h".

"httpd-2.2.8/srclib/apr/include/apr_pools.h", line 158: Error: Only one of a set of overloaded functions can be extern "C".

Compilation aborted, too many Error messages.

gnumake: *** [apacsrvstate.22o] Error 1

Is it because the apache source file is missing ?

Regards

Deepak

markus_doehr2
Active Contributor
0 Kudos

Again the question:

Which compiler and compiler flags do you use?

On Solaris x86_64 you have to explicitly compile to 64bit, it defaults to 32bit if you don't tell the compiler to do so.

Markus