j'ai récupéré sur DAG le srpm de partimage et j'ai un problème à la compilation (rpmbuild -ba partimage-0.7.2-dag.spec) :
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char), 77
See `config.log' for more details.
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.26611 (%build)
Erreur de construction de RPM:
Mauvais status de sortie pour /var/tmp/rpm-tmp.26611 (%build)
le config.log ne m'inspire pas c'est une suite de directives de compilations mais rien d'exploitable à mon niveau de C, en voici un extrait :
| #define PACKAGE_NAME "partimage"
| #define PACKAGE_TARNAME "partimage"
| #define PACKAGE_VERSION "0.7.2"
| #define PACKAGE_STRING "partimage 0.7.2"
| #define PACKAGE_BUGREPORT "
partimage-debug@sourceforge.net"
| #define PACKAGE "partimage"
| #define VERSION "0.7.2"
| #define PI_CORE_VERSION "0.7.2"
| #define GUI_QT_VERSION "0.1.2"
| #define GUI_NEWT_VERSION "0.7.2"
| #define GUI_TEXT_VERSION "0.7.1+cvs"
| #define IMAGE_FORMAT_VERSION "1.5"
| #define NETWORK_PROTOCOL_VERSION "1.5"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| #define STDC_HEADERS 1
| #define OS_LINUX 1
| #define _GNU_SOURCE 1
| #define HAVE_LIBPTHREAD 1
| #define HAVE_LIBUUID 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBPARTED 1
| #define HAVE_LIBNEWT 1
| #define HAVE_TEMPLATE_REPOSITORY 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBZ 1
| #define LEVELSUPPORT_GZIP 1
| #define HAVE_LIBBZ2 1
| #define LEVELSUPPORT_BZIP2 1
| #define HAVE_LIBLZO 1
| #define LEVELSUPPORT_LZO 1
| #define LIBMCRYPT24 1
| #define HAVE_FCNTL_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_PTHREAD_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_SHADOW_H 1
| #define HAVE_MNTENT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_STATFS_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_GETOPT_H 1
| #define inline __inline__
| #define SETPGRP_VOID 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (char)); }
| unsigned long ulongval () { return (long) (sizeof (char)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (char))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (char))))
| exit (1);
| fprintf (f, "%ldn", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (char))))
| exit (1);
| fprintf (f, "%lun", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:28453: error: cannot compute sizeof (char), 77
See `config.log' for more details.