[MacPorts] #59121: blackbox @0.75 does not build on PPC Tiger, Mac OS X 10.4.11, because of a type mismatch?
MacPorts
noreply at macports.org
Fri Sep 27 19:56:57 UTC 2019
#59121: blackbox @0.75 does not build on PPC Tiger, Mac OS X 10.4.11, because of a
type mismatch?
-----------------------+----------------------
Reporter: ballapete | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.0
Keywords: tiger | Port: blackbox
-----------------------+----------------------
{{{
libtool: compile: /opt/local/bin/g++-mp-6 -DHAVE_CONFIG_H -I. -I..
-include config.h -I.. -I/opt/local/include/ossp
-I/opt/local/include/freetype2 -I/opt/local/include/libpng16
-I/opt/local/include -I/opt/local/include/LegacySupport
-I/opt/local/include/LegacySupport -pipe -Os -Wno-format-security
-std=c++98 -arch ppc -c Unicode.cc -fno-common -DPIC -o .libs/Unicode.o
Unicode.cc: In instantiation of 'void bt::convert(const char*, const
char*, const _Source&, _Target&) [with _Source =
std::__cxx11::basic_string<char>; _Target =
std::__cxx11::basic_string<unsigned int>]':
Unicode.cc:204:49: required from here
Unicode.cc:103:23: error: invalid conversion from 'char**' to 'const
char**' [-fpermissive]
size_t l = iconv(cd, &inp, &in_bytes, &outp, &out_bytes);
^
In file included from Unicode.cc:30:0:
/opt/local/include/iconv.h:82:15: note: initializing argument 2 of
'size_t libiconv(libiconv_t, const char**, size_t*, char**, size_t*)'
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
^
Unicode.cc: In instantiation of 'void bt::convert(const char*, const
char*, const _Source&, _Target&) [with _Source =
std::__cxx11::basic_string<unsigned int>; _Target =
std::__cxx11::basic_string<char>]':
Unicode.cc:217:58: required from here
Unicode.cc:103:23: error: invalid conversion from 'char**' to 'const
char**' [-fpermissive]
size_t l = iconv(cd, &inp, &in_bytes, &outp, &out_bytes);
^
In file included from Unicode.cc:30:0:
/opt/local/include/iconv.h:82:15: note: initializing argument 2 of
'size_t libiconv(libiconv_t, const char**, size_t*, char**, size_t*)'
extern size_t iconv (iconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
^
make[2]: *** [Unicode.lo] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_tarballs_ports_x11_blackbox/blackbox/work/blackbox-0.75/lib'
make[1]: *** [all-recursive] Error 1
}}}
I do not understand C++. The preprocessor produces:
{{{
# 63 "/opt/local/include/iconv.h" 3
extern "C" {
#define iconv_open libiconv_open
extern libiconv_t libiconv_open (const char* tocode, const char*
fromcode);
#define iconv libiconv
extern size_t libiconv (libiconv_t cd, const char* * inbuf, size_t
*inbytesleft, char* * outbuf, size_t *outbytesleft);
#define iconv_close libiconv_close
extern int libiconv_close (libiconv_t cd);
}
# 114 "/opt/local/include/iconv.h" 3
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59121>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list