logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: error during compiling apache on ubuntu
Author
robmar



Joined: 23 May 2017
Posts: 1
Location: Italy

PostPosted: Tue 23 May '17 19:46    Post subject: error during compiling apache on ubuntu Reply with quote

i try to compile Apache 2.2.32 on:

Code:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.2 LTS"
VERSION_ID="16.04"


this is my configure:

Code:
./configure --enable-rewrite --enable-vhost-alias --enable-so --enable-ssl --enable-deflate --enable-headers


(i get the error without any options too)

i get this error on "make":

Code:
network_io/unix/sockaddr.c: In function ‘find_addresses’:
network_io/unix/sockaddr.c:518:20: error: storage size of ‘hs’ isn’t known
     struct hostent hs;
                    ^
network_io/unix/sockaddr.c:551:14: warning: implicit declaration of function ‘gethostbyname_r’ [-Wimplicit-function-declaration]
         hp = gethostbyname_r(hostname, &hs, tmp, GETHOSTBYNAME_BUFLEN - 1,
              ^
network_io/unix/sockaddr.c:566:21: error: ‘h_errno’ undeclared (first use in this function)
             return (h_errno + APR_OS_START_SYSERR);
                     ^
network_io/unix/sockaddr.c:566:21: note: each undeclared identifier is reported only once for each function it appears in
network_io/unix/sockaddr.c:573:14: error: dereferencing pointer to incomplete type ‘struct hostent’
     while (hp->h_addr_list[curaddr]) {




in config.log there are these strage "unknown":

Code:
/usr/bin/uname -p = unknown
[...]
/bin/arch         = unknown


this is my all config.log
https://apaste.info/6Jbg

any idea?
many many thanks

i'm going crazy...
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Wed 28 Jun '17 17:45    Post subject: Reply with quote

You may run ./buildconf before ./configure ...

if you have no more fun you have use my script on compile Apache 2.4 https://github.com/JBlond/debian_build_apache24 (works on ubuntu too)
Back to top


Reply to topic   Topic: error during compiling apache on ubuntu View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads