You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Nguyen Hai Nam <na...@nd24.net> on 2011/10/31 15:50:00 UTC

Error when compiling on SunOS

Hi,

I'm building ATS on the Solaris-based system (OpenIndiana build 151a)
and got trouble when run gmake command.

$ ./configure CC=gcc --prefix=/usr/ats
$ gmake

After gmake runs for awhile, the error has seen as:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../lib
-D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
-D_REENTRANT -Dsolaris -I/usr/local/include -march=i586 -g -pipe -Wall
-Werror -O3 -feliminate-unused-debug-symbols -fno-strict-aliasing
-Wno-invalid-offsetof -MT ink_string.lo -MD -MP -MF
.deps/ink_string.Tpo -c ink_string.cc  -fPIC -DPIC -o
.libs/ink_string.o
ink_string.cc: In function 'void ink_utf8_to_latin1(const char*, int,
char*, int*)':
ink_string.cc:504:55: error: invalid conversion from 'const char**' to
'char**' [-fpermissive]
/usr/include/iconv.h:44:15: error:   initializing argument 2 of
'size_t iconv(iconv_t, char**, size_t*, char**, size_t*)'
[-fpermissive]
gmake[3]: *** [ink_string.lo] Error 1
gmake[3]: Leaving directory `/home/neddy/trafficserver-3.1.0-unstable/lib/ts'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/home/neddy/trafficserver-3.1.0-unstable/lib/ts'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/neddy/trafficserver-3.1.0-unstable/lib'
gmake: *** [all-recursive] Error 1

Anybody got an idea?

P/S: gcc v4.6.2, and gmake v3.81

Thanks

-- 
Best regards,
Hai Nam, Nguyen