While building elm 2.5.6, the build fails with errors regarding conflicting types for mkdir() and rename(). Fix: Define MKDIR and RENAME in a scope visible to work/elm-2.5.6/hdrs/elm_lib.h . Defining them right before the #ifndef lines in elm_lib.h does solve the problem, if in a kludgish way. How-To-Repeat: cd $PREFIX/ports/mail/elm && make install
I've figured out this problem. The problem is that elm's Configure script uses 'nm' to extract symbols from libc, to determine what functions are available on the system. However, the script isn't expecting symbols of type 'W' (weak) to show up. In FreeBSD 5.x, a number of functions in libc are weak symbols. The solution is to patch elm's Configure script as indicated by the attached patch. (I've attached the new patch-aa file; this incorporates the existing patch-aa as well as the new patch I've introduced.) The fix changes '[ATDS]', in the sed expression run over the output of 'nm', to '[ATDSW]'.
State Changed From-To: open->closed Committed the same patch from earlier PR 47379.