View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001260 | SOGo | Backend General | public | 2011-04-13 06:47 | 2011-06-23 14:12 |
Reporter | buzzdee | Assigned To | ludovic | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 1.3.6 | ||||
Target Version | 1.3.8 | Fixed in Version | 1.3.8 | ||
Summary | 0001260: remove useless header include in NSString+Utilities.m | ||||
Description | this #include <crypt.h> breaks compilation of sogo on OpenBSD with llvm/clang. which apparently also exists in the NSString+Utilities.m. attached patch removes this inclusion. | ||||
Tags | No tags attached. | ||||
2011-04-13 06:47
|
patch-SoObjects_SOGo_NSString+Utilities_m (326 bytes)
$OpenBSD$ --- SoObjects/SOGo/NSString+Utilities.m.orig Fri Apr 8 19:44:28 2011 +++ SoObjects/SOGo/NSString+Utilities.m Wed Apr 13 08:41:26 2011 @@ -21,8 +21,6 @@ * Boston, MA 02111-1307, USA. */ -#include <crypt.h> - #import <Foundation/NSArray.h> #import <Foundation/NSCharacterSet.h> #import <Foundation/NSData.h> |
Not sure I understand here. How to remove the warning with gcc if we don't include crypt.h? |
|
NSString+Utilities.m has everything needed for crypt(3). Simply removing the include statement, will get rid of the warning with gcc, and will allow compile that file with clang. I hope now its more clear. |
|
With the #include <crypt.h>, I get no warning using gcc. But without it, I get: sogo:~/src/SOGo/SoObjects/SOGo# make So I don't understand why you say "Simply removing the include statement, will get rid of the warning with gcc..." since removing the include does generate a warning! |
|
Any updates on this? |
|
Sorry, I haven't seen the comment from the 20.06. The Linux manual page seems about crypt(3) seems to be wrong, so I'm sorry. #define _XOPEN_SOURCE 1 which is there in the source file, and is enough to compile on OpenBSD. #ifndef OpenBSD |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2011-04-13 06:47 | buzzdee | New Issue | |
2011-04-13 06:47 | buzzdee | File Added: patch-SoObjects_SOGo_NSString+Utilities_m | |
2011-06-15 21:03 | ludovic | Target Version | => 1.3.8 |
2011-06-15 21:03 | ludovic | Status | new => assigned |
2011-06-15 21:03 | ludovic | Assigned To | => ludovic |
2011-06-16 15:32 | ludovic | Note Added: 0002589 | |
2011-06-17 09:07 | buzzdee | Note Added: 0002599 | |
2011-06-20 20:02 | ludovic | Note Added: 0002608 | |
2011-06-23 13:06 | ludovic | Note Added: 0002626 | |
2011-06-23 13:30 | buzzdee | Note Added: 0002628 | |
2011-06-23 14:12 | ludovic | Note Added: 0002629 | |
2011-06-23 14:12 | ludovic | Status | assigned => resolved |
2011-06-23 14:12 | ludovic | Fixed in Version | => 1.3.8 |
2011-06-23 14:12 | ludovic | Resolution | open => fixed |