Stephen Galbraith <stephenjgalbraith <at> googlemail.com> writes:

> 
> I've been trying to install mediatomb via fink, 
> but get a compile error...
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../tombupnp/upnp/inc  
>  -DXP_UNIX=1 -I/sw/include -I../src -I../tombupnp/ixml/inc
>  -I../tombupnp/threadutil/inc -I../tombupnp/upnp/inc -I..
>   -I/sw/include/js        
> -D_THREAD_SAFE   -g -O2 -c -o libmediatomb_a-string_converter.o 
> `test -f '../src/string_converter.cc' 
> || echo './'`../src/string_converter.cc
> ../src/string_converter.cc: 
> In member function 
> 'zmm::String StringConverter::_convert(zmm::String, bool, size_t*)':
> ../src/string_converter.cc:135: error:
>  invalid conversion from 'const char**' to 'char**'
> ../src/string_converter.cc:135: error:   
> initializing argument 2 of 'size_t libiconv(void*, char**, size_t*, 
> char**, size_t*)'
> make[2]: *** [libmediatomb_a-string_converter.o] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> ### execution of make failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> 
> any ideas. (I guess a missing cast in the source?)
> 
> Help please!
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 



I forgot to say, I'm using lepoard 10.5.1 with the xcode tools installed.
 I guess the issue is the iconv call and I'm being included in the 
if defined(HAVE_LIBICONV) || defined(SOLARIS) when the else block is 
the one I want, but don't know.

#if defined(HAVE_LIBICONV) || defined(SOLARIS)
    ret = iconv(cd, (const char**)input_ptr, &input_bytes,
            output_ptr, &output_bytes);
#else
    ret = iconv(cd, input_ptr, &input_bytes,
            output_ptr, &output_bytes);
#endif




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to