delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/14/17:26:45

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 369C83858C83
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:from:date:message-id:subject:to;
bh=bZvvJGDGS14i+fVC03WJxcm/1aq3lGZxJzNpwgRV1eI=;
b=Hn+d8VJbuXAzr0pEFuv/Apt5Z9D44uRC2PfQhXKMTY0B1uBgTRZCMhd9JP8C/IuRMV
a04Ny9LC7qwb60O8XPGBvzfp0x9dV2kzwfwfYvMKjgLYr2aSfBgR47YShcHzdlBELwJ9
U/XbTZIBZzNIEpR6uLxlZoANMd75SbroBZc1V9fBcn/O03pzN/aN0kxNFN6m8q2kUV+n
TYD2B+LMRsZtLmi+prHn7FGBwCneheFu6uod5wgP1luKJbc5UEmUzxfZdkN4CFCEsfGb
jrRiWaJLqfATg0O5+LXz8UfXhdI8CbJEqZpmE+bI0jFGAbBO5GtPEowo65AeoNgQg6Yq
h8TQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
bh=bZvvJGDGS14i+fVC03WJxcm/1aq3lGZxJzNpwgRV1eI=;
b=7q2mRlCyVguoatr6c9tM8Y6FH/VUBKc4oHqIl/tc6gWHpjuDgDOYg5IGWARC1v0nnl
ziJND5y2q/3mXTzhCvlL9/sWKFSxUFPz9DLqarBviu83MFd6sSDq+Zm7JpnfSfVZKwA/
hjeIdU3LHpjPh2vyZ/GFxJ9dta90067YSNhn4XWVwW2Pa9aQZBHjOPf6zhPp1rUTs9Ci
MNJcptN7os+1C+L5t3N33fwNyy1Tya84veotQyHG1pL9v5rMYwYeHdF09Lzv4sVrNCWO
MxPgZaueyILl3jVO3K3sYtJIdbY69Dyv3o4N8FQJDyRzDsckvCIwJvxO+85TshXYNh5Y
02HA==
X-Gm-Message-State: AOAM530g+JBQGItEHtykBFNsRUCNbytKQ75InG8lMiyF2riHW3F3CKr/
soP8LXMcZLDchP+pzcMssfdWz8rmpwSB8IAteP0OCp9DeucgIQ==
X-Google-Smtp-Source: ABdhPJxhzxkDAND0SWT/nTT7LaDUT0d2f80QQ93zGqrGB+/fsdcGtzQ0CIyd6ouLfcudLZ9xF2OQ0QsMpL5AJfoZwh4=
X-Received: by 2002:a25:c043:: with SMTP id c64mr1228198ybf.598.1644877562965;
Mon, 14 Feb 2022 14:26:02 -0800 (PST)
MIME-Version: 1.0
From: Scott Wood <treii28 AT gmail DOT com>
Date: Mon, 14 Feb 2022 17:25:52 -0500
Message-ID: <CAMy1L1AYCu-M-ZyeoDtR_=k-jK7MmVyUuB3Y0xDyS9wNqQep6A@mail.gmail.com>
Subject: Trouble trying to compile apache2
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, HTML_MESSAGE, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE,
WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

I'm trying to compile a current version of apache2 httpd under the cygwin64
environment. There is an older version of apache2 compiled in cygwin but
it's orphaned and didn't include some of the ssl libs I needed.

When I try to compile it's failing when trying to compile the
mod_cache_disk module:

--------- modules/cache make results start ---------
make[3]: Entering directory '/usr/src/httpd-2.4.52/modules/cache'
Building shared: mod_file_cache.la mod_cache.la mod_cache_disk.la
mod_cache_socache.la mod_socache_shmcb.la mod_socache_dbm.la
mod_socache_memcache.la mod_socache_redis.la
make[4]: Entering directory '/usr/src/httpd-2.4.52/modules/cache'
/usr/share/apr/build-1/libtool --silent --mode=compile gcc             -I.
-I/usr/src/httpd-2.4.52/os/unix -I/usr/src/httpd-2.4.52/include
-I/usr/include/apr-1 -I/usr/include -I/usr/src/httpd-2.4.52/modules/aaa
-I/usr/src/httpd-2.4.52/modules/cache -I/usr/src/httpd-2.4.52/modules/core
-I/usr/src/httpd-2.4.52/modules/database
-I/usr/src/httpd-2.4.52/modules/filters
-I/usr/src/httpd-2.4.52/modules/ldap -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/loggers -I/usr/src/httpd-2.4.52/modules/lua
-I/usr/src/httpd-2.4.52/modules/proxy -I/usr/src/httpd-2.4.52/modules/http2
-I/usr/src/httpd-2.4.52/modules/session -I/usr/src/httpd-2.4.52/modules/ssl
-I/usr/src/httpd-2.4.52/modules/test -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/md
-I/usr/src/httpd-2.4.52/modules/arch/unix
-I/usr/src/httpd-2.4.52/modules/dav/main
-I/usr/src/httpd-2.4.52/modules/generators
-I/usr/src/httpd-2.4.52/modules/mappers -prefer-pic -c mod_file_cache.c &&
touch mod_file_cache.slo
/usr/share/apr/build-1/libtool --silent --mode=link gcc       -L/usr/lib
-no-undefined -shrext .so -Wl,/usr/src/httpd-2.4.52/libhttpd.dll.a
 -L/usr/lib -R/usr/lib -laprutil-1 -ldb-5.3 -lgdbm -lexpat -liconv
-L/usr/lib -R/usr/lib -lapr-1 -luuid -lcrypt -lpthread  -o mod_file_cache.la
-rpath /usr/local/apache2/modules -module -avoid-version  mod_file_cache.lo
/usr/share/apr/build-1/libtool --silent --mode=compile gcc             -I.
-I/usr/src/httpd-2.4.52/os/unix -I/usr/src/httpd-2.4.52/include
-I/usr/include/apr-1 -I/usr/include -I/usr/src/httpd-2.4.52/modules/aaa
-I/usr/src/httpd-2.4.52/modules/cache -I/usr/src/httpd-2.4.52/modules/core
-I/usr/src/httpd-2.4.52/modules/database
-I/usr/src/httpd-2.4.52/modules/filters
-I/usr/src/httpd-2.4.52/modules/ldap -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/loggers -I/usr/src/httpd-2.4.52/modules/lua
-I/usr/src/httpd-2.4.52/modules/proxy -I/usr/src/httpd-2.4.52/modules/http2
-I/usr/src/httpd-2.4.52/modules/session -I/usr/src/httpd-2.4.52/modules/ssl
-I/usr/src/httpd-2.4.52/modules/test -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/md
-I/usr/src/httpd-2.4.52/modules/arch/unix
-I/usr/src/httpd-2.4.52/modules/dav/main
-I/usr/src/httpd-2.4.52/modules/generators
-I/usr/src/httpd-2.4.52/modules/mappers -prefer-pic -c mod_cache.c && touch
mod_cache.slo
/usr/share/apr/build-1/libtool --silent --mode=compile gcc             -I.
-I/usr/src/httpd-2.4.52/os/unix -I/usr/src/httpd-2.4.52/include
-I/usr/include/apr-1 -I/usr/include -I/usr/src/httpd-2.4.52/modules/aaa
-I/usr/src/httpd-2.4.52/modules/cache -I/usr/src/httpd-2.4.52/modules/core
-I/usr/src/httpd-2.4.52/modules/database
-I/usr/src/httpd-2.4.52/modules/filters
-I/usr/src/httpd-2.4.52/modules/ldap -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/loggers -I/usr/src/httpd-2.4.52/modules/lua
-I/usr/src/httpd-2.4.52/modules/proxy -I/usr/src/httpd-2.4.52/modules/http2
-I/usr/src/httpd-2.4.52/modules/session -I/usr/src/httpd-2.4.52/modules/ssl
-I/usr/src/httpd-2.4.52/modules/test -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/md
-I/usr/src/httpd-2.4.52/modules/arch/unix
-I/usr/src/httpd-2.4.52/modules/dav/main
-I/usr/src/httpd-2.4.52/modules/generators
-I/usr/src/httpd-2.4.52/modules/mappers -prefer-pic -c cache_storage.c &&
touch cache_storage.slo
/usr/share/apr/build-1/libtool --silent --mode=compile gcc             -I.
-I/usr/src/httpd-2.4.52/os/unix -I/usr/src/httpd-2.4.52/include
-I/usr/include/apr-1 -I/usr/include -I/usr/src/httpd-2.4.52/modules/aaa
-I/usr/src/httpd-2.4.52/modules/cache -I/usr/src/httpd-2.4.52/modules/core
-I/usr/src/httpd-2.4.52/modules/database
-I/usr/src/httpd-2.4.52/modules/filters
-I/usr/src/httpd-2.4.52/modules/ldap -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/loggers -I/usr/src/httpd-2.4.52/modules/lua
-I/usr/src/httpd-2.4.52/modules/proxy -I/usr/src/httpd-2.4.52/modules/http2
-I/usr/src/httpd-2.4.52/modules/session -I/usr/src/httpd-2.4.52/modules/ssl
-I/usr/src/httpd-2.4.52/modules/test -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/md
-I/usr/src/httpd-2.4.52/modules/arch/unix
-I/usr/src/httpd-2.4.52/modules/dav/main
-I/usr/src/httpd-2.4.52/modules/generators
-I/usr/src/httpd-2.4.52/modules/mappers -prefer-pic -c cache_util.c &&
touch cache_util.slo
/usr/share/apr/build-1/libtool --silent --mode=link gcc       -L/usr/lib
-no-undefined -shrext .so -Wl,/usr/src/httpd-2.4.52/libhttpd.dll.a
 -L/usr/lib -R/usr/lib -laprutil-1 -ldb-5.3 -lgdbm -lexpat -liconv
-L/usr/lib -R/usr/lib -lapr-1 -luuid -lcrypt -lpthread  -o mod_cache.la
-rpath /usr/local/apache2/modules -module -avoid-version  mod_cache.lo
cache_storage.lo cache_util.lo
/usr/share/apr/build-1/libtool --silent --mode=compile gcc             -I.
-I/usr/src/httpd-2.4.52/os/unix -I/usr/src/httpd-2.4.52/include
-I/usr/include/apr-1 -I/usr/include -I/usr/src/httpd-2.4.52/modules/aaa
-I/usr/src/httpd-2.4.52/modules/cache -I/usr/src/httpd-2.4.52/modules/core
-I/usr/src/httpd-2.4.52/modules/database
-I/usr/src/httpd-2.4.52/modules/filters
-I/usr/src/httpd-2.4.52/modules/ldap -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/loggers -I/usr/src/httpd-2.4.52/modules/lua
-I/usr/src/httpd-2.4.52/modules/proxy -I/usr/src/httpd-2.4.52/modules/http2
-I/usr/src/httpd-2.4.52/modules/session -I/usr/src/httpd-2.4.52/modules/ssl
-I/usr/src/httpd-2.4.52/modules/test -I/usr/src/httpd-2.4.52/server
-I/usr/src/httpd-2.4.52/modules/md
-I/usr/src/httpd-2.4.52/modules/arch/unix
-I/usr/src/httpd-2.4.52/modules/dav/main
-I/usr/src/httpd-2.4.52/modules/generators
-I/usr/src/httpd-2.4.52/modules/mappers -prefer-pic -c mod_cache_disk.c &&
touch mod_cache_disk.slo
/usr/share/apr/build-1/libtool --silent --mode=link gcc       -L/usr/lib
-no-undefined -shrext .so -Wl,/usr/src/httpd-2.4.52/libhttpd.dll.a
 -L/usr/lib -R/usr/lib -laprutil-1 -ldb-5.3 -lgdbm -lexpat -liconv
-L/usr/lib -R/usr/lib -lapr-1 -luuid -lcrypt -lpthread  -o mod_cache_disk.la
-rpath /usr/local/apache2/modules -module -avoid-version  mod_cache_disk.lo
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld:
.libs/mod_cache_disk.o:mod_cache_disk:(.text+0x47): undefined reference to
`ap_cache_generate_name'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld:
.libs/mod_cache_disk.o:mod_cache_disk:(.text+0x12d): undefined reference to
`ap_cache_generate_name'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld:
.libs/mod_cache_disk.o:mod_cache_disk:(.text+0x3f32): undefined reference
to `ap_cache_cacheable_headers_out'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld:
.libs/mod_cache_disk.o:mod_cache_disk:(.text+0x3f59): undefined reference
to `ap_cache_cacheable_headers_in'
collect2: error: ld returned 1 exit status
make[4]: *** [/usr/src/httpd-2.4.52/modules/cache/modules.mk:6:
mod_cache_disk.la] Error 1
make[4]: Leaving directory '/usr/src/httpd-2.4.52/modules/cache'
make[3]: *** [/usr/src/httpd-2.4.52/build/rules.mk:117:
shared-build-recursive] Error 1
make[3]: Leaving directory '/usr/src/httpd-2.4.52/modules/cache'
make[2]: *** [/usr/src/httpd-2.4.52/build/rules.mk:117:
shared-build-recursive] Error 1
make[2]: Leaving directory '/usr/src/httpd-2.4.52/modules'
make[1]: *** [/usr/src/httpd-2.4.52/build/rules.mk:117:
shared-build-recursive] Error 1
make[1]: Leaving directory '/usr/src/httpd-2.4.52'
make: *** [/usr/src/httpd-2.4.52/build/rules.mk:75: all-recursive] Error 1
--------- modules/cache make results end ---------


Digging up the old version in the cygwin ports, I found the patch files,
but trying to manually apply a patch to the modules/cache/config.m4 didn't
seem to fix the problem. It appears the patch is saying that the symbols
I'm getting the errors upon exist in the 'main cache module' and thus it's
changing a value of 'cache_disk_objs' in the m4 file to include mod_cache
symbols when compiling/linking mod_disk_cache (but as you can see above,
there appears to be no mention of mod_cache.* anything in the gcc or linker
calls for mod_disk_cache)

patched lines from modules/cache/config.m4 is primarily adding cygwin to
the OS/2 rule:

------- relevant patched lines from modules/cache/config.m4 start -------
cache_disk_objs="mod_cache_disk.lo"
cache_socache_objs="mod_cache_socache.lo"

case "$host" in
  *os2*|*cygwin*)
    # OS/2 DLLs must resolve all symbols at build time
    # and we need some from main cache module
    cache_disk_objs="$cache_disk_objs mod_cache.la"
    cache_socache_objs="$cache_socache_objs mod_cache.la"
    ;;
esac

APACHE_MODULE(cache, dynamic file caching.  At least one storage management
module (e.g. mod_cache_disk) is also necessary., $cache_objs, , most)
APACHE_MODULE(cache_disk, disk caching module, $cache_disk_objs, , most, ,
cache)
APACHE_MODULE(cache_socache, shared object caching module,
$cache_socache_objs, , most)
------- relevant patched lines from modules/cache/config.m4 end -------

My C/make is rusty and I'm not sure the syntax to get it to properly pick
up the symbols.

Can anyone help me figure out how to get this thing to compile? The patch
included similar includes in other module directories so I probably have to
apply similar fixes elsewhere.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019