apache configuration error

apache configuration error

am 01.02.2010 16:33:23 von daulat khan

Hi,


i am hitting with this error while configuring apache httpd-2.2.14 in
solaris 10 machine


checking pthread.h presence... yes
configure: WARNING: pthread.h: present but cannot be compiled

and while running make it produces this error.

/usr/ucbinclude/sys/file.h:156:20: macro "lseek" requires 3 arguments,
but only 1 given
In file included from file_io/unix/flock.c:23:
/usr/ucbinclude/sys/file.h:156: error: `lseek' redeclared as different
kind of symbol
/usr/ucbinclude/unistd.h:156: error: previous declaration of `lseek'
make-3.79.1-p7[3]: *** [file_io/unix/flock.lo] Error 1
make-3.79.1-p7[3]: Leaving directory `/opt/dasyedib/httpd-2.2.14/srclib/apr'
make-3.79.1-p7[2]: *** [all-recursive] Error 1
make-3.79.1-p7[2]: Leaving directory `/opt/dasyedib/httpd-2.2.14/srclib/apr'
make-3.79.1-p7[1]: *** [all-recursive] Error 1
make-3.79.1-p7[1]: Leaving directory `/opt/dasyedib/httpd-2.2.14/srclib'
make-3.79.1-p7: *** [all-recursive] Error 1


Please help.

Thanks,
Daulatkhan

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache configuration error

am 01.02.2010 16:39:09 von Jeff Trawick

On Mon, Feb 1, 2010 at 10:33 AM, daulat khan wrote:
> Hi,
>
>
> i am hitting with this error while configuring apache httpd-2.2.14 in
> solaris 10 machine
>
>
> checking pthread.h presence... yes
> configure: WARNING: pthread.h: present but cannot be compiled

toolchain problem

a quick fix might be to use Sun Studio instead of gcc

otherwise, wade through the search engine hits for this error message

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache configuration error

am 01.02.2010 17:04:31 von Nick Kew

daulat khan wrote:

> /usr/ucbinclude/sys/file.h:156:20: macro "lseek" requires 3 arguments,

That's BSD compatibility headers. You shouldn't go anywhere near those
compiling on Solaris, unless perhaps it's a cross-compile or other such
specialist job! I expect apache's configure expects native headers and
breaks on yours (if they aren't inherently broken).

It might work if you go one step back from configure to buildconf.
But I wouldn't advise that unless you're happy to fix any problems.

Have a word with your sysop about why you have this non-standard
environment as your default. Or just take all ucb stuff out of
your paths, and (if necessary) install a new toolchain - either
sunstudio or gcc will do the job.

--
Nick Kew

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache configuration error

am 02.02.2010 10:03:19 von daulat khan

i have installed sun studio and set the path variable as below
PATH=3D/opt/dasyedib/sunstudio12.1/bin:/bin:/router/bin:/sbi n:/usr/sbin:/us=
r/bin
LD_LIBRARY_PATH=3D/opt/dasyedib/sunstudio12.1/lib

and used this command to configure
../configure --prefix=3D/opt/dasyedib/apache
CFLAGS=3D-I/opt/dasyedib/sunstudio12.1/include
LDFLAGS=3D-L/opt/dasyedib/sunstudio12.1/lib

But still the configuration issue is present.

configure: WARNING: signal.h: present but cannot be compiled
configure: WARNING: signal.h: check for missing prerequisite headers?
configure: WARNING: signal.h: see the Autoconf documentation
configure: WARNING: signal.h: section "Present But Cannot Be Compiled"
configure: WARNING: signal.h: proceeding with the compiler's result


Please help.

Thanks,
Daulatkhan

On Mon, Feb 1, 2010 at 9:34 PM, Nick Kew wrote:
> daulat khan wrote:
>
>> /usr/ucbinclude/sys/file.h:156:20: macro "lseek" requires 3 arguments,
>
> That's BSD compatibility headers. =A0You shouldn't go anywhere near those
> compiling on Solaris, unless perhaps it's a cross-compile or other such
> specialist job! =A0I expect apache's configure expects native headers and
> breaks on yours (if they aren't inherently broken).
>
> It might work if you go one step back from configure to buildconf.
> But I wouldn't advise that unless you're happy to fix any problems.
>
> Have a word with your sysop about why you have this non-standard
> environment as your default. =A0Or just take all ucb stuff out of
> your paths, and (if necessary) install a new toolchain - either
> sunstudio or gcc will do the job.
>
> --
> Nick Kew
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0" =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: apache configuration error

am 02.02.2010 13:11:29 von Jeff Trawick

On Tue, Feb 2, 2010 at 4:03 AM, daulat khan wrote:
> i have installed sun studio and set the path variable as below
> PATH=3D/opt/dasyedib/sunstudio12.1/bin:/bin:/router/bin:/sbi n:/usr/sbin:/=
usr/bin
> LD_LIBRARY_PATH=3D/opt/dasyedib/sunstudio12.1/lib
>
> and used this command to configure
> ./configure --prefix=3D/opt/dasyedib/apache
> CFLAGS=3D-I/opt/dasyedib/sunstudio12.1/include
> LDFLAGS=3D-L/opt/dasyedib/sunstudio12.1/lib

There's no need to set LD_LIBRARY_PATH, CFLAGS, or LDFLAGS.

Make sure "cc -V" reports something similar to

cc: Sun C 5.10 SunOS_i386 2009/06/03
usage: cc [ options] files. Use 'cc -flags' for details

and set CC=3Dcc in the environment where you run configure.

>
> But still the configuration issue is present.
>
> configure: WARNING: signal.h: present but cannot be compiled
> configure: WARNING: signal.h: =A0 =A0 check for missing prerequisite head=
ers?
> configure: WARNING: signal.h: see the Autoconf documentation
> configure: WARNING: signal.h: =A0 =A0 section "Present But Cannot Be Comp=
iled"
> configure: WARNING: signal.h: proceeding with the compiler's result

Can you find the portion of config.log that pertains to this failure,
and post it?

(BTW, no clue here how/why your previous post indicated that you were
using the non-standard headers. Are any other build-related envvars
set, such as INCLUDES?)

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org