Re: compiling with 64 bit problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks all for help,


I read about some bugs in 64 bit compiler at

http://absorb.it/hacked/thunderbird/mozilla.eclass

and have tried the mentioned -O1 flag in combination with the needed -fPIC

export CFLAGS="-O1 -fPIC"


that's was it

cheers
Reimar



Do, Jong-Gwan wrote:
> You could try add "-D_FILE_OFFSET_BITS=64" in CFLAGS.
> 
> Regards,
> Jong-Gwan
>  
> 
> -----Original Message-----
> From: owner-netcdfgroup@xxxxxxxxxxxxxxxx
> [mailto:owner-netcdfgroup@xxxxxxxxxxxxxxxx] On Behalf Of Reimar Bauer
> Sent: Tuesday, September 20, 2005 12:33 AM
> To: netcdfgroup@xxxxxxxxxxxxxxxx
> Subject: compiling with 64 bit problem
> 
> Dear all,
> 
> I got some problems by compiling netCDF 3.6.0-p1 on a SuSE9.3 Linux box
> (64 bit)
> This is my compiler Version:
> 
> Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/specs
> Configured with: ../configure --enable-threads=posix --prefix=/usr
> --with-local-prefix=/usr/local --infodir=/usr/share/info
> --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada
> --disable-checking --libdir=/usr/lib64 --enable-libgcj
> --with-slibdir=/lib64 --with-system-zlib --enable-shared
> --enable-__cxa_atexit x86_64-suse-linux Thread model: posix gcc version 3.3.5
> 20050117 (prerelease) (SUSE Linux)
> 
> 
> The problem is that's fstat won't he found. This is used in posixio.c.
> 
> 
> If I do comment out the call of fstat it seems to work right. That is not the
> best solution but probably gives an idea what is wrong.
> 
> I was using the CFLAGS=-fPIC to create a shareable module.
> 
> 
>  /*
>  * What is the preferred I/O block size?
>  */
> static size_t
> blksize(int fd)
> {
>  #if defined(HAVE_ST_BLKSIZE)
>       struct stat sb;
> /*
>       if (fstat(fd, &sb) > -1)
>       {
>               if(sb.st_blksize >= 8192)
>                       return (size_t) sb.st_blksize;
>               return 8192;
>       }
>       /* else, silent in the face of error */ #endif
>       return (size_t) 2 * pagesize();
> }
> 
> 
> /*
>  * Sortof like ftruncate, except won't make the
>  * file shorter.
>  */
> static int
> fgrow(const int fd, const off_t len)
> {
>       struct stat sb;
> /*
>       if (fstat(fd, &sb) < 0)
>               return errno; */
> 
> 
> 
> What else could I do?
> 
> 
> cheers
> 
> Reimar
> 
> 
> --
> Reimar Bauer
> 
> Institut fuer Stratosphaerische Chemie (ICG-I) Forschungszentrum Juelich
> email: R.Bauer@xxxxxxxxxxxxx
> -------------------------------------------------------------------
>         a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html
> ==================================================================
> 

- --
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@xxxxxxxxxxxxx
- -------------------------------------------------------------------
        a IDL library at ForschungsZentrum Juelich
 http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html
==================================================================

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFDL8jk5aOc3Q9hk/kRAoGFAJ46Q5s854yBmlpNdsG1YlNSJcfyewCfcbMH
50gvHmERRbSrje8BjZA0J98
=tMVl
-----END PGP SIGNATURE-----


  • 2005 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: