librelist archives

« back to archive

gcc 4.9.1 issue

gcc 4.9.1 issue

From:
Bro, Lars
Date:
2014-12-18 @ 17:30
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.

root@10.165.16.134:/usr/local/click# make
make[1]: 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 here
 typedef unsigned int  uintptr_t;
                       ^
Makefile:52: recipe for target 'clp.o' failed
make[1]: *** [clp.o] Error 1
make[1]: 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
mailto:lars.bro@siemens.com

Siemens A/S. Headquarters: Borupvang 9, 2750 Ballerup, Denmark. Tel: +45 
4477 4477 CVR-no. 16 99 30 85

Re: [click] gcc 4.9.1 issue

From:
Eddie Kohler
Date:
2014-12-18 @ 17:43
Hi Lars,

Can you send me your config.log?

Thanks,
E


On Thu, Dec 18, 2014 at 12:30 PM, Bro, Lars <lars.bro@siemens.com> 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.
>
> root@10.165.16.134:/usr/local/click# make
> make[1]: 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
> here
> typedef unsigned int  uintptr_t;
>                        ^
> Makefile:52: recipe for target 'clp.o' failed
> make[1]: *** [clp.o] Error 1
> make[1]: 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
> mailto:lars.bro@siemens.com
>
> Siemens A/S. Headquarters: Borupvang 9, 2750 Ballerup, Denmark. Tel: +45
> 4477 4477 CVR-no. 16 99 30 85
>
>