You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Axb <ax...@gmail.com> on 2012/10/02 13:38:40 UTC

make test fails trying to compile spamc

totally new to me...
............
gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c spamc/utils.c \
                 -o spamc/spamc   -ldl -lz
spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [spamc/spamc] Error 1
............

axb@toro:~$ locate zlib.h
/usr/lib/syslinux/com32/include/zlib.h

stumped!

What changed?

Axb

Re: make test fails trying to compile spamc

Posted by Mark Martinec <Ma...@ijs.si>.
> On 10/2/2012 12:36 PM, Axb wrote:
> > Yep - heaven knows why it worked till today and all of a sudden...
> 
> Mark made some changes recently. It's possible zlib wasn't require
> previously, possibly?

Some changes indeed [Bug 6842],
although I don't think I touched anything regarding zlib.

  Mark

Re: make test fails trying to compile spamc

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 10/2/2012 12:36 PM, Axb wrote:
>
> Yep - heaven knows why it worked till today and all of a sudden...
Mark made some changes recently. It's possible zlib wasn't require 
previously, possibly?

Regards,
KAM

Re: make test fails trying to compile spamc

Posted by Axb <ax...@gmail.com>.
On 10/02/2012 06:34 PM, darxus@chaosreigns.com wrote:
> On 10/02, Axb wrote:
>> On 10/02/2012 02:11 PM, Axb wrote:
>>> On 10/02/2012 01:51 PM, Henrik Krohns wrote:
>>>> On Tue, Oct 02, 2012 at 01:38:40PM +0200, Axb wrote:
>>>>> totally new to me...
>>>>> ............
>>>>> gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c
>>>>> spamc/utils.c \
>>>>>                  -o spamc/spamc   -ldl -lz
>>>>> spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
>>>>> compilation terminated.
>>>>> make[1]: *** [spamc/spamc] Error 1
>>>>> ............
>>>>>
>>>>> axb@toro:~$ locate zlib.h
>>>>> /usr/lib/syslinux/com32/include/zlib.h
>>>>
>>>> That's not system zlib.
>>>>
>>>>> stumped!
>>>>
>>>> yum install zlib-devel
>>>
>>>
>>> this is Ubuntu  - and 2 days ago it still worked...
>>
>> found the missing package - <puzzled>
>
> You found the solution and didn't tell us what it is?
>
> Was it this?
>
> $ apt-file search include/zlib.h
> ...
> zlib1g-dev: /usr/include/zlib.h


Yep - heaven knows why it worked till today and all of a sudden...





Re: make test fails trying to compile spamc

Posted by da...@chaosreigns.com.
On 10/02, Axb wrote:
> On 10/02/2012 02:11 PM, Axb wrote:
> >On 10/02/2012 01:51 PM, Henrik Krohns wrote:
> >>On Tue, Oct 02, 2012 at 01:38:40PM +0200, Axb wrote:
> >>>totally new to me...
> >>>............
> >>>gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c
> >>>spamc/utils.c \
> >>>                 -o spamc/spamc   -ldl -lz
> >>>spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
> >>>compilation terminated.
> >>>make[1]: *** [spamc/spamc] Error 1
> >>>............
> >>>
> >>>axb@toro:~$ locate zlib.h
> >>>/usr/lib/syslinux/com32/include/zlib.h
> >>
> >>That's not system zlib.
> >>
> >>>stumped!
> >>
> >>yum install zlib-devel
> >
> >
> >this is Ubuntu  - and 2 days ago it still worked...
> 
> found the missing package - <puzzled>

You found the solution and didn't tell us what it is?

Was it this?

$ apt-file search include/zlib.h
...
zlib1g-dev: /usr/include/zlib.h

-- 
"The most merciful thing in the world, I think, is the inability of the
human mind to correlate all its contents."
http://www.ChaosReigns.com

Re: make test fails trying to compile spamc

Posted by Axb <ax...@gmail.com>.
On 10/02/2012 02:11 PM, Axb wrote:
> On 10/02/2012 01:51 PM, Henrik Krohns wrote:
>> On Tue, Oct 02, 2012 at 01:38:40PM +0200, Axb wrote:
>>> totally new to me...
>>> ............
>>> gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c
>>> spamc/utils.c \
>>>                  -o spamc/spamc   -ldl -lz
>>> spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
>>> compilation terminated.
>>> make[1]: *** [spamc/spamc] Error 1
>>> ............
>>>
>>> axb@toro:~$ locate zlib.h
>>> /usr/lib/syslinux/com32/include/zlib.h
>>
>> That's not system zlib.
>>
>>> stumped!
>>
>> yum install zlib-devel
>
>
> this is Ubuntu  - and 2 days ago it still worked...

found the missing package - <puzzled>


Re: make test fails trying to compile spamc

Posted by Axb <ax...@gmail.com>.
On 10/02/2012 01:51 PM, Henrik Krohns wrote:
> On Tue, Oct 02, 2012 at 01:38:40PM +0200, Axb wrote:
>> totally new to me...
>> ............
>> gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c spamc/utils.c \
>>                  -o spamc/spamc   -ldl -lz
>> spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
>> compilation terminated.
>> make[1]: *** [spamc/spamc] Error 1
>> ............
>>
>> axb@toro:~$ locate zlib.h
>> /usr/lib/syslinux/com32/include/zlib.h
>
> That's not system zlib.
>
>> stumped!
>
> yum install zlib-devel


this is Ubuntu  - and 2 days ago it still worked...

hmm


Re: make test fails trying to compile spamc

Posted by Henrik Krohns <he...@hege.li>.
On Tue, Oct 02, 2012 at 01:38:40PM +0200, Axb wrote:
> totally new to me...
> ............
> gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c spamc/utils.c \
>                 -o spamc/spamc   -ldl -lz
> spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
> compilation terminated.
> make[1]: *** [spamc/spamc] Error 1
> ............
> 
> axb@toro:~$ locate zlib.h
> /usr/lib/syslinux/com32/include/zlib.h

That's not system zlib.

> stumped!

yum install zlib-devel


Re: make test fails trying to compile spamc

Posted by "Kevin A. McGrail" <KM...@PCCC.com>.
On 10/2/2012 7:38 AM, Axb wrote:
> totally new to me...
> ............
> gcc  -g -O2 spamc/spamc.c spamc/getopt.c spamc/libspamc.c spamc/utils.c \
>                 -o spamc/spamc   -ldl -lz
> spamc/libspamc.c:68:18: fatal error: zlib.h: No such file or directory
> compilation terminated.
> make[1]: *** [spamc/spamc] Error 1
> ............
>
> axb@toro:~$ locate zlib.h
> /usr/lib/syslinux/com32/include/zlib.h
>
> stumped!
>
> What changed?
That doesn't sound like a standard include dir.  I would have expected 
/usr/include/zlib.h or similar.

What does ./configure say for zlib?

./configure | grep zlib
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes

Are you sending and CPPFLAGS?

   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you 
have  headers in a nonstandard directory <include dir>

Regards,
KAM