On 2025-11-23 Jeremy Harris via Exim-users <[email protected]> wrote:
> On 2025/11/23 5:35 AM, Laura Williamson via Exim-users wrote:
> > Debian uses this local_scan feature which is not compatible with 4.99
> > 
> > https://marc.merlins.org/linux/exim/files/local_scan/local_scan.c_4.2.1
> A very quick read shows at least one use of a variable from the older
> Exim source which is not advertised by the local_scan API,
> and no longer exists.  That is additional to the "undefined symbol"
> issue reported by the OP.

> I'd encourage users of sa-exim to move to the builtin SA support
> (as Andreas notes, also supported by Debian).

Hello Jeremy,

Hm. expand_string() is still documented as being available in spec 46.7.

However, it really does not seem to be available anymore. Changing
src/local_scan.c like this
--- src/local_scan.c    2025-10-27 13:16:13.000000000 +0000
+++ ../local_scan.c     2025-11-23 12:58:49.780675405 +0000
@@ -59,6 +59,8 @@
 int
 local_scan(int fd, uschar **return_text)
 {
+       uschar *expand_result;
+       expand_result = expand_string("blah");
 return LOCAL_SCAN_ACCEPT;
 }

yields
cc -o exim -Wl,-z,relro -Wl,-z,now acl.o atrn.o base64.o child.o [...]
/usr/bin/ld: local_scan.o: in function `local_scan':
./b-exim4-daemon-light/build-Linux-x86_64/../src/local_scan.c:63:(.text+0x10): 
undefined reference to `expand_string'
collect2: error: ld returned 1 exit status

cu Andreas

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to