[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    RE: compiling kdelibs-3beta2 --> kshred.cpp and some others
From:       "ZECHA,HOLGER \(HP-Germany,ex1\)" <holger_zecha () hp ! com>
Date:       2002-02-18 12:46:05
[Download RAW message or body]

Hello,

> Does it help if you remove
> 	AM_CPPFLAGS = -D_LARGEFILE64_SOURCE
> from Makefile.am?

Yes, that works except for kfileitem.cpp.

I had to change klargefile.h in the following way:
26,33c26,33
< #define KDE_stat              ::stat
< #define KDE_lstat             ::lstat
< #define KDE_fstat             ::fstat
< #define KDE_open              ::open
< #define KDE_lseek             ::lseek
< #define KDE_readdir           ::readdir
< #define KDE_struct_stat       struct stat
< #define KDE_struct_dirent     struct dirent
---
> #define KDE_stat              ::stat64
> #define KDE_lstat             ::lstat64
> #define KDE_fstat             ::fstat64
> #define KDE_open              ::open64
> #define KDE_lseek             ::lseek64
> #define KDE_readdir           ::readdir64
> #define KDE_struct_stat       struct stat64
> #define KDE_struct_dirent     struct dirent64

Removed all 64 stuff, afterwards compiling works fine.
klargefile.h seems to be only included in kfileitme.cpp. There must be still
something wrong there.
I had a deeper look inside the HP-UX documentation for LARGFILE support and
in HP-UX the include
#include <ftw.h> must be done to enable LARGEFILE support.
All the necessary typdefs are done inside this include !

Holger

-----Original Message-----
From: Waldo Bastian [mailto:bastian@kde.org]
Sent: Montag, 18. Februar 2002 06:11
To: kde-devel@kde.org
Subject: Re: compiling kdelibs-3beta2 --> kshred.cpp and some others


On Sunday 17 February 2002 03:44 am, ZECHA,HOLGER \(HP-Germany,ex1\) wrote:
> the following definitions are missing:
>
> typedef unsigned int uint32_t;
> typedef int  int32_t;
> typedef uint32_t rlim_t;
> typedef long int64_t;
> typedef int64_t off64_t;
> typedef int64_t fpos64_t;
> typedef int32_t blkcnt_t;
>
> They are defined in types.h and _inttypes.h.
>
> Can somebody please check the includes and #ifdefs.
>
> Holger
>
> In file included from /usr/include/sys/resource.h:41,
>                  from /usr/include/sys/wait.h:83,
>                  from
> /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/stdlib.h:231,
>                  from kshred.h:33,
>                  from kshred.cpp:29:


As far as I can see the code up to this point can be described as:

	#ifndef kshred_h
	#define kshred_h
	#include <stdlib.h>

Do you configure with --enable-final? If not it is rather hard to see why
this 
would fail.

Does it help if you remove
	AM_CPPFLAGS = -D_LARGEFILE64_SOURCE
from Makefile.am?

Cheers,
Waldo
-- 
Advanced technology only happens when people take a basic idea and add to
it.
 -- Bob Bemer

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe
<<
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic