Bug 198531

Summary: compilation error in libpgf [PATCH]
Product: [Applications] digikam Reporter: Thomas Klausner <tk>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: caulier.gilles
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In: 1.0.0
Attachments: Patch fixing the compilation problem

Description Thomas Klausner 2009-07-01 14:57:39 UTC
Version:           1.0.0-beta1 (using KDE 4.2.4)
Compiler:          gcc (GCC) 4.1.3 20080704 prerelease (NetBSD nb2 20081120) 
OS:                NetBSD
Installed from:    NetBSD pkgsrc

Compilation fails on NetBSD-5.99.14/amd64 in libpgf.
UINT* are missing; I worked around it by defining __POSIX__ for NetBSD.
Then it fails because of missing off64_t and lseek64 -- NetBSD's off_t and lseek are 64-bit ready, there is no need for off64_t and lseek64 and thus they don't exist; so I defined them away. See attached patch.
Comment 1 Thomas Klausner 2009-07-01 14:59:12 UTC
Created attachment 34971 [details]
Patch fixing the compilation problem

Possible solution.
Could be improved by testing for appropriate symbols instead.
Comment 2 caulier.gilles 2009-07-01 15:04:08 UTC
SVN commit 990017 by cgilles:

compile under NetBSD
BUG: 198531


 M  +11 -0     PGFplatform.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=990017