[ANNOUNCEMENT] Updated: {,mingw64-{x86_64,i686}-}libarchive-3.6.0-1

2022-02-14 Thread Achim Gratz


Libarchive has been updated to version 3.6.0-1, the following
(sub-)packages:

libarchive (source)
libarchive-devel
libarchive13
bsdcat
bsdcpio
bsdtar

are available in the Cygwin distribution.  The MinGW64 packages for
the cross-compilation toolchains have been updated as well:

mingw64-i686-libarchive
mingw64-x86_64-libarchive

This is a minor upstream bugfix release including security fixes.

DESCRIPTION
Multi-format archive and compression library
It is a portable, efficient C library that can read and write streaming
archives in a variety of formats. It also includes implementations
of the common tar, cpio, and zcat command-line tools that use the
libarchive library.

HOMEPAGE
https://www.libarchive.org/

-- 
  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there. It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

-- 
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


Trouble trying to compile apache2

2022-02-14 Thread Scott Wood
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 --s

Re: [:xdigit:] does not work with std::wstring in a Cygwin environment

2022-02-14 Thread Hans-Bernhard Bröker

Am 13.02.2022 um 19:25 schrieb Achim Gratz:

Gans, Markus writes:

This seems to be an internal Cygwin error:

https://www.reddit.com/r/cpp_questions/comments/sp52gq/xdigit_does_not_work_with_stdwstring_in_a_cygwin/





[…]

Question: Why does Cygwin not detect the letters a, b, c, d, e, and
f as hexadecimal digits in a wide string?


[...]


There is no OS specific configuration for Cygwin explicitly, instead
there is one for newlib that actually gets used.


This piqued my curiosity, so I had a look at how libstdc++ is built.  I
found that at least for one crucial source file, called
ctype_members.cc, cygwin builds do _not_ use the newlib edition, but
rather the "generic" one.  And that may very well be the problem here.

The superficial cause of the problem is that member function
_M_initialize_ctype() in
libstdc++-v3/config/locale/generic/ctype_member.cc fills most of its
array _M_wmask[] with zeroes instead of meaningful character class 
identifiers.


The slightly deeper reason is that the companion array _M_bit[] is also
suspiciously full of zeroes.

But the real problem, IMHO, is that the type ctype::mask is
just a plain char.  That overflows the looped shift used to fill
_M_bit[], which in turn leads to nonsense in _M_wmask[].

I didn't manage to find where this ctype::mask is defined, but 
the way it's used here cannot work if it's defined as plain char.  The

newlib edition of ctype_members.cc loops over just 8 bits instead of
16, which would allow this to work.

So we either have to pick up a different type definition of 
ctype::mask, or a different edition of ctype_members.cc --- I 
guess it should be the newlib one.


--
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


Re: Trouble trying to compile apache2

2022-02-14 Thread Russell VT
On Mon, Feb 14, 2022 at 2:26 PM Scott Wood  wrote:

> 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.
>

Well, I wouldn't call it "orphaned" ... it's just a few dot revisions
behind. Both 2.4.29 and 2.4.25 seem to be in the package list, and current
is 2.4.52 (2021/12/20)

In order to get TLS 1.3 / OpenSSL 1.1.1, you'll want 2.4.43+ (which I
assume is effectively what you're saying, here).

Strangely enough, OpenSSL 1.1.1m is already in the Cygwin setup.

I think the "easiest" is just to ask the package maintainer to update the
Cygwin repo. If you want to compile it yourself, you may want to check the
package repository to see what options they used, previously, to get a
successful build.

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

That said, the nightly builds of mod_cache_socache (under mod_cache) for
Apache also seem to have had issues, perhaps since Apache 2.4.34 (that may
have just been "Arch" though ... I didn't dig too hard).

You might need to verify you're getting the right module and/or the module
code, especially if you're downloading this as an outside module. Your
compilation dump seems to be complaining it can't find the symbols... which
means you may need mod_cache, just to start.

Ref: https://nightlies.apache.org/httpd/trunk/doxygen/group__MOD__CACHE.html

Hope that helps in some fashion...

Russell VT


Oh damn... I didn't see this prior to my reply, above (because of the long
stack trace posted, here).

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:
>
...


-- 
Russell M. Van Tassell 

-- 
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