Apache 2.0.47 will not compile libsrc sendrecv.c error

This is a discussion on Apache 2.0.47 will not compile libsrc sendrecv.c error within the Linux Web Servers forums, part of the Web Server and Related Forums category; I configure with: ../configure --prefix=/usr/local/apache2 --enable-mods-shared=most --enable-deflate --enable-ssl --with-z=/usr/local/...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-17-2003
polarbear
 
Posts: n/a
Default Apache 2.0.47 will not compile libsrc sendrecv.c error

I configure with:
../configure --prefix=/usr/local/apache2 --enable-mods-shared=most
--enable-deflate --enable-ssl --with-z=/usr/local/lib --with-ssl
--enable-so

I make it erros on:

/bin/ksh /src/httpd-2.0.47/srclib/apr/libtool --silent --mode=compile
/usr/local/bin/gcc -g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include
-I../../include/arch/unix -I../../include/arch/unix -c mktemp.c &&
touch mktemp.lo
make[4]: Leaving directory `/src/httpd-2.0.47/srclib/apr/file_io/unix'
make[3]: Leaving directory `/src/httpd-2.0.47/srclib/apr/file_io/unix'
Making all in network_io/unix
make[3]: Entering directory
`/src/httpd-2.0.47/srclib/apr/network_io/unix'
make[4]: Entering directory
`/src/httpd-2.0.47/srclib/apr/network_io/unix'
/bin/ksh /src/httpd-2.0.47/srclib/apr/libtool --silent --mode=compile
/usr/local/bin/gcc -g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include
-I../../include/arch/unix -I../../include/arch/unix -c sendrecv.c &&
touch sendrecv.lo
sendrecv.c: In function `apr_socket_sendfile':
sendrecv.c:882: error: `sendfilevec_t' undeclared (first use in this
function)
sendrecv.c:882: error: (Each undeclared identifier is reported only
once
sendrecv.c:882: error: for each function it appears in.)
sendrecv.c:882: error: `sfv' undeclared (first use in this function)
sendrecv.c:901: error: `SFV_FD_SELF' undeclared (first use in this
function)
make[4]: *** [sendrecv.lo] Error 1
make[4]: Leaving directory
`/src/httpd-2.0.47/srclib/apr/network_io/unix'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/src/httpd-2.0.47/srclib/apr/network_io/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/src/httpd-2.0.47/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/src/httpd-2.0.47/srclib'
make: *** [all-recursive] Error 1

Everything is current as far as gcc, make, autoconf, automake. I have
the latest recomended patches. I just don't know what to try next.
Please help.

-Ken
  #2 (permalink)  
Old 10-17-2003
 
Posts: n/a
Default Re: Apache 2.0.47 will not compile libsrc sendrecv.c error

In article <1fd7a467.0310170540.7d9df78b@posting.google.com >,
mp34ken@hotmail.com (polarbear) writes:
> I configure with:
> ./configure --prefix=/usr/local/apache2 --enable-mods-shared=most
> --enable-deflate --enable-ssl --with-z=/usr/local/lib --with-ssl
> --enable-so
>
> I make it erros on:
>
> /bin/ksh /src/httpd-2.0.47/srclib/apr/libtool --silent --mode=compile
> /usr/local/bin/gcc -g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include
> -I../../include/arch/unix -I../../include/arch/unix -c mktemp.c &&
> touch mktemp.lo
> make[4]: Leaving directory `/src/httpd-2.0.47/srclib/apr/file_io/unix'
> make[3]: Leaving directory `/src/httpd-2.0.47/srclib/apr/file_io/unix'
> Making all in network_io/unix
> make[3]: Entering directory
> `/src/httpd-2.0.47/srclib/apr/network_io/unix'
> make[4]: Entering directory
> `/src/httpd-2.0.47/srclib/apr/network_io/unix'
> /bin/ksh /src/httpd-2.0.47/srclib/apr/libtool --silent --mode=compile
> /usr/local/bin/gcc -g -O2 -pthreads -DHAVE_CONFIG_H -DSOLARIS2=8
> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I../../include
> -I../../include/arch/unix -I../../include/arch/unix -c sendrecv.c &&
> touch sendrecv.lo
> sendrecv.c: In function `apr_socket_sendfile':
> sendrecv.c:882: error: `sendfilevec_t' undeclared (first use in this
> function)


I doubt ksh has anything to do with it but something in your PATH might..

sendfilevec_t is defined in /usr/include/sys/sendfile.h on my system
Two things to check:

find ./httpd-2.0.47 -name "*.h" -exec grep "sendfile.h" {} \; -print
#include <sys/sendfile.h>
../httpd-2.0.47/srclib/apr/include/arch/unix/apr_arch_networkio.h

/* Define to 1 if you have the <sys/sendfile.h> header file. */
#define HAVE_LIBSENDFILE 1
../httpd-2.0.47/srclib/apr/include/arch/unix/apr_private.h

  #3 (permalink)  
Old 10-17-2003
polarbear
 
Posts: n/a
Default Re: Apache 2.0.47 will not compile libsrc sendrecv.c error

As a follow up to this message sun has a patch for senfile. But even
adding this patch didn't fix the problem. I am still looking for
ideas. :)

==========
Patch-ID# 111297-01
Keywords: sendfilev libsendfile sendfile
Synopsis: SunOS 5.8: /usr/lib/libsendfile.so.1 patch
Date: Jul/13/2001

Solaris Release: 8

SunOS Release: 5.8

Unbundled Product:

Unbundled Release:

Xref: This patch available for x86 as patch 111298

Topic: SunOS 5.8: /usr/lib/libsendfile.so.1 patch
NOTE: Refer to Special Install Instructions section for
IMPORTANT specific information on this patch.

Relevant Architectures: sparc

BugId's fixed with this patch: 4400361

Changes incorporated in this version:

Patches accumulated and obsoleted by this patch: 111219-01

Patches which conflict with this patch:

Patches required with this patch: 108528-09 or greater 108991-13 or
greater 109025-03 or greate
r 111295-01 or greater

Obsoleted by:

Files included with this patch:

/usr/include/sys/sendfile.h
/usr/lib/abi/abi_libsendfile.so.1
/usr/lib/abi/sparcv9/abi_libsendfile.so.1
/usr/lib/libsendfile.so
/usr/lib/libsendfile.so.1
/usr/lib/sparcv9/libsendfile.so
/usr/lib/sparcv9/libsendfile.so.1

Problem Description:

This patch revision was generated to accumulate and obsolete
the feature changes introduced in feature point patch
111219-01.

(from 111219-01)

4400361 Need to add support for sendfilev() system
  #4 (permalink)  
Old 10-20-2003
polarbear
 
Posts: n/a
Default Re: Apache 2.0.47 will not compile libsrc sendrecv.c error

I am adding another follow up for anyone who has this issue. It is
working now. I can not say I know why. I was looking at gterrry's
solution and I ran make without changing anything and it worked. Here
are some posibilities of what could have changed.

I installed gd, jpeg, png, freetype and m4.

These were added for other software reasons but may have helped. I am
also adding my shell config and set values thinking the answer is more
likley in there.
>set

addsuffix
argv ()
cwd /usr/local/apache2/logs
dirstack /usr/local/apache2/logs
echo_style bsd
edit
fignore .o
filec
gid 1
group other
history 500
home /export/home/kwebber
noclobber
owd /usr/local/apache2/bin
path (/bin /usr/bin /usr/local/bin /usr/sbin /usr/ccs/bin /usr/lib
/usr/share/lib)
savehist 400
shell /usr/local/bin/tcsh
shlvl 2
status 0
tcsh 6.09.00
term vt100
tty pts/2
uid 0
version tcsh 6.09.00 (Astron) 1999-08-16 (sparc-sun-solaris) options
8b,nls,dl,al,rh,color
#


~/.cshrc
# cat ~/.cshrc
set filec fignore = (.o)
set noclobber
set history=500
set savehist=400
setenv HOSTNAME `hostname`
setenv EDITOR vi
setenv CC /usr/local/bin/gcc
setenv LD_LIBRARY_PATH /usr/local/lib
umask 022
set path=(/bin /usr/bin /usr/local/bin /usr/sbin /usr/ccs/bin /usr/lib
/usr/share/lib)
alias cd 'cd \!*;pwd'
alias rm 'rm -i'



If you have this issue good luck.

-Ken
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0