Re: [click] gcc 4.9.1 issue
- Eddie Kohler
- 2014-12-18 @ 17:43
Can you send me your config.log?
On Thu, Dec 18, 2014 at 12:30 PM, Bro, Lars <firstname.lastname@example.org> wrote:
> Hi list,
> When trying to compile Click on Debian Jessie with gcc-4.9.1, I have seen
> that I get an error when compiling lib/clp.c.
> email@example.com:/usr/local/click# make
> make: Entering directory '/usr/local/click/userlevel'
> CC ../lib/clp.c
> ../lib/clp.c:43:23: error: conflicting types for 'uintptr_t'
> typedef unsigned long uintptr_t;
> In file included from /usr/lib/gcc/i586-linux-gnu/4.9/include/stdint.h:9:0,
> from /usr/include/inttypes.h:27,
> from ../include/click/config-userlevel.h:245,
> from ../include/click/config.h:293,
> from ../lib/clp.c:22:
> /usr/include/stdint.h:128:23: note: previous declaration of 'uintptr_t' was
> typedef unsigned int uintptr_t;
> Makefile:52: recipe for target 'clp.o' failed
> make: *** [clp.o] Error 1
> make: Leaving directory '/usr/local/click/userlevel'
> Makefile:57: recipe for target 'userlevel' failed
> make: *** [userlevel] Error 2
> It seems that configure does not recognize that uintptr_t is actually
> defined, since HAVE_UINTPTR_T is not defined.
> It seems to work if I just leave the typedef out.
> Mit freundlichen Grüßen
> Lars Bro
> Siemens A/S
> RC-DK MO DEV R&D-A-COC
> Borupvang 9
> 2750 Ballerup, Dänemark
> Tel.: +45 4477-4171
> Siemens A/S. Headquarters: Borupvang 9, 2750 Ballerup, Denmark. Tel: +45
> 4477 4477 CVR-no. 16 99 30 85