[OTR-dev] Compile error on FreeBSD 9
Ian Goldberg
ian at cypherpunks.ca
Thu Sep 6 13:57:06 EDT 2012
On Thu, Sep 06, 2012 at 10:15:38AM -0400, Alex wrote:
> Hi. I am trying to compile pidgin-otr from git revision 63c490e3 on
> FreeBSD 9 using gcc 4.2.1 (and 4.6.4), and I am getting the following
> error:
>
> gtk-ui.c:80: error: initializer element is not constant
> gtk-ui.c:80: error: (near initialization for 'trust_states[0]')
> gtk-ui.c:81: error: initializer element is not constant
> gtk-ui.c:81: error: (near initialization for 'trust_states[1]')
> gtk-ui.c:82: error: initializer element is not constant
> gtk-ui.c:82: error: (near initialization for 'trust_states[2]')
> gtk-ui.c:84: error: initializer element is not constant
> gtk-ui.c:84: error: (near initialization for 'trust_states[3]')
>
> The command that was executed is as follows:
>
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/local/include
> -I/usr/local/include -I/usr/local/include/pidgin
> -I/usr/local/include/gtk-2.0 -I/usr/local/include/gio-unix-2.0/
> -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo
> -I/usr/local/include/pixman-1 -I/usr/local/include/drm -D_THREAD_SAFE
> -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng15
> -I/usr/local/include/pango-1.0 -D_REENTRANT
> -I/usr/local/include/freetype2 -I/usr/local/include
> -I/usr/local/include/libpurple -I/usr/local/include/glib-2.0
> -DUSING_GTK -DPURPLE_PLUGINS -DPIDGIN_OTR_VERSION=\"4.0.0\"
> -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -I/usr/local/include
> -D_FORTIFY_SOURCE=2 -fstack-protector-all -Wstack-protector -fwrapv
> --param ssp-buffer-size=1 -fno-strict-overflow -Wall -Wextra
> -Wno-unused-parameter -Wno-missing-field-initializers -Wformat-security
> -MT gtk-ui.lo -MD -MP -MF .deps/gtk-ui.Tpo -c gtk-ui.c -fPIC -DPIC
> -o .libs/gtk-ui.o
>
> Does anyone know what I might be doing wrong?
Those lines are translatable strings marked N_(), so it sounds like you
don't have i18n (libintl) set up properly?
- Ian
More information about the OTR-dev
mailing list