Opened 8 years ago

Closed 8 years ago

#10741 closed Bugs (invalid)

Invalid conversion in alloc_lib.c

Reported by: Jared Szechy <jared.szechy@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: container
Version: Boost 1.56.0 Severity: Showstopper
Keywords: Cc:

Description

I get the following compile error when building on CentOS 5.10

gcc.compile.c bin.v2/libs/container/build/gcc-4.1.2/release/link-static/threading-multi/alloc_lib.o
/usr/include/bits/string2.h: In function ‘char* __strpbrk_c2(const char*, int, int)’:
/usr/include/bits/string2.h:1129: error: invalid conversion from ‘void*’ to ‘char*’
/usr/include/bits/string2.h: In function ‘char* __strpbrk_c3(const char*, int, int, int)’:
/usr/include/bits/string2.h:1142: error: invalid conversion from ‘void*’ to ‘char*’
/usr/include/bits/string2.h: In function ‘char* __strtok_r_1c(char*, char, char**)’:
/usr/include/bits/string2.h:1182: error: invalid conversion from ‘void*’ to ‘char*’
/usr/include/bits/string2.h: In function ‘char* __strsep_2c(char**, char, char)’:
/usr/include/bits/string2.h:1245: error: invalid conversion from ‘void*’ to ‘char*’
/usr/include/bits/string2.h: In function ‘char* __strsep_3c(char**, char, char, char)’:
/usr/include/bits/string2.h:1273: error: invalid conversion from ‘void*’ to ‘char*’

    "g++" -x c -O3 -finline-functions -Wno-inline -Wall -pthread  -DBOOST_ALL_NO_LIB=1 -DBOOST_CONTAINER_STATIC_LINK=1 -DNDEBUG  -I"." -c -o "bin.v2/libs/container/build/gcc-4.1.2/release/link-static/threading-multi/alloc_lib.o" "libs/container/src/alloc_lib.c"

Change History (1)

comment:1 by Ion Gaztañaga, 8 years ago

Resolution: invalid
Status: newclosed

Those errors come from system headers, and it seems that you are compiling the c source code as C++ (using g++).

Note: See TracTickets for help on using tickets.