Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: Compilation on AIX 5.3

  1. #1

    Default Compilation on AIX 5.3

    Hi,

    i'm trying to install amanda on a AIX 5.3 (Unix proprietary OS, from IBM).

    I downloaded sources of the last version (2.6.1p1), and ran the configure script on the server.

    Here is the (end of) output :

    Code:
    [root@dev2]# ./configure --with-user=amandabackup --with-group=disk
          [...]
    checking size of int... configure: error: cannot compute sizeof (int)
    and it stops here.

    I looked for this issue on the web, and didn't find any answer that solve this.

    I'll post my config.log in a few mins.

    Any idea ?

    Thanks by advance

  2. #2
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    I just wrote this up:
    [url]http://wiki.zmanda.com/index.php/Configure:_error:_cannot_compute_sizeof_%28int%29[/url]

    I know of a few other folks who have built Amanda on AIX, and it's been an uphill battle because AIX provides non-standard or deficient versions of so many resource Amanda expects. You may wish to consult amanda-users, which has a broader audience, with any further questions.

  3. #3

    Default

    Fast answer; thanks a lot

    Quote Originally Posted by dustin View Post
    I know of a few other folks who have built Amanda on AIX, and it's been an uphill battle because AIX provides non-standard or deficient versions of so many resource Amanda expects.
    Hooo, yes ... i HAVE to work on it, but i really hate this OS

  4. #4

    Default

    Wow, this log is amazingly long (~6000 lines ).
    And i don't understand anything

    Here is the result of
    Code:
    grep -v '"define' config.log | tail -1000
    [URL="http://pastebin.archlinux.fr/348432"]Result[/URL]

    Hope someone will understand what are the problems ...

  5. #5
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    I'm not sure what led you to include all of that. I added [url]http://wiki.zmanda.com/index.php/Reading_config.log[/url]. Anyway, here's the interesting part:
    Code:
    configure:50232: checking size of int
    configure:50534: gcc -o conftest -g -O2 -fno-strict-aliasing -q32 -D_LARGE_FILES -qlonglong  -D_THREAD_SAFE -fno-strict-aliasing -D_GNU_SOURCE  -b32 conftest.c -lc -lpthread -lm  >&5
    gcc: unrecognized option '-q32'
    gcc: unrecognized option '-qlonglong'
    gcc: unrecognized option '-b32'
    collect2: library libm not found
    configure:50537: $? = 1
    configure: program exited with status 1
    configure: failed program was:
    | /* confdefs.h.  */
    | /* end confdefs.h.  */
    | #include <stdio.h>
    | #ifdef HAVE_SYS_TYPES_H
    | # include <sys/types.h>
    | #endif
    | #ifdef HAVE_SYS_STAT_H
    | # include <sys/stat.h>
    | #endif
    | #ifdef STDC_HEADERS
    | # include <stdlib.h>
    | # include <stddef.h>
    | #else
    | # ifdef HAVE_STDLIB_H
    | #  include <stdlib.h>
    | # endif
    | #endif
    | #ifdef HAVE_STRING_H
    | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    | #  include <memory.h>
    | # endif
    | # include <string.h>
    | #endif
    | #ifdef HAVE_STRINGS_H
    | # include <strings.h>
    | #endif
    | #ifdef HAVE_INTTYPES_H
    | # include <inttypes.h>
    | #endif
    | #ifdef HAVE_STDINT_H
    | # include <stdint.h>
    | #endif
    | #ifdef HAVE_UNISTD_H
    | # include <unistd.h>
    | #endif
    |    typedef int ac__type_sizeof_;
    | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
    | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
    | #include <stdio.h>
    | #include <stdlib.h>
    | int
    | main ()
    | {
    | 
    |   FILE *f = fopen ("conftest.val", "w");
    |   if (! f)
    |     return 1;
    |   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
    |     {
    |       long int i = longval ();
    |       if (i != ((long int) (sizeof (ac__type_sizeof_))))
    | 	return 1;
    |       fprintf (f, "%ld\n", i);
    |     }
    |   else
    |     {
    |       unsigned long int i = ulongval ();
    |       if (i != ((long int) (sizeof (ac__type_sizeof_))))
    | 	return 1;
    |       fprintf (f, "%lu\n", i);
    |     }
    |   return ferror (f) || fclose (f) != 0;
    | 
    |   ;
    |   return 0;
    | }
    configure:50556: error: cannot compute sizeof (int)
    See `config.log' for more details.
    In particular, it looks like glib is expecting to be compiled with the AIX compiler, but you're using gcc. See the updated [url]http://wiki.zmanda.com/index.php/Configure:_error:_cannot_compute_sizeof_%28int%29[/url].

  6. #6

    Default

    I think I'm going to give up: it seems that there are no compiler installed on this box (other than gcc), and pkg-config isn't present too ...
    All my searches lead to IBM website, where we can read a long long text which explain why buying their licence is a good idea ...
    I'm going to turn mad ...

    well, thank you for your help, again ...
    Last edited by CHM; May 27th, 2009 at 07:11 AM.

  7. #7
    Join Date
    Mar 2007
    Location
    Chicago, IL
    Posts
    688

    Default

    I think a lot of folks have reached the same conclusion trying to build on AIX.

    If you do want to move forward, probably the easiest solution is to build your own glib using gcc. I think that's what Scott did.

  8. #8

    Default

    For now, we are going to test dump via NFS.
    We will see ..

    Thank you.

  9. #9
    Join Date
    Dec 2009
    Location
    Vendenheim
    Posts
    9

    Default

    Hello there,

    For info, I could build amanda 2.6.1 on AIX5.3 with either gcc or with the IBM xl C compiler 7.0.0.0.
    If someone has still some interest in my findings, I can summarize.

  10. #10
    Join Date
    Aug 2008
    Posts
    184

    Default

    Quote Originally Posted by vincent View Post
    Hello there,

    For info, I could build amanda 2.6.1 on AIX5.3 with either gcc or with the IBM xl C compiler 7.0.0.0.
    If someone has still some interest in my findings, I can summarize.
    Hello,

    There is a significant interest from AIX users to run Amanda. So, your summary and any tips will certainly be helpful to a significant set of community users.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •