Project

General

Profile

Bug #3423

Postfix on musl

Added by Jens Vehlhaber over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
10/13/2014
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

Postfix on musl environment missing file descriptors. The Postfix configuration header src/util/sys_defs.h search GLIBC value on line 813. The environment worth GLIBC is not there. For use postfix with file descriptors, insert the following patch on APKBUILD:

sed -i -e "s:(GLIBC < 2):(defined(GLIBC) \&\& (GLIBC < 2)):" src/util/sys_defs.h || return 1

Not tested under uclibc!

postfix-milter-error.png (8.97 KB) postfix-milter-error.png Jens Vehlhaber, 10/13/2014 08:48 AM

Associated revisions

Revision 1f4cc3c6 (diff)
Added by Natanael Copa over 4 years ago

main/postfix: fix file descriptor passing

we need check if GLIBC is defined at all before comparing verision

ref #3423

Revision 04df56e6 (diff)
Added by Natanael Copa over 4 years ago

main/postfix: fix file descriptor passing

we need check if GLIBC is defined at all before comparing version

fixes #3423

History

#1 Updated by Jens Vehlhaber over 4 years ago

The problem is noticed only with a milter tool accessory.

#2 Updated by Natanael Copa over 4 years ago

like this you mean?

--- postfix-2.11.1.orig/src/util/sys_defs.h
+++ postfix-2.11.1/src/util/sys_defs.h
@@ -810,7 +810,7 @@
 # define KERNEL_VERSION(a,b,c) (LINUX_VERSION_CODE + 1)
 #endif
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,2,0)) \
-       || (__GLIBC__ < 2)
+       || (defined(__GLIBC__) && __GLIBC__ < 2)
 # define CANT_USE_SEND_RECV_MSG
 # define DEF_SMTP_CACHE_DEMAND 0
 #else

#3 Updated by Natanael Copa over 4 years ago

  • Target version set to 3.0.6

#4 Updated by Jens Vehlhaber over 4 years ago

Yes, that was my solution to the problem.
Thanks

#5 Updated by Natanael Copa over 4 years ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

#6 Updated by Natanael Copa over 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF