[Bug 64684] New: Apache make fails if (./configure --with-included-apr --with-apr-util)

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64684] New: Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

            Bug ID: 64684
           Summary: Apache make fails if (./configure --with-included-apr
                    --with-apr-util)
           Product: Apache httpd-2
           Version: 2.4.43
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

Mac OS X: 10.15.5

Download
    httpd-2.4.46.tar.bz2
    apr-1.7.0.tar.gz
    apr-util-1.6.1.tar.gz

Steps
    cd httpd-2.4.46
    mv apr-util-1.6.1 httpd-2.4.38/srclib/apr-util
    mv apr-1.6.5 httpd-2.4.38/srclib/apr
    ./configure --with-included-apr --with-apr-util
    make

...

In file included from ./include/apr_encode.h:24:
./include/apr.h:561:2: error: Can not determine the proper size for pid_t
#error Can not determine the proper size for pid_t
 ^
In file included from encoding/apr_encode.c:30:
In file included from ./include/apr_strings.h:52:
./include/apr_want.h:94:8: error: redefinition of 'iovec'
struct iovec
       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h:31:8:
note:
      previous definition is here
struct iovec {
       ^
2 errors generated.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

Christophe JAILLET <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Christophe JAILLET <[hidden email]> ---
Hi,

do you have the same issue if you avoid the "--with-apr-util" parameter?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #2 from Sumonto Ghosh <[hidden email]> ---
Yes same issue

./configure --with-included-apr
make

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

Sumonto Ghosh <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #3 from Sumonto Ghosh <[hidden email]> ---
Same issue with

./configure --with-included-apr
make

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #4 from Jim Jagielski <[hidden email]> ---
What version of APR are you using? You say download apr-1.7.0 but in the Steps
you refer to APR 1.6.5

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #5 from Sumonto Ghosh <[hidden email]> ---
Sorry for the confusion

wget https://archive.apache.org/dist/httpd/httpd-2.4.46.tar.bz2
wget https://downloads.apache.org//apr/apr-util-1.6.1.tar.gz
wget https://downloads.apache.org//apr/apr-1.7.0.tar.gz

These are the latest available on
https://apr.apache.org/

Thanks
Sumonto

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #6 from Christophe JAILLET <[hidden email]> ---
Hi, as spotted by Jim, the APR version you download seems to

(In reply to Sumonto Ghosh from comment #0)
> Steps
>     cd httpd-2.4.46
2.4.46

>     mv apr-util-1.6.1 httpd-2.4.38/srclib/apr-util
>     mv apr-1.6.5 httpd-2.4.38/srclib/apr
2.4.38???

Just a typo in your report or you are copying in another directory and not
building what you think you are?

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #7 from Sumonto Ghosh <[hidden email]> ---
wget https://downloads.apache.org//apr/apr-util-1.6.1.tar.gz
wget https://downloads.apache.org//apr/apr-1.7.0.tar.gz
wget https://archive.apache.org/dist/httpd/httpd-2.4.46.tar.bz2

tar -xf httpd-2.4.46.tar.bz2
tar -xf apr-util-1.6.1.tar.gz
tar -xf apr-1.7.0.tar.gz

mv apr-util-1.6.1 httpd-2.4.46/srclib/apr-util
mv apr-1.7.0 httpd-2.4.46/srclib/apr

cd httpd-2.4.46
./configure --with-included-apr --with-apr-util
--or-- ./configure --with-included-apr
make



Making all in srclib
Making all in apr
...
...
encoding/apr_encode.c && touch encoding/apr_encode.lo
In file included from encoding/apr_encode.c:28:
In file included from ./include/apr_encode.h:24:
./include/apr.h:561:2: error: Can not determine the proper size for pid_t
#error Can not determine the proper size for pid_t
 ^
In file included from encoding/apr_encode.c:30:
In file included from ./include/apr_strings.h:52:
./include/apr_want.h:94:8: error: redefinition of 'iovec'
struct iovec
       ^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h:31:8:
note:
      previous definition is here
struct iovec {

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #8 from Jim Jagielski <[hidden email]> ---
What version of the Xcode command line tools are you using? I cannot recreate
w/ the latest official (non-beta) release of Xcode 11.5 command-line tools.

Did you install the CLI via:

   xcode-select --install

Did you accept the Xcode license via:

   xcodebuild -license

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

Sumonto Ghosh <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
             Status|NEW                         |RESOLVED

--- Comment #9 from Sumonto Ghosh <[hidden email]> ---
Thanks Jim,
Beta XCode was the issue

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #10 from Jim Jagielski <[hidden email]> ---
Ahhh. Since the new beta Xcode is designed for Big Sur, it has that macOS10 or
macOS11 weirdness, depending on a envvar, iirc. Sounds like it was compiling
for macOS11 and, as such, was not setting the Darwin10 compilation variable and
lots of stuff was getting mangled.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64684] Apache make fails if (./configure --with-included-apr --with-apr-util)

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64684

--- Comment #11 from Sumonto Ghosh <[hidden email]> ---
You are correct Jim, good work :)

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]