Bug 172574 - [patch] mail/mail2sms: fix build with clang
Summary: [patch] mail/mail2sms: fix build with clang
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-10 23:58 UTC by Boris Samorodov
Modified: 2012-10-31 18:12 UTC (History)
0 users

See Also:


Attachments
file.diff (638 bytes, patch)
2012-10-10 23:58 UTC, Boris Samorodov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Samorodov freebsd_committer freebsd_triage 2012-10-10 23:58:19 UTC
Currently the port does not build with clang:
-----
===>  Building for mail2sms-1.3.5
cc -c -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H base64.c
cc -c -O2 -pipe -fno-strict-aliasing -DHAVE_CONFIG_H parse.c
parse.c:151:17: warning: implicit declaration of function 'base64Decode' is parse.c:329:5: error: non-void function 'process' should return a value [-Wreturn-type]
    return; /* add error code */
-----
% uname -a
FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #36 r241156: Wed Oct  3 13:44:36 SAMT 2012     bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX  i386

% clang --version
FreeBSD clang version 3.2 (trunk 162107) 20120817
Target: i386-unknown-freebsd10.0
Thread model: posix
-----

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-10 23:58:53 UTC
Maintainer of mail/mail2sms,

Please note that PR ports/172574 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/172574

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-10-10 23:58:54 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2012-10-31 18:12:26 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!