[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with outguess



Hi Eriberto,

> Today I uploaded outguess to experimental to try fix #882538. On my
> machine (amd64), the package builds fine (inside a jail and over
> cowbuilder). However, in experimental the package FTBFS in amd64,
> arm64 and ppc64el[1].
> 
> Can anybody help to solve the problem? Thanks in advamce.

    cc -DHAVE_STDC_HEADERS  -o ansi2knr ansi2knr.c
    ./ansi2knr jcapimin.c Tjcapimin.c
    make[2]: ./ansi2knr: Command not found
    make[2]: *** [makefile.unix:107: jcapimin.o] Error 127
    make[2]: *** Waiting for unfinished jobs....

Looks like an issue in jpeg-6b-steg/makefile.unix. Maybe a concurrency
issue ? Anyways, .c.o is old-fashioned Makefile syntax, we should try to
avoid that. Especially because this rule depends on the ansi2knr
rule, and "suffix rules cannot have any prerequisites of their own"[0].

What about:

    .c.o:
        ./ansi2knr $*.c T$*.c
        $(CC) $(CFLAGS) -c T$*.c
        $(RM) T$*.c $*.o
        $(MV) T$*.o $*.o

->

    %.o: %.c ansi2knr
        ./ansi2knr $*.c T$*.c
        $(CC) $(CFLAGS) -c T$*.c
        $(RM) T$*.c $*.o
        $(MV) T$*.o $*.o

cheers,
 Hugo

[0] http://www.gnu.org/software/make/manual/make.html#Suffix-Rules

-- 
                Hugo Lefeuvre (hle)    |    www.owl.eu.com
RSA4096_ 360B 03B3 BF27 4F4D 7A3F D5E8 14AA 1EB8 A247 3DFD
ed25519_ 37B2 6D38 0B25 B8A2 6B9F 3A65 A36F 5357 5F2D DC4C

Attachment: signature.asc
Description: PGP signature


Reply to: