Package: insserv
Version: 1.12.0-1
Severity: important

There was an error while trying to autobuild your package:

> Automatic build of insserv_1.12.0-1 on arrakis by sbuild/m68k 98
> Build started at 20080801-0340

[...]

> ** Using build dependencies supplied by package:
> Build-Depends: debhelper (>= 4.0.0), po-debconf, dpatch

[...]

> dh_testdir
> # Add here commands to compile the package.
> /usr/bin/make COPTS="-g -O2"
> make[1]: Entering directory `/build/buildd/insserv-1.12.0'
> gcc -W -Wall -g -O2   -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  
> -DINITDIR=\"/etc/init.d\" -DINSCONF=\"/etc/insserv.conf\" -pipe 
> -falign-loops=0 -c insserv.c
> In file included from insserv.c:41:
> listing.h: In function 'prefetch':
> listing.h:58: warning: unused parameter 'x'
> insserv.c: At top level:
> insserv.c:150: error: requested alignment is not a power of 2
> insserv.c:155: error: requested alignment is not a power of 2
> make[1]: *** [insserv.o] Error 1
> make[1]: Leaving directory `/build/buildd/insserv-1.12.0'
> make: *** [build-stamp] Error 2
> dpkg-buildpackage: failure: debian/rules build gave error exit status 2

insserv.c contains the following:

/* Search results points here */
typedef struct reg_struct {
    regex_t prov;
    regex_t req_start;
    regex_t req_stop;
    regex_t shl_start;
    regex_t shl_stop;
    regex_t start_bf;
    regex_t stop_af;
    regex_t def_start;
    regex_t def_stop;
    regex_t desc;
} attribute((aligned(sizeof(regex_t)))) reg_t;

With the final line of the above snippet being line 150.

On m68k, some bits of memory must be aligned on a 2-byte boundary. The
above makes that impossible.

If the issue is that you want to use these structs in a protocol of some
sort or other, then it's probably best to use attribute(__packed__),
which has the same effect as the above, but with the added benefit of
the compiler generating some stubs in code so that it can be safely
accessed (if with a performance penalty) from 'regular' code.

A full build log can be found at:
http://buildd.debian.org/build.php?arch=m68k&pkg=insserv&ver=1.12.0-1




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to