lzip-bug
[Top][All Lists]
Advanced

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

Re: [Lzip-bug] solaris compile errors, lzip, and plzip: error: stdint.h


From: rupert THURNER
Subject: Re: [Lzip-bug] solaris compile errors, lzip, and plzip: error: stdint.h: No such file or directory
Date: Thu, 31 Dec 2009 18:01:05 +0100

On Mon, Dec 28, 2009 at 14:31, Antonio Diaz Diaz <address@hidden> wrote:
> Hello,
>
> rupert THURNER wrote:
>>
>> we tried to package lzip for solaris, http://opencsw.org, and get the
>> following compile errors:
>>
>> decoder.cc:27:20: error: stdint.h: No such file or directory
>
> You can replace "#include <stdint.h>" with "#include <inttypes.h>". Both
> headers are C99 provided as extensions in C++, but for some reason solaris
> only provides inttypes.h.

is there any chance this could go in the code so we do not have to patch it?

> From plzip-0.1/INSTALL:
> "You will need a C++ compiler and the lzlib compression library installed.
> ...
> Lzlib is available at http://www.nongnu.org/lzip/lzlib.html.";
>
> The remaining errors are caused by lzlib not being installed in your system.

after patching the include files, linking fails with:

address@hidden:~/mgar/pkg/lzlib/trunk
$ gmake package
[===== NOW BUILDING: lzlib-0.8-rc1 =====]
        [prerequisite] complete for lzlib.
        [fetch] complete for lzlib.
        [checksum] complete for lzlib.
        [checksum-global] complete for lzlib.
        [checksum-modulated] complete for lzlib.
[===== NOW BUILDING: lzlib-0.8-rc1 MODULATION global: ISA= =====]
        [extract-modulated] complete for lzlib.
[===== Building modulation 'isa-sparcv8' on host 'build8s' =====]
gmake PLATFORM=solaris8-sparc MODULATION=isa-sparcv8  ISA=sparcv8
merge-modulated
gmake[1]: Entering directory `/home/rupert/mgar/pkg/lzlib/trunk'
[===== NOW BUILDING: lzlib-0.8-rc1 MODULATION isa-sparcv8: ISA=sparcv8 =====]
        [extract-modulated] complete for lzlib.
        [patch-modulated] complete for lzlib.
        [configure-modulated] complete for lzlib.
 ==> Running make in work/solaris8-sparc/build-isa-sparcv8/lzlib-0.8-rc1
gmake[2]: Entering directory
`/home/rupert/mgar/pkg/lzlib/trunk/work/solaris8-sparc/build-isa-sparcv8/lzlib-0.8-rc1'
c++ -shared -Wl,--soname=liblz.so.0 -o liblz.so.0.8-rc1 sh_decoder.o
sh_encoder.o sh_lzlib.o
/usr/ccs/bin/ld: illegal option -- -
ld: warning: option -o appears more than once, first setting taken
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]