[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-solaris
Subject: [kde-solaris] Solaris unistd.h
From: Hans Meine <meine () informatik ! uni-hamburg ! de>
Date: 2004-01-27 11:26:11
Message-ID: 200401271226.20214.meine () informatik ! uni-hamburg ! de
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everybody!
As I already wrote about one year ago, on 2003-2-18, I have serious problems
with compiling KDE on Solaris, as unistd.h contains the following part:
/* large file compilation environment setup */
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname ftruncate ftruncate64
#pragma redefine_extname lseek lseek64
#pragma redefine_extname pread pread64
#pragma redefine_extname pwrite pwrite64
#pragma redefine_extname truncate truncate64
#pragma redefine_extname lockf lockf64
#pragma redefine_extname tell tell64
#else /* __PRAGMA_REDEFINE_EXTNAME */
#define ftruncate ftruncate64
#define lseek lseek64
#define pread pread64
#define pwrite pwrite64
#define truncate truncate64
#define lockf lockf64
#define tell tell64
#endif /* __PRAGMA_REDEFINE_EXTNAME */
#endif /* !_LP64 && _FILE_OFFSET_BITS == 64 */
_FILE_OFFSET_BITS is indeed set to 64 by configure, and I get loads of
messages like "no matching function for call to `QString::truncate64 (int)' "
all over the place (kdenetwork/{kdict,kget,krbf} to mention a few,
koffice/lib/kofficecore/koDocument.cc for example complains about a missing
"KIO::NetAccess::stat64" which seems to be related).
Similar messages come with open64 and so on and can be traced back to some bad
defines in the mentioned header which confuse the compiler resp. sometimes
the linker (if it reads the Qt headers after the #define).
Now what I find strange is that I never read anything about this problem on
this list, is there a possible fix for the header? I am trying to fight it by
putting #undef's in many places , but there must be a better fix!?
BTW:
uname -a:
"SunOS kogs47 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-1"
ls -l /usr/include/unistd.h:
"-rw-r--r-- 1 root bin 34396 Jan 5 2000 /usr/include/unistd.h"
Greetings,
/ /
/--/
/ / ANS
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAFkrTJ8iuK6bBAPMRArGIAKCYbuLwiRu85tkExF4dMVuzmCI+iwCgzlIL
SVmYwFTMHsDDfP2Fq13Z3l4=
=zYcO
-----END PGP SIGNATURE-----
___________________________________________________
This message is from the kde-solaris mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic