# Erlang/OTP 28.0-rc4 Released

**URL:** <https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731>\
**Category:** Erlang News\
**Tags:** erlang-release\
**Created:** [May 5, 2025, 6:58pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731 "2025-05-05T18:58:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![proxyles](https://erlangforums.com/letter_avatar_proxy/v4/letter/p/9de053/32.png) [@proxyles](https://erlangforums.com/u/proxyles)\
**Post date:** [May 5, 2025, 6:58pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/1 "2025-05-05T18:58:37Z")

</div>

## OTP 28.0-rc4

Erlang/OTP 28.0-rc4 is the fourth release candidate before the OTP 28.0 release.

The intention with this release is to get feedback from our users.  
All feedback is welcome, even if it is only to say that it works for you, and that it installs as it should.  
We encourage users to try it out and give us feedback either by creating an issue at  
[https://github.com/erlang/otp/issues](https://github.com/erlang/otp/issues) or by posting to [Erlang Forums](https://erlangforums.com/).

All artifacts for the release can be downloaded from the [Erlang/OTP Github](https://github.com/erlang/otp/releases/tag/OTP-28.0-rc4) release  
and you can view the new documentation at [https://erlang.org/documentation/doc-16-rc4/doc](https://erlang.org/documentation/doc-16-rc4/doc/).  
You can also install the latest release using [kerl](https://github.com/kerl/kerl) like this:

```erlang
kerl build 28.0-rc4 28.0-rc4

```

Starting with this release, a source [Software Bill of Materials (SBOM)](https://www.cisa.gov/sites/default/files/2023-04/sbom-types-document-508c.pdf)  
will describe the release on the [Github Releases](https://github.com/erlang/otp/releases) page. We welcome feedback on the SBOM.

Erlang/OTP 28 is a new major release with new features, improvements  
as well as a few incompatibilities. Some of the new features are highlighted below.

Many thanks to all contributors!

# Highlights for RC4

- The ancient ASN.1 modules used in `public_key` has been replaced with more  
modern versions, but we have strived to keep the documented Erlang API for the  
`public_key` application compatible.

# Highlights for RC2

- Functionality making it possible for processes to enable reception of  
[priority messages](https://erlang.org/doc/system/ref_man_processes.html#priority-messages) has been introduced in accordance with [EEP 76](https://www.erlang.org/eeps/eep-0076).

# Highlights for RC1

## New language features

- Comprehensions have been extended with “zip generators” allowing  
multiple generators to be run in parallel. For example,  
`[A+B || A <- [1,2,3] && B <- [4,5,6]]` will produce `[5,7,9]`.

- Generators in comprehensions can now be strict, meaning that if  
the generator pattern does not match, an exception will be raised  
instead of silently ignore the value that didn’t match.

- It is now possible to use any base for floating point numbers as per  
[EEP 75: Based Floating Point Literals](https://www.erlang.org/eeps/eep-0075).

## Compiler and JIT improvements

- For certain types of errors, the compiler can now suggest  
corrections. For example, when attempting to use variable `A` that  
is not defined but `A0` is, the compiler could emit the following  
message: `variable 'A' is unbound, did you mean 'A0'?`

- The size of an atom in the Erlang source code was limited to 255  
bytes in previous releases, meaning that an atom containing only  
emojis could contain only 63 emojis. While atoms are still only  
allowed to contain 255 characters, the number of bytes is no longer  
limited.

- The `warn_deprecated_catch` option enables warnings for use of  
old-style catch expressions on the form `catch Expr` instead of the  
modern `try` … `catch` … `end`.

- Provided that the map argument for a `maps:put/3` call is known to  
the compiler to be a map, the compiler will replace such calls with  
the corresponding update using the map syntax.

- Some BIFs with side-effects (such as `binary_to_atom/1`) are  
optimized in `try` … `catch` in the same way as guard BIFs in  
order to gain performance.

- The compiler’s alias analysis pass is now both faster and less  
conservative, allowing optimizations of records and binary  
construction to be applied in more cases.

## ERTS

- The `trace:system/3` function has been added. It has a similar  
interface as `erlang:system_monitor/2` but it also supports trace  
sessions.

- `os:set_signal/2` now supports setting handlers for the `SIGWINCH`,  
`SIGCONT`, and `SIGINFO` signals.

- The two new BIFs `erlang:processes_iterator/0` and  
`erlang:process_next/1` make it possible to iterate over the  
process table in a way that scales better than `erlang:processes/0`.

## Shell and terminal

- The erl -noshell mode has been updated to have two sub modes called  
`raw` and `cooked`, where `cooked` is the old default behaviour and  
`raw` can be used to bypass the line-editing support of the native  
terminal. Using `raw` mode it is possible to read keystrokes as they  
occur without the user having to press Enter. Also, the `raw` mode  
does not echo the typed characters to stdout.

- The shell now prints a help message explaining how to interrupt a  
running command when stuck executing a command for longer than 5  
seconds.

## STDLIB

- The `join(Binaries, Separator)` function that joins a list of  
binaries has been added to the [`binary`](https://erlang.org/documentation/doc-16-rc2/lib/stdlib-7.0/doc/html/binary.html) module.

- By default, sets created by module [`sets`](https://erlang.org/documentation/doc-16-rc2/lib/stdlib-7.0/doc/html/sets.html)  
will now be represented as maps.

- Module [`re`](https://erlang.org/documentation/doc-16-rc2/lib/stdlib-7.0/doc/html/re.html) has  
been updated to use the newer PCRE2 library instead of the PCRE library.

- There is a new `zstd` module that does [Zstandard](https://facebook.github.io/zstd/) compression.

## Dialyzer

- [EEP 69: Nominal Types](https://www.erlang.org/eeps/eep-0069) has been implemented.

## SSL

- The data handling for tls-v1.3 has been optimized.

## Emacs mode (in the Tools application)

- The `indent-region` in Emacs command will now handle multiline  
strings better.

For more details about new features and potential incompatibilities see the [README](https://erlang.org/download/otp_src_28.0-rc3.readme).

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [May 5, 2025, 7:24pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/2 "2025-05-05T19:24:25Z")

</div>

Building after configuring with the `--without-wx` option resulted in an error:

```erlang
ERROR: build failed.
 ERLC	../ebin/dbg_wx_filedialog_win.beam
compile: warnings being treated as errors
dbg_wx_filedialog_win.erl:25:2: behaviour wx_object undefined
% 25| -behaviour(wx_object).
% | ^

make[3]: *** [../ebin/dbg_wx_filedialog_win.beam] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

```

This error didn’t occur with the previous 28.0 release candidates.

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 6, 2025, 8:20am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/4 "2025-05-06T08:20:39Z")

</div>

The public\_key re-write is rather substantial so please test this RC with applications that uses ssl, ssh or public\_key.

---

<div class="post-metadata">

**Author:** ![garazdawi](https://erlangforums.com/user_avatar/erlangforums.com/garazdawi/32/175_2.png) [@garazdawi](https://erlangforums.com/u/garazdawi)\
**Post date:** [May 6, 2025, 8:14pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/5 "2025-05-06T20:14:21Z")

</div>

> [@vinoski](#):
>
> This error didn’t occur with the previous 28.0 release candidates.

Are you sure? I just tested 28.0-rc1 and I got the same error. Disabling wx like that without also disabling all applications that use wx has as far as I know never worked. What does work is if the configure in wx detects that wx is not available, then all other applications can be built.

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [May 6, 2025, 8:39pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/6 "2025-05-06T20:39:27Z")

</div>

I know for sure I used the same kerl setup for rc3 and had no trouble. For rc1 and rc2, I built those on a different computer, so I’m not 100% sure, but I copied the kerl config I used for rc3 from that computer, so reasonably sure. This is all on macOS, so I assume there’s no wx available anyway, which is why I’ve always disabled it at config time.

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 6, 2025, 10:03pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/7 "2025-05-06T22:03:30Z")

</div>

This sounds strange, I can’t imagine how that have ever worked, if you disable  
wx the beam’s will not be built (guessing) and then the compiler can’t find the behavior nor the include lib stuff.

Is/was pre-built beams included in some releases?  
Or does kerl do some magic, with this?

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [May 6, 2025, 11:21pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/8 "2025-05-06T23:21:08Z")

</div>

It 's not `kerl`-specific. I habitually save lots of my bash history, so I have logs of `configure` commands for OTP source tarballs dating back several years, and they’re always like this:

```erlang
./configure --without-odbc --without-wx --without-hipe

```

My logs show that on 10 March 2022, for example, I successfully ran the above command to build from an OTP 24.3 tarball. I just ran it again to be sure and it was fine.

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 7, 2025, 7:09am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/9 "2025-05-07T07:09:31Z")

</div>

Hmm, I’m confused.

The src tar balls contains prebuilt beams so that explains why it works.  
Which also means you will never build the debugger for instance or any erlang files  
since they are already built.

But testing with RC4 src tar ball without kerl, `./configure --without-wx && make` i.e. works fine for me.

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [May 7, 2025, 2:16pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/10 "2025-05-07T14:16:24Z")

</div>

Welp, not really sure what to tell you, as `--without-wx` definitely worked for rc3 – all the logs prove it. But I’ve removed the option for rc4 and have built it successfully.

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 7, 2025, 2:34pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/11 "2025-05-07T14:34:05Z")

</div>

Yes, I tested a pair of 27 and RC releases and all worked as you say, even RC4.

I’m just saying it (with --without-wx) works because the beam files are pre-built and  
can be found by the compiler.

But even RC4 works, don’t understand why it doesn’t work for you.

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 7, 2025, 2:36pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/12 "2025-05-07T14:36:23Z")

</div>

I.e. it should work when using src tar balls since they contain pre-built beams.  
If you build from a clean git repo, only --without-wx should not work (I think).

---

<div class="post-metadata">

**Author:** ![rickard](https://erlangforums.com/user_avatar/erlangforums.com/rickard/32/184_2.png) [@rickard](https://erlangforums.com/u/rickard)\
**Post date:** [May 7, 2025, 3:23pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/13 "2025-05-07T15:23:52Z")

</div>

Guessing a bit here…

- `kerl` automatically downloads the pre-built source tar-ball artifact from github if it is available; otherwise, it downloads the raw source tar-ball artifact
- @vinoski built before the pre-built source tar-ball artifact had been produced, which caused the build to use the raw source tar-ball, which in turn failed due to missing wx beam files
- The pre-built source tar-ball artifact is now available, so now it builds?

---

<div class="post-metadata">

**Author:** ![vinoski](https://erlangforums.com/user_avatar/erlangforums.com/vinoski/32/265_2.png) [@vinoski](https://erlangforums.com/u/vinoski)\
**Post date:** [May 7, 2025, 5:39pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/14 "2025-05-07T17:39:46Z")

</div>

@rickard I think your explanation is spot on – I deleted the rc4 tarball kerl originally downloaded and then did a new build, which forced a new download, and now using `--without-wx` with rc4 works.

But more importantly, this thread is about user feedback, and I’ve verified Yaws builds and passes all tests with rc4.

---

<div class="post-metadata">

**Author:** ![karlsson](https://erlangforums.com/user_avatar/erlangforums.com/karlsson/32/1681_2.png) [@karlsson](https://erlangforums.com/u/karlsson)\
**Post date:** [May 9, 2025, 12:46pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/15 "2025-05-09T12:46:04Z")

</div>

I get segmentation fault when trying to start observer on the rc4 candidate (also on rc3) after an asdf install. Observer works fine on OTP-27 asdf installs. Anyone else experiencing the same problem?  
Seems asdf install builds from erlang source:

```erlang
> asdf install erlang 28.0-rc4
ERROR: 'asdf_28.0-rc4' is not a kerl-managed Erlang/OTP installation.
ERROR: no build named 'asdf_28.0-rc4'!
Downloading (from GitHub) Erlang/OTP 28.0-rc4 to /home/mikael/.asdf/downloads/erlang/28.0-rc4...
Extracting source code for normal build...
Building (normal) Erlang/OTP 28.0-rc4 (asdf_28.0-rc4); please wait...
Initializing (build) log file at /home/mikael/.asdf/plugins/erlang/kerl-home/builds/asdf_28.0-rc4/otp_build_28.0-rc4.log.
APPLICATIONS DISABLED (See: /home/mikael/.asdf/plugins/erlang/kerl-home/builds/asdf_28.0-rc4/otp_build_28.0-rc4.log)
 * jinterface : No Java compiler found

Erlang/OTP 28.0-rc4 (asdf_28.0-rc4) has been successfully built.
Cleaning up compilation products for 'asdf_28.0-rc4' under:
  - /home/mikael/.asdf/plugins/erlang/kerl-home/builds...
  - /home/mikael/.asdf/downloads/erlang/28.0-rc4...
... done.

```

I cannot see any memory dump altough it claims to produce one:

```erlang
> erl
Erlang/OTP 28 [RELEASE CANDIDATE 4] [erts-16.0] [source] [64-bit] [smp:8:4] [ds:8:4:10] [async-threads:1] [jit:ns]

Eshell V16.0 (press Ctrl+G to abort, type help(). for help)
1> observer:start().
Segmenteringsfel (minnesutskrift skapad)

```

Yes, and my “infrastructure”:

:~$ head -4 /etc/os-release  
PRETTY\_NAME=“Ubuntu 24.04.2 LTS”  
NAME=“Ubuntu”  
VERSION\_ID=“24.04”  
VERSION=“24.04.2 LTS (Noble Numbat)”

:~$ wx-config --libs all --version  
3.2.4  
-L/usr/lib/x86\_64-linux-gnu -pthread -lwx\_gtk3u\_xrc-3.2 -lwx\_gtk3u\_webview-3.2 -lwx\_gtk3u\_stc-3.2 -lwx\_gtk3u\_richtext-3.2 -lwx\_gtk3u\_ribbon-3.2 -lwx\_gtk3u\_propgrid-3.2 -lwx\_gtk3u\_aui-3.2 -lwx\_gtk3u\_gl-3.2 -lwx\_gtk3u\_html-3.2 -lwx\_gtk3u\_qa-3.2 -lwx\_gtk3u\_core-3.2 -lwx\_baseu\_xml-3.2 -lwx\_baseu\_net-3.2 -lwx\_baseu-3.2

---

<div class="post-metadata">

**Author:** ![garazdawi](https://erlangforums.com/user_avatar/erlangforums.com/garazdawi/32/175_2.png) [@garazdawi](https://erlangforums.com/u/garazdawi)\
**Post date:** [May 12, 2025, 7:48am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/16 "2025-05-12T07:48:03Z")

</div>

> [@karlsson](#):
>
> I cannot see any memory dump altough it claims to produce one:

I think ubuntu places them under `/var/lib/apport/coredump` by default, maybe it is there? If it is there, can you please post a stack backtrace of the crashing thread?

---

<div class="post-metadata">

**Author:** ![dgud](https://erlangforums.com/user_avatar/erlangforums.com/dgud/32/191_2.png) [@dgud](https://erlangforums.com/u/dgud)\
**Post date:** [May 12, 2025, 8:12am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/17 "2025-05-12T08:12:19Z")

</div>

I think we have managed to replicate it and we know what it is.

---

<div class="post-metadata">

**Author:** ![kura](https://erlangforums.com/user_avatar/erlangforums.com/kura/32/304_2.png) [@kura](https://erlangforums.com/u/kura)\
**Post date:** [May 14, 2025, 7:18pm UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/18 "2025-05-14T19:18:45Z")

</div>

[GitHub - potatosalad/erlang-jose: JSON Object Signing and Encryption (JOSE) for Erlang and Elixir](https://github.com/potatosalad/erlang-jose/) doesn’t compile with rc4 (no issues with rc3).  
Many errors about undefined macros/records and unbound variables (output of `make` below)

> ****
>
> $ make DEPEND jose.d Error! Failed to eval:
> 
> Runtime terminating during boot ({{badmatch,{error,{1,erl\_parse,[“syntax error before: “,”‘.’”]}}},[{init,start\_it,1,},{init,start\_em,1,},{init,do\_boot,3,}]})
> 
> Crash dump is being written to: erl\_crash.dump…done  
> ERLC jose\_base64.erl jose\_base64url.erl jose.erl jose\_app.erl jose\_block\_encryptor.erl jose\_crypto\_compat.erl jose\_public\_key.erl jose\_server.erl jose\_sup.erl jose\_json.erl jose\_json\_jason.erl jose\_json\_jiffy.erl jose\_json\_jsone.erl jose\_json\_jsx.erl jose\_json\_ojson.erl jose\_json\_otp.erl jose\_json\_poison.erl jose\_json\_poison\_compat\_encoder.erl jose\_json\_poison\_lexical\_encoder.erl jose\_json\_thoas.erl jose\_json\_unsupported.erl jose\_chacha20\_poly1305.erl jose\_chacha20\_poly1305\_crypto.erl jose\_chacha20\_poly1305\_libsodium.erl jose\_chacha20\_poly1305\_unsupported.erl jose\_curve25519.erl jose\_curve25519\_crypto.erl jose\_curve25519\_fallback.erl jose\_curve25519\_libdecaf.erl jose\_curve25519\_libsodium.erl jose\_curve25519\_unsupported.erl jose\_curve448.erl jose\_curve448\_crypto.erl jose\_curve448\_fallback.erl jose\_curve448\_libdecaf.erl jose\_curve448\_unsupported.erl jose\_jwa.erl jose\_jwa\_aes.erl jose\_jwa\_aes\_kw.erl jose\_jwa\_base64url.erl jose\_jwa\_bench.erl jose\_jwa\_chacha20.erl jose\_jwa\_chacha20\_poly1305.erl jose\_jwa\_concat\_kdf.erl jose\_jwa\_curve25519.erl jose\_jwa\_curve448.erl jose\_jwa\_ed25519.erl jose\_jwa\_ed448.erl jose\_jwa\_hchacha20.erl jose\_jwa\_math.erl jose\_jwa\_pkcs1.erl jose\_jwa\_pkcs5.erl jose\_jwa\_pkcs7.erl jose\_jwa\_poly1305.erl jose\_jwa\_sha3.erl jose\_jwa\_unsupported.erl jose\_jwa\_x25519.erl jose\_jwa\_x448.erl jose\_jwa\_xchacha20.erl jose\_jwa\_xchacha20\_poly1305.erl jose\_sha3.erl jose\_sha3\_keccakf1600\_driver.erl jose\_sha3\_keccakf1600\_nif.erl jose\_sha3\_libdecaf.erl jose\_sha3\_unsupported.erl jose\_xchacha20\_poly1305.erl jose\_xchacha20\_poly1305\_crypto.erl jose\_xchacha20\_poly1305\_libsodium.erl jose\_xchacha20\_poly1305\_unsupported.erl jose\_jwe.erl jose\_jwe\_alg.erl jose\_jwe\_alg\_aes\_kw.erl jose\_jwe\_alg\_c20p\_kw.erl jose\_jwe\_alg\_dir.erl jose\_jwe\_alg\_ecdh\_1pu.erl jose\_jwe\_alg\_ecdh\_es.erl jose\_jwe\_alg\_ecdh\_ss.erl jose\_jwe\_alg\_pbes2.erl jose\_jwe\_alg\_rsa.erl jose\_jwe\_alg\_xc20p\_kw.erl jose\_jwe\_enc.erl jose\_jwe\_enc\_aes.erl jose\_jwe\_enc\_c20p.erl jose\_jwe\_enc\_xc20p.erl jose\_jwe\_zip.erl jose\_jwk.erl jose\_jwk\_der.erl jose\_jwk\_kty.erl jose\_jwk\_kty\_ec.erl jose\_jwk\_kty\_oct.erl jose\_jwk\_kty\_okp\_ed25519.erl jose\_jwk\_kty\_okp\_ed25519ph.erl jose\_jwk\_kty\_okp\_ed448.erl jose\_jwk\_kty\_okp\_ed448ph.erl jose\_jwk\_kty\_okp\_x25519.erl jose\_jwk\_kty\_okp\_x448.erl jose\_jwk\_kty\_rsa.erl jose\_jwk\_oct.erl jose\_jwk\_openssh\_key.erl jose\_jwk\_pem.erl jose\_jwk\_set.erl jose\_jwk\_use\_enc.erl jose\_jwk\_use\_sig.erl jose\_jws.erl jose\_jws\_alg.erl jose\_jws\_alg\_ecdsa.erl jose\_jws\_alg\_eddsa.erl jose\_jws\_alg\_hmac.erl jose\_jws\_alg\_none.erl jose\_jws\_alg\_poly1305.erl jose\_jws\_alg\_rsa\_pkcs1\_v1\_5.erl jose\_jws\_alg\_rsa\_pss.erl jose\_jwt.erl  
> Old inliner: threshold=0 functions=[{encode\_pair,1},{encode\_char,1}]  
> Old inliner: threshold=0 functions=[{encode\_pair,1},{encode\_char,1}]  
> src/jose\_public\_key.erl:77:69: undefined macro ‘id-PBES2’  
> % 77| {true, #‘EncryptedPrivateKeyInfo\_encryptionAlgorithm’{algorithm = ?‘id-PBES2’, parameters = encode\_handle\_open\_type\_wrapper(Der)}};  
> % | ^
> 
> src/jose\_public\_key.erl:95:21: undefined macro ‘id-PBES2’  
> % 95| decrypt\_parameters(?‘id-PBES2’, DekParams) →   
> % | ^
> 
> src/jose\_public\_key.erl:724:58: undefined macro ‘id-hmacWithSHA224’  
> % 724| pseudo\_random\_function(#‘PBKDF2-params\_prf’{algorithm = ?‘id-hmacWithSHA224’= Algo}) →   
> % | ^
> 
> src/jose\_public\_key.erl:740:23: undefined macro ‘id-hmacWithSHA224’  
> % 740| pseudo\_output\_length(?‘id-hmacWithSHA224’) →   
> % | ^
> 
> src/jose\_public\_key.erl:750:50: undefined macro ‘rc2CBC’  
> % 750| iv(#‘PBES2-params\_encryptionScheme’{algorithm = ?‘rc2CBC’, parameters = ASN1IV}) →   
> % | ^
> 
> src/jose\_public\_key.erl:66:9: function encrypt\_parameters/2 undefined, did you mean encrypt\_parameters/1?  
> % 66| case encrypt\_parameters(Cipher, Params) of  
> % | ^
> 
> src/jose\_public\_key.erl:81:26: record ‘EncryptedPrivateKeyInfo\_encryptionAlgorithm’ undefined, did you mean PrivateKeyInfo\_privateKeyAlgorithm?  
> % 81| decrypt\_parameters(Arg = #‘EncryptedPrivateKeyInfo\_encryptionAlgorithm’{algorithm = Oid, parameters = Param}) →   
> % | ^
> 
> src/jose\_public\_key.erl:86:9: function decrypt\_parameters/2 undefined, did you mean decrypt\_parameters/1?  
> % 86| case decrypt\_parameters(Oid, decode\_handle\_open\_type\_wrapper(Param)) of  
> % | ^
> 
> src/jose\_public\_key.erl:86:28: variable ‘Oid’ is unbound  
> % 86| case decrypt\_parameters(Oid, decode\_handle\_open\_type\_wrapper(Param)) of  
> % | ^
> 
> src/jose\_public\_key.erl:86:65: variable ‘Param’ is unbound  
> % 86| case decrypt\_parameters(Oid, decode\_handle\_open\_type\_wrapper(Param)) of  
> % | ^
> 
> src/jose\_public\_key.erl:107:8: record ‘PBES2-params\_encryptionScheme’ undefined  
> % 107| cipher(#‘PBES2-params\_encryptionScheme’{algorithm = ?‘id-aes128-CBC’}) →   
> % | ^
> 
> src/jose\_public\_key.erl:109:8: record ‘PBES2-params\_encryptionScheme’ undefined  
> % 109| cipher(#‘PBES2-params\_encryptionScheme’{algorithm = ?‘id-aes192-CBC’}) →   
> % | ^
> 
> src/jose\_public\_key.erl:111:8: record ‘PBES2-params\_encryptionScheme’ undefined  
> % 111| cipher(#‘PBES2-params\_encryptionScheme’{algorithm = ?‘id-aes256-CBC’}) →   
> % | ^
> 
> src/jose\_public\_key.erl:380:2: record ‘EncryptedPrivateKeyInfo’ undefined, did you mean PrivateKeyInfo?  
> % 380| #‘EncryptedPrivateKeyInfo’{encryptionAlgorithm = AlgorithmInfo, encryptedData = Data} = der\_decode(‘EncryptedPrivateKeyInfo’, Der),  
> % | ^
> 
> src/jose\_public\_key.erl:381:37: variable ‘AlgorithmInfo’ is unbound  
> % 381| DecryptParams = decrypt\_parameters(AlgorithmInfo),  
> % | ^
> 
> src/jose\_public\_key.erl:382:28: variable ‘Data’ is unbound, did you mean ‘DecryptParams’?  
> % 382| {true, {‘PrivateKeyInfo’, Data, DecryptParams}}.  
> % | ^
> 
> src/jose\_public\_key.erl:503:57: record ‘PBES2-params’ undefined, did you mean RSASSA-PSS-params?  
> % 503| pem\_entry\_dec({Asn1Type, EncryptedDer, CipherInfo = {\_, #‘PBES2-params’{}}}, Password) when is\_atom(Asn1Type) →   
> % | ^
> 
> src/jose\_public\_key.erl:677:52: record ‘PBES2-params’ undefined, did you mean RSASSA-PSS-params?  
> % 677| password\_to\_key\_and\_iv(Password, \_Cipher, Params = #‘PBES2-params’{}) →   
> % | ^
> 
> src/jose\_public\_key.erl:681:44: record ‘PBEParameter’ undefined, did you mean DHParameter?  
> % 681| password\_to\_key\_and\_iv(Password, \_Cipher, {#‘PBEParameter’{salt = Salt, iterationCount = Count}, Hash}) →   
> % | ^
> 
> src/jose\_public\_key.erl:682:73: variable ‘Salt’ is unbound  
> % 682| \<\<Key:8/binary, IV:8/binary, \_/binary\>\> = pubkey\_pbe:pbdkdf1(Password, Salt, Count, Hash),  
> % | ^
> 
> src/jose\_public\_key.erl:682:79: variable ‘Count’ is unbound  
> % 682| \<\<Key:8/binary, IV:8/binary, \_/binary\>\> = pubkey\_pbe:pbdkdf1(Password, Salt, Count, Hash),  
> % | ^
> 
> src/jose\_public\_key.erl:701:23: record ‘PBES2-params’ undefined, did you mean RSASSA-PSS-params?  
> % 701| key\_derivation\_params(#‘PBES2-params’{keyDerivationFunc = KeyDerivationFunc, encryptionScheme = EncScheme}) →   
> % | ^
> 
> src/jose\_public\_key.erl:702:2: record ‘PBES2-params\_keyDerivationFunc’ undefined, did you mean ECParameters?  
> % 702| #‘PBES2-params\_keyDerivationFunc’{  
> % | ^
> 
> src/jose\_public\_key.erl:710:6: variable ‘KeyDerivationFunc’ is unbound  
> % 710| } = KeyDerivationFunc,  
> % | ^
> 
> src/jose\_public\_key.erl:711:2: record ‘PBES2-params\_encryptionScheme’ undefined  
> % 711| #‘PBES2-params\_encryptionScheme’{algorithm = Algo} = EncScheme,  
> % | ^
> 
> src/jose\_public\_key.erl:711:55: variable ‘EncScheme’ is unbound  
> % 711| #‘PBES2-params\_encryptionScheme’{algorithm = Algo} = EncScheme,  
> % | ^
> 
> src/jose\_public\_key.erl:712:55: function pseudo\_random\_function/1 undefined  
> % 712| {PseudoRandomFunction, PseudoHash, PseudoOtputLen} = pseudo\_random\_function(Prf),  
> % | ^
> 
> src/jose\_public\_key.erl:712:78: variable ‘Prf’ is unbound  
> % 712| {PseudoRandomFunction, PseudoHash, PseudoOtputLen} = pseudo\_random\_function(Prf),  
> % | ^
> 
> src/jose\_public\_key.erl:713:30: variable ‘Algo’ is unbound  
> % 713| KeyLen = derived\_key\_length(Algo, Length),  
> % | ^
> 
> src/jose\_public\_key.erl:713:36: variable ‘Length’ is unbound  
> % 713| KeyLen = derived\_key\_length(Algo, Length),  
> % | ^
> 
> src/jose\_public\_key.erl:714:3: variable ‘OctetSalt’ is unbound  
> % 714| {OctetSalt, Count, KeyLen,  
> % | ^
> 
> src/jose\_public\_key.erl:714:14: variable ‘Count’ is unbound  
> % 714| {OctetSalt, Count, KeyLen,  
> % | ^
> 
> src/jose\_public\_key.erl:715:52: function iv/1 undefined, did you mean key\_derivation\_params/1?  
> % 715| PseudoRandomFunction, PseudoHash, PseudoOtputLen, iv(EncScheme)}.  
> % | ^
> 
> src/jose\_public\_key.erl:107:1: function cipher/1 is unused  
> % 107| cipher(#‘PBES2-params\_encryptionScheme’{algorithm = ?‘id-aes128-CBC’}) →   
> % | ^
> 
> src/jose\_public\_key.erl:734:1: function hmac/4 is unused  
> % 734| hmac(SubType, Key, Data, MacLength) →   
> % | ^
> 
> gmake[1]: \*\*\* [erlang.mk:1736: ebin/jose.app] Error 1  
> gmake: \*\*\* [erlang.mk:1487: app] Error 2

---

<div class="post-metadata">

**Author:** ![ingela](https://erlangforums.com/letter_avatar_proxy/v4/letter/i/53a042/32.png) [@ingela](https://erlangforums.com/u/ingela)\
**Post date:** [May 15, 2025, 7:19am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/19 "2025-05-15T07:19:26Z")

</div>

I think some password based encryption definitions sort of got lost in translation, please try:  
[public\_key: Update included macros in public include file by IngelaAndin · Pull Request #9839 · erlang/otp](https://github.com/erlang/otp/pull/9839)

---

<div class="post-metadata">

**Author:** ![kura](https://erlangforums.com/user_avatar/erlangforums.com/kura/32/304_2.png) [@kura](https://erlangforums.com/u/kura)\
**Post date:** [May 15, 2025, 7:47am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/20 "2025-05-15T07:47:01Z")

</div>

Thanks for a quick fix. Unfortunately OTP doesn’t build for me with these changes:

```erlang
gmake[3]: Entering directory '/Users/mkuratczyk/.kerl/builds/otp28-fix/otp_src_git/lib/public_key/src'
 ERLC	../ebin/public_key.beam
 ERLC	../ebin/pubkey_pem.beam
/Users/mkuratczyk/.kerl/builds/otp28-fix/otp_src_git/lib/public_key/src/../include/public_key.hrl:731:2: record 'PBES2-params' already defined
% 731| -record('PBES2-params', {
% | ^

/Users/mkuratczyk/.kerl/builds/otp28-fix/otp_src_git/lib/public_key/src/../include/public_key.hrl:746:2: record 'PBEParameter' already defined
% 746| -record('PBEParameter', {
% | ^

```

---

<div class="post-metadata">

**Author:** ![garazdawi](https://erlangforums.com/user_avatar/erlangforums.com/garazdawi/32/175_2.png) [@garazdawi](https://erlangforums.com/u/garazdawi)\
**Post date:** [May 15, 2025, 8:47am UTC](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731/21 "2025-05-15T08:47:45Z")

</div>

I pushed a fix for that compile error, but when compiling jose still get record errors:

```erlang
jose/src/jose_public_key.erl:77:9: record 'EncryptedPrivateKeyInfo_encryptionAlgorithm' undefined, did you mean PrivateKeyInfo_privateKeyAlgorithm?
jose/src/jose_public_key.erl:81:26: record 'EncryptedPrivateKeyInfo_encryptionAlgorithm' undefined, did you mean PrivateKeyInfo_privateKeyAlgorithm?
jose/src/jose_public_key.erl:380:2: record 'EncryptedPrivateKeyInfo' undefined, did you mean PrivateKeyInfo?
jose/src/jose_public_key.erl:704:16: record 'PBKDF2-params' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:720:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:722:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:724:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:726:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:728:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:730:24: record 'PBKDF2-params_prf' undefined, did you mean PBES2-params?
jose/src/jose_public_key.erl:751:7: record 'RC2-CBC-Parameter' undefined, did you mean PBEParameter?

```

will have to wait for Ingela to fix those.

[Next page](https://erlangforums.com/t/erlang-otp-28-0-rc4-released/4731.md?page=2)
