[OTR-dev] osx "__" undefined symbol

cyphunk at gmail.com cyphunk at gmail.com
Wed Jan 23 07:40:44 EST 2013


to expand on this slightly the entire build from pidgin source to OTR was:

Download pidgin src, libotr and pidgin-otr. Download enchant and
gtkspell. For those i used the following versions because I was still on
gtk2 (via macports but you could use homebrew):
http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz
http://gtkspell.sourceforge.net/download/gtkspell-2.0.16.tar.gz

Echant
./configure --prefix=/opt/local
make && sudo make install

GTKSpell
./configure --prefix=/opt/local
make && sudo make install

PIDGIN
export prefix=/opt/local
./configure --prefix=${prefix} --disable-avahi \
--disable-consoleui --disable-farsight --disable-gstreamer \
--disable-meanwhile --disable-nm --disable-screensaver \
--disable-sm --disable-gestures  \
--disable-startup-notification --disable-schemas-install \
--disable-vv --enable-nss --mandir=${prefix}/share/man \
--with-nspr-includes=${prefix}/include/nspr \
--with-nspr-libs=${prefix}/lib/nspr \
--with-nss-includes=${prefix}/include/nss \
--with-nss-libs=${prefix}/lib/nss \
--disable-dependency-tracking \
--with-dbus-services=${prefix}/share/dbus-1/services/
your mileage may vary
make && sudo make install

OTR
./configure --prefix=/opt/local
make && sudo make install

PIDGIN-OTR
patch
<cut+paste Ian's patch>
./configure --prefix=/opt/local --with-libotr-inc-prefix=/opt/local/include/
make && sudo make install

On 23/01/2013 13:21, cyphunk at gmail.com wrote:
> Ian the patch worked, thanks! shame we didnt get a chance to meet at
> ECRYPT last year.
>
> For anyone interested, this worked with
>  OSX 10.7.5
>  Pidgin 2.10.6
>  libotr 4.0.0
>  pidgin-otr 4.0.0
>
> On 18/01/2013 12:54, Ian Goldberg wrote:
>> diff --git a/ChangeLog b/ChangeLog
>> index d32958e..74fad13 100644
>> --- a/ChangeLog
>> +++ b/ChangeLog
>> @@ -1,3 +1,11 @@
>> +2012-09-06
>> +
>> +	* gtk-dialog.c:
>> +	* gtk-ui.c:
>> +	* ui.c:
>> +	* otr-plugin.c: Compile correctly even if i18n (libintl/gettext)
>> +	is not available.
>> +
>>  2012-09-04
>>  
>>  	* README: Release 4.0.0
>> diff --git a/gtk-dialog.c b/gtk-dialog.c
>> index 725c78c..f9af2da 100644
>> --- a/gtk-dialog.c
>> +++ b/gtk-dialog.c
>> @@ -48,6 +48,9 @@
>>  #ifdef ENABLE_NLS
>>  /* internationalisation headers */
>>  #include <glib/gi18n-lib.h>
>> +#else
>> +#define _(x) (x)
>> +#define N_(x) (x)
>>  #endif
>>  
>>  /* libotr headers */
>> diff --git a/gtk-ui.c b/gtk-ui.c
>> index 80261e7..00c337f 100644
>> --- a/gtk-ui.c
>> +++ b/gtk-ui.c
>> @@ -42,6 +42,9 @@
>>  #ifdef ENABLE_NLS
>>  /* internationalisation header */
>>  #include <glib/gi18n-lib.h>
>> +#else
>> +#define _(x) (x)
>> +#define N_(x) (x)
>>  #endif
>>  
>>  /* purple-otr headers */
>> diff --git a/otr-plugin.c b/otr-plugin.c
>> index bec8dd0..d455ca8 100644
>> --- a/otr-plugin.c
>> +++ b/otr-plugin.c
>> @@ -56,6 +56,11 @@
>>  /* internationalisation header */
>>  #include <glib/gi18n-lib.h>
>>  
>> +#else /* ENABLE_NLS */
>> +
>> +#define _(x) (x)
>> +#define N_(x) (x)
>> +
>>  #endif /* ENABLE_NLS */
>>  
>>  /* libotr headers */
>> diff --git a/ui.c b/ui.c
>> index d47ab1e..2885e99 100644
>> --- a/ui.c
>> +++ b/ui.c
>> @@ -34,6 +34,9 @@
>>  #ifdef ENABLE_NLS
>>  /* internationalisation header */
>>  #include <glib/gi18n-lib.h>
>> +#else
>> +#define _(x) (x)
>> +#define N_(x) (x)
>>  #endif
>>  
>>  /* libotr headers */
>





More information about the OTR-dev mailing list