[MacPorts] #17602: strigi: invalid conversion from 'const char**' to 'char**'
MacPorts
noreply at macports.org
Tue Aug 18 11:32:47 PDT 2009
#17602: strigi: invalid conversion from 'const char**' to 'char**'
--------------------------------------+-------------------------------------
Reporter: ryandesign@… | Owner: clubjuggler@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 1.7.0
Resolution: | Keywords:
Port: strigi |
--------------------------------------+-------------------------------------
Comment(by etphipp@…):
I am getting the same build error with 0.6.3 and believe the trouble is
cmake's configure of strigi is picking up the system libiconv (which has
const char** as the second argument to libiconv()):
$ grep ICONV CMakeCache.txt
ICONV_INCLUDE_DIR:PATH=/Library/Frameworks/libiconv.framework/Headers
ICONV_LIBRARIES:FILEPATH=/Library/Frameworks/libiconv.framework
//Advanced flag for variable: ICONV_INCLUDE_DIR
ICONV_INCLUDE_DIR-ADVANCED:INTERNAL=1
//Advanced flag for variable: ICONV_LIBRARIES
ICONV_LIBRARIES-ADVANCED:INTERNAL=1
//Advanced flag for variable: ICONV_SECOND_ARGUMENT_IS_CONST
ICONV_SECOND_ARGUMENT_IS_CONST-ADVANCED:INTERNAL=1
//Test ICONV_SECOND_ARGUMENT_IS_CONST
ICONV_SECOND_ARGUMENT_IS_CONST:INTERNAL=1
However the build of strigi is trying to pull in the header from
/opt/local/include (where the second argument to libiconv() is char**). A
solution is to override the path to libiconv in the cmake configure:
configure.args-append -DICONV_INCLUDE_DIR:PATH=/opt/local/include
configure.args-append
-DICONV_LIBRARIES:FILEPATH=/opt/local/lib/libiconv.dylib
configure.args-append
-DLIBXML2_INCLUDE_DIR:PATH=/opt/local/include/libxml2
configure.args-append
-DLIBXML2_LIBRARIES:FILEPATH=/opt/local/lib/libxml2.dylib
The last two fix a similar error that crops up later regarding libxml2.
With these changes, 0.6.3 now builds on my machine. A diff of the
portfile is attached.
--
Ticket URL: <http://trac.macports.org/ticket/17602#comment:13>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list