Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731262 - net-mail/fdm fails to compile
Summary: net-mail/fdm fails to compile
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-07-07 10:27 UTC by Agostino Sarubbo
Modified: 2021-01-09 04:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,80.96 KB, text/plain)
2020-07-07 10:28 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-07 10:27:58 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-mail/fdm fails to compile.
Discovered on: amd64

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-07 10:28:03 UTC
Created attachment 648228 [details]
build.log

build log and emerge --info
Comment 2 Markus Peloquin 2021-01-09 04:50:25 UTC
Simple fix. I think AC_CHECK_DECL is just always wrong. I read through OpenSSH and it was using AC_CHECK_FUNCS for these.

diff -ru fdm-2.0.orig/configure.ac fdm-2.0/configure.ac
--- fdm-2.0.orig/configure.ac   2021-01-08 20:43:47.007041684 -0800
+++ fdm-2.0/configure.ac        2021-01-08 20:43:57.385042347 -0800
@@ -107,13 +107,13 @@
        AC_MSG_ERROR("libssl not found")
 fi
 
-AC_CHECK_DECL(strlcpy, found_strlcpy=yes, found_strlcpy=no)
+AC_CHECK_FUNC(strlcpy, found_strlcpy=yes, found_strlcpy=no)
 if test "x$found_strlcpy" = xyes; then
        AC_DEFINE(HAVE_STRLCPY)
 fi
 AM_CONDITIONAL(NO_STRLCPY, [test "x$found_strlcpy" = xno])
 
-AC_CHECK_DECL(strlcat, found_strlcat=yes, found_strlcat=no)
+AC_CHECK_FUNC(strlcat, found_strlcat=yes, found_strlcat=no)
 if test "x$found_strlcat" = xyes; then
        AC_DEFINE(HAVE_STRLCAT)
 fi