[Ace-users] [ace-users] ACE_OFF_T / off_t related problems, etc.

Martin Scholl ms at globalinfinity.de
Wed Nov 14 07:33:42 CST 2007


Hello all,


ok, sorry again.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
   ACE VERSION: 5.6.1

    HOST MACHINE and OPERATING SYSTEM:
	64bit Intel(r) CPU
	Linux 2.6.18 - 32bit

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    COMPILER NAME AND VERSION (AND PATCHLEVEL):
	gcc toolchain version 4.1.2

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]:
	linux-config.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]:
	platform_linux.GNU

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles):
	(no such file or directory :-/ )

    AREA/CLASS/EXAMPLE AFFECTED:
    e.g. ACE_Mem_Map

    DOES THE PROBLEM AFFECT:
        COMPILATION? no
        LINKING? yes
            On Unix systems, did you run make realclean first? yes
        EXECUTION? yes
        OTHER (please specify)?
	The application is affected.

    SYNOPSIS:


    DESCRIPTION:
[Detailed description of problem.  Don't just say "<blah>
doesn't work, here's a fix," explain what your program does
to get to the <blah> state. ]

    REPEAT BY:
1) Compile ACE the default way on a linux 32 bit machine.
2) Compile a program using ACE_Mem_Map with
-D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_LARGE_FILES

    SAMPLE FIX/WORKAROUND:
- Statically compile ACE with a 64bit off_t, thus demanding other
programs to also use large file support in every case.
- define ACE_OFF_T to not rely on off_t's definition (hoping this won't
break things or backward compatibility)
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&



Martin


global infinity GmbH                   | Tel.: 06421/983004-20        | Geschaeftsfuehrer: Marcus Brindoepke
Scheppe Gewissegasse 8         | Fax: 06421/983004-90	| Amtsgericht Marburg, HRB 5200
35039 Marburg                          | Funk: 0176/61190045	| Web: www.globalinfinity.de




More information about the Ace-users mailing list