Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598822 - mail-mta/opensmtpd-6.0.2_p1-r1: fails to build: error: ‘WAIT_MYPGRP’ undeclared
Summary: mail-mta/opensmtpd-6.0.2_p1-r1: fails to build: error: ‘WAIT_MYPGRP’ undeclared
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-03 08:17 UTC by Michel Ganguin
Modified: 2022-01-25 21:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michel Ganguin 2016-11-03 08:17:51 UTC
USE="libressl mta pam" emerge =mail-mta/opensmtpd-6.0.2_p1-r1

fails with error: 
../../smtpd/smtpd.c: In function ‘parent_shutdown’:
../../smtpd/smtpd.c:329:17: error: ‘WAIT_MYPGRP’ undeclared (first use in this function)
   pid = waitpid(WAIT_MYPGRP, NULL, 0);


Reproducible: Always

Steps to Reproduce:
1. USE="libressl mta pam" emerge =mail-mta/opensmtpd-6.0.2_p1-r1
Actual Results:  
compile fails

Expected Results:  
build successfully

Autoconf detects that WAIT_MYPGRP is not available and sets HAVE_DECL_WAIT_MYPGRP to 0:
config.log:| #define HAVE_DECL_WAIT_MYPGRP 0

However the source code uses a #ifndef:
openbsd-compat/openbsd-compat.h:#ifndef HAVE_DECL_WAIT_MYPGRP

As a workaround I changed this line to:
openbsd-compat/openbsd-compat.h:#if HAVE_DECL_WAIT_MYPGRP != 1

With this change it builds correctly.