Bug 50135

Summary: conflicting types for mkdir() and rename() in elm 2.5.6
Product: Ports & Packages Reporter: Christopher Nehren <apeiron>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-aa
none
file.dat none

Description Christopher Nehren 2003-03-19 19:50:13 UTC
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
Comment 1 Jonathan Lennox 2003-09-03 18:37:32 UTC
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]'.
Comment 2 Greg Lewis freebsd_committer freebsd_triage 2003-09-09 17:31:30 UTC
State Changed
From-To: open->closed

Committed the same patch from earlier PR 47379.