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: Need Help: Problem building apr-iconv
Author
toebes



Joined: 14 Aug 2024
Posts: 2
Location: Cary, NC

PostPosted: Wed 14 Aug '24 14:04    Post subject: Need Help: Problem building apr-iconv Reply with quote

Hi,
I've been following the excellent guide at https://www.apachelounge.com/viewtopic.php?p=39755 for building using CMAKE. Everything starts out well, but when I get to api-iconv it fails with on including apr_pools.h that I am hoping someone else may have seen and know a fix for before I dig too deeply into the CMakeLists.txt files.

Thanks in advance!

Code:
Building apr-iconv-1.2.2

Microsoft (R) Program Maintenance Utility Version 14.41.34120.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        if not exist ".\x64\LibR/" mkdir ".\x64\LibR"
        cl.exe @C:\Users\John\AppData\Local\Temp\nm8F46.tmp
iconv.c
C:\Development\Apache24\src\apr-iconv-1.2.2\lib\iconv.h(36): fatal error C1083: Cannot open include file: 'apr_pools.h': No such file or directory
NMAKE : fatal error U1077: 'cl.exe @C:\Users\John\AppData\Local\Temp\nm8F46.tmp' : return code '0x2'
Stop.
nmake apriconv.mak for apr-iconv-1.2.2 failed with status 2


I've installed the sources from these locations. Notice that I used the .zip version of the file if it was available:

apr-1.7.4 - https://dlcdn.apache.org//apr/apr-1.7.4-win32-src.zip 
apr-iconv-1.2.2 - https://dlcdn.apache.org//apr/apr-util-1.6.3-win32-src.zip 
apr-util-1.6.3 - https://dlcdn.apache.org//apr/apr-iconv-1.2.2-win32-src.zip 
brotli-1.1.0 - https://github.com/google/brotli/archive/refs/tags/v1.1.0.zip
curl-8.8.0 - https://curl.se/download/curl-8.8.0.zip
curl-8.9.1 - https://curl.se/download/curl-8.9.1.zip
expat-2.6.2 - https://github.com/libexpat/libexpat/archive/refs/tags/R_2_6_2.zip
httpd-2.4.62 - https://dlcdn.apache.org/httpd/httpd-2.4.62.tar.gz
jansson-2.14 - https://github.com/akheron/jansson/archive/refs/tags/v2.14.zip
libxml2-2.13.2 - https://gitlab.gnome.org/GNOME/libxml2/-/archive/v2.13.3/libxml2-v2.13.3.zip
lua-5.4.7 - https://www.lua.org/ftp/lua-5.4.7.tar.gz
Lua CMAKELISTs.txt - https://https://pastebin.com/i5aSxa2G
mod_fcgid-2.3.9 - https://dlcdn.apache.org/httpd/mod_fcgid/mod_fcgid-2.3.9-crlf.zip
nghttp2-1.62.1 - https://github.com/nghttp2/nghttp2/archive/refs/tags/v1.62.1.zip
openssl-3.1.6 - https://github.com/openssl/openssl/archive/refs/tags/openssl-3.3.1.zip
pcre2-10.44 - https://github.com/PCRE2Project/pcre2/archive/refs/tags/pcre2-10.44.zip
zlib-1.3.1 - https://www.zlib.net/zlib131.zip


Last edited by toebes on Wed 14 Aug '24 18:21; edited 1 time in total
Back to top
toebes



Joined: 14 Aug 2024
Posts: 2
Location: Cary, NC

PostPosted: Wed 14 Aug '24 17:27    Post subject: It doesn't change when using the .tar.gz version Reply with quote

Just as a lark, I pulled down the .tar.gz version instead of the .zip version of the apr-* files to see if it made a difference, but alas still no joy compiling apr-iconv
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 348
Location: UK

PostPosted: Wed 14 Aug '24 21:21    Post subject: Reply with quote

Sorry, I'm out-of-office for the next week, so can't look into your apr-iconv build problem in detail.

From where I am (with only a phone), I'd guess there's a problem with the various 'apr' file links to the apr, apr-util and apr-iconv folders (which are version specific). The various apr component build scripts reference folders with no version details, hence the reason I chose to set up file links with mklink.
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 348
Location: UK

PostPosted: Thu 22 Aug '24 15:32    Post subject: Reply with quote

Ok, I've replicated your problem, which was as I suspected; namely there's a problem with your 'apr' symbolic links. The build process expects to find 'apr_pools.h' in ...\src\apr\include

In your source folder, if you list the various APR directories, you should see the corresponding directory symlinks (SYMLINKD) to the version specific entry, e.g.
    C:\Development\Apache24\src>dir /a:d apr*
    Volume in drive C is Windows
    Volume Serial Number is E045-70D5

    Directory of C:\Development\Apache24\src

    22/08/2024 14:10 <SYMLINKD> apr [apr-1.7.4]
    25/07/2024 20:46 <DIR> apr-1.7.4
    22/08/2024 14:10 <SYMLINKD> apr-iconv [apr-iconv-1.2.2]
    22/08/2024 14:10 <DIR> apr-iconv-1.2.2
    22/08/2024 14:10 <SYMLINKD> apr-util [apr-util-1.6.3]
    25/07/2024 20:46 <DIR> apr-util-1.6.3
    0 File(s) 0 bytes
    6 Dir(s) 69,222,727,680 bytes free
If these are missing, then you'll need to determine why they're not being created on your filesystem during the build process.

In the build batch file, near the beginning of the APR-ICONV section, if you remove the "redirect to nul" entries on the mklink commands, viz:
Code:
  pushd "%BUILD_BASE%\..\src"
  mklink /d apr %APR%
  mklink /d apr-iconv %APR-ICONV%
  mklink /d apr-util %APR-UTIL%
  popd

then when you run build script, you should see the links being created, e.g.
    Building apr-iconv-1.2.2
    symbolic link created for apr <<===>> apr-1.7.4
    symbolic link created for apr-iconv <<===>> apr-iconv-1.2.2
    symbolic link created for apr-util <<===>> apr-util-1.6.3
As noted above, if these links are missing, the APR-ICONV build process will fail.

Let us know how you get on.
Back to top


Reply to topic   Topic: Need Help: Problem building apr-iconv View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads