Bug 198531 - compilation error in libpgf [PATCH]
Summary: compilation error in libpgf [PATCH]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 1.0.0
Platform: NetBSD pkgsrc NetBSD
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-01 14:57 UTC by Thomas Klausner
Modified: 2017-08-19 20:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0
Sentry Crash Report:


Attachments
Patch fixing the compilation problem (548 bytes, patch)
2009-07-01 14:59 UTC, Thomas Klausner
Details

Note You need to log in before you can comment on or make changes to this bug.
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