Stable: 2.5.2
Development: 2.6-alpha3
anybody got an ide on how to compile the MOC on OpenBSD
error:
# make
make all-recursive
Making all in themes
cd .. && /bin/sh ./config.status themes/Makefile
config.status: creating themes/Makefile
Making all in decoder_plugins
cd .. && /bin/sh ./config.status decoder_plugins/Makefile
config.status: creating decoder_plugins/Makefile
if gcc -DHAVE_CONFIG_H -I. -I. -I. -DSYSTEM_THEMES_DIR=\"/usr/local/share/moc/themes\" -DPLUGIN_DIR=\"/usr/local/lib/moc/decoder_plugins\" -pthread -g -O2 -Wall -W -I/usr/local/include -MT utf8.o -MD -MP -MF ".deps/utf8.Tpo" -c -o utf8.o utf8.c; then mv -f ".deps/utf8.Tpo" ".deps/utf8.Po"; else rm -f ".deps/utf8.Tpo"; exit 1; fi
utf8.c:85: error: syntax error before "desc"
utf8.c:86: warning: return type defaults to `int'
utf8.c: In function `iconv_str':
utf8.c:137: error: `str' undeclared (first use in this function)
utf8.c:137: error: (Each undeclared identifier is reported only once
utf8.c:137: error: for each function it appears in.)
utf8.c:137: warning: return from incompatible pointer type
utf8.c: In function `xwaddstr':
utf8.c:148: error: `iconv_desc' undeclared (first use in this function)
utf8.c:148: warning: initialization from incompatible pointer type
utf8.c: In function `xwaddnstr':
utf8.c:254: error: `iconv_desc' undeclared (first use in this function)
utf8.c:254: warning: initialization from incompatible pointer type
utf8.c: In function `xmvwaddstr':
utf8.c:270: error: `iconv_desc' undeclared (first use in this function)
utf8.c:270: warning: initialization from incompatible pointer type
utf8.c: In function `xmvwaddnstr':
utf8.c:287: error: `iconv_desc' undeclared (first use in this function)
utf8.c:287: warning: initialization from incompatible pointer type
utf8.c: In function `xwprintw':
utf8.c:310: error: `iconv_desc' undeclared (first use in this function)
utf8.c:310: warning: initialization from incompatible pointer type
*** Error code 1
Stop in /home/senilix/audio/moc-2.4.1.
*** Error code 1
Stop in /home/senilix/audio/moc-2.4.1 (line 590 of Makefile).
*** Error code 1
Stop in /home/senilix/audio/moc-2.4.1 (line 340 of Makefile).
daper
Tue, 2006-11-07 19:21
Permalink
I don't use OpenBSD and
I don't use OpenBSD and don't have such box at the moment, but from what I found, you may try to install libiconv package and compile with:
./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include
--
Damian Pietras - MOC developer
devin
Thu, 2006-11-16 07:23
Permalink
The configure script above
The configure script below does indeed fix the problem (tested with OpenBSD 4.0 and moc version 2.4.1) assuming libiconv is actually installed.
Thanks :)