Changeset 46


Ignore:
Timestamp:
Jun 9, 2006, 10:38:20 PM (19 years ago)
Author:
rainer
Message:

Fix x86_64 build failure with gcc 4.x (as well as some gcc 4.x warnings)

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r45 r46  
    88
    99
    10 AC_ARG_VAR([LIBS],
    11             [libraries to link against, e.g. -lintl])
     10AC_ARG_VAR([LIBS], [libraries to link against, e.g. -lintl])
    1211
    1312dnl
     
    353352  AC_MSG_RESULT(yes)
    354353  AC_DEFINE_UNQUOTED([ACCEPT_TYPE_ARG3],[socklen_t], [type of arg3 of accept])
     354  AC_DEFINE([HAVE_SOCKLEN_T], 1, [Define if you have socklen_t])
    355355],[
    356356  AC_TRY_COMPILE([
  • trunk/docs/Changelog

    r42 r46  
    112.2.1:
     2        * fix gcc 4 warnings and build failure on x86_64 (debian bug #370808)
     3        * fix compiling with Oracle (noticed by Colapinto Giovanni)
     4        * fix configure.ac for most recent autoconf version
     5          (debian bug #369503)
    26        * fix a regression that would make impossible local updates w/clients
    37        * fix a few missing '\n' in sh_getopt.c
  • trunk/src/sh_files.c

    r40 r46  
    204204  char       * dir;
    205205  char       * file;
     206  int          tmp_reported;
    206207 
    207208  SL_ENTER(_("sh_files_chk"));
     
    233234
    234235          BREAKEXIT(sh_files_filecheck);
     236          tmp_reported = ptr->reported; /* fix aliasing warning */
    235237          status = sh_files_filecheck (ptr->class, dir, file,
    236                                        (int *) &(ptr->reported), 0);
     238                                       &tmp_reported, 0);
     239          ptr->reported = tmp_reported;
    237240         
    238241          TPT(( 0, FIL__, __LINE__,
  • trunk/src/sh_socket.c

    r40 r46  
    522522#elif defined(SO_PEERCRED)
    523523  struct ucred cr;
    524   int          cl = sizeof(cr);
     524#ifdef HAVE_SOCKLEN_T
     525  socklen_t cl = sizeof(cr);
     526#else
     527  int       cl = sizeof(cr);
     528#endif
    525529
    526530#elif defined(HAVE_STRUCT_CMSGCRED) || defined(HAVE_STRUCT_FCRED) || (defined(HAVE_STRUCT_SOCKCRED) && defined(LOCAL_CREDS))
  • trunk/src/sh_tiger0.c

    r34 r46  
    913913      sum += n;
    914914    }
    915     while (sum < (off_t) BLOCKSIZE
     915    while (sum < (size_t) BLOCKSIZE
    916916           && n != 0);
    917917
  • trunk/src/sh_tiger1_64.c

    r18 r46  
    129129#define roundend(a,b,c,x) \
    130130 : "+r" (a), "+r" (b), "+r" (c) \
    131  : "0" (a), "1" (b), "2" (c), "m" (x), "r" (&tiger_table),\
     131 : "r" (a), "r" (b), "r" (c), "m" (x), "r" (&tiger_table),\
    132132  "i" (MASK0), "i" (MASK8), "i" (MASK16), "r" (MASK32), "r" (MASK40), "r" (MASK48) \
    133133 : "3", "%rax","%rbx","%rcx","%rdx","%rsi", "%edi", "%r8"  );
Note: See TracChangeset for help on using the changeset viewer.