DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-04-04 20:22:25

Breezer
New member
Registered: 2010-04-04
Posts: 2

compiling weechat on dns doesn't work

Hello,

Situation:

I have installed FFP version 0.5 on my DNS-323. I installed everything on the following page (http://www.inreto.de/dns323/fun-plug/0.5/packages/ )
I have also installed some additional packages from http://www.inreto.de/dns323/fun-plug/0. … kages/All/ (like the libs / perl and PHP).

Problem:

I tried to install the latest version of weechat (0.3.1.1) on the DNS-323 using the ./configure ; make ; make install commands. The preferred way of doing this is by using the cmake command but I couldn't find a package for this for my NAS so I don't think this is available.

The first problem I have encountered when launching the command "./configure --prefix=/mnt/HD_a2/weechatv2" and afterwards the make command was the following error:

./relocatable.c: In function 'libintl_relocate':
./relocatable.c:423: error: 'INSTALLPREFIX' undeclared (first use in this function)
./relocatable.c:423: error: (Each undeclared identifier is reported only once
./relocatable.c:423: error: for each function it appears in.)
make[2]: *** [relocatable.lo] Error 1
make[2]: Leaving directory `/mnt/HD_a2/weechat_inst/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/HD_a2/weechat_inst'
make: *** [all] Error 2

I added the prefix do define the installation path but apparantly weechat had troubles with that. I also tried it with "EXPORT INSTALLPREFIX=/mnt/HD_a2/weechat" but this didn't work either. I then changed the line in the file that gave the problem and hard coded the installprefix with the correct path. That seemed to work so I considered this problem as "fixed" (I mention it here so you guys can have the complete story smile )

The second problem that I have now (and the most blocking one). When doing the make command, it gives back the following error:

libtool: compile:  gcc -c -DLOCALEDIR=\"/mnt/HD_a2/weechatv2/share/locale\" -DLOCALE_ALIAS_PATH=\"/mnt/HD_a2/weechatv2/share/loc                             ale\" -DLIBDIR=\"/mnt/HD_a2/weechatv2/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -                             DINSTALLDIR=\"/mnt/HD_a2/weechatv2/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_r                             elocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -W -Werror-implicit-function-declaration -pipe -O2 -D_LARGEFI                             LE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1.1\" -fvisibility=hidden ./lock.c  -fPIC                              -DPIC -o .libs/lock.o
libtool: compile:  gcc -c -DLOCALEDIR=\"/mnt/HD_a2/weechatv2/share/locale\" -DLOCALE_ALIAS_PATH=\"/mnt/HD_a2/weechatv2/share/loc                             ale\" -DLIBDIR=\"/mnt/HD_a2/weechatv2/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -                             DINSTALLDIR=\"/mnt/HD_a2/weechatv2/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_r                             elocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -W -Werror-implicit-function-declaration -pipe -O2 -D_LARGEFI                             LE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1.1\" -fvisibility=hidden ./lock.c -o lock                             .o >/dev/null 2>&1
/bin/sh ../libtool --mode=compile gcc -c -DLOCALEDIR=\"/mnt/HD_a2/weechatv2/share/locale\" -DLOCALE_ALIAS_PATH=\"/mnt/HD_a2/weec                             hatv2/share/locale\" -DLIBDIR=\"/mnt/HD_a2/weechatv2/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1                              -DIN_LIBRARY -DINSTALLDIR=\"/mnt/HD_a2/weechatv2/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drel                             ocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I..  -Wall -W -Werror-implicit-function-declaration -pip                             e -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1.1\" -fvisibility=hidden                               ./relocatable.c
libtool: compile:  gcc -c -DLOCALEDIR=\"/mnt/HD_a2/weechatv2/share/locale\" -DLOCALE_ALIAS_PATH=\"/mnt/HD_a2/weechatv2/share/loc                             ale\" -DLIBDIR=\"/mnt/HD_a2/weechatv2/lib\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -                             DINSTALLDIR=\"/mnt/HD_a2/weechatv2/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_r                             elocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -Wall -W -Werror-implicit-function-declaration -pipe -O2 -D_LARGEFI                             LE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -g -O0 -DWEECHAT_VERSION=\"0.3.1.1\" -fvisibility=hidden ./relocatable.c                               -fPIC -DPIC -o .libs/relocatable.o
./relocatable.c: In function 'libintl_relocate':
./relocatable.c:423: error: expected expression before '/' token
make[2]: *** [relocatable.lo] Error 1
make[2]: Leaving directory `/mnt/HD_a2/weechat_inst/intl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/HD_a2/weechat_inst'
make: *** [all] Error 2

I asked a friend who knows a lot of Linux to have a look and he couldn't find it either. He said, try this:

./configure --disable-nls

After this, weechat was build. But with the following problems:

- I can't use special characters like é and à and è. When pressing that character, it says "??" This is really unhandy since I live in a country which uses a lot of these characters!
- My numpad seems not to work.

Does anyone has an idea how I can compile weechat correctly on my NAS?

Thanks in advance! If you need additional information, please say so.

Offline

 

#2 2010-04-05 19:18:15

Electrocut
Member
From: France
Registered: 2009-04-05
Posts: 195

Re: compiling weechat on dns doesn't work

Hi !

The easiest way to build applications from source, for DNS, is to use scripts available though svn. Information is here: http://www.inreto.de/dns323/fun-plug/0.5/README.txt

This way, you will be able to build your own *.tgz ffp package, for weechat, without having to care about install prefix, lib prefix, and so on...

- I can't use special characters like é and à and è. When pressing that character, it says "??" This is really unhandy since I live in a country which uses a lot of these characters!
- My numpad seems not to work.

Just to try, I've build Weechat ffp package, with default configure options.
And the result is the same, for special characters é à è ... it says "??" for me too. Maybe there is something to setup in weechat, about charset ?


DNS-313

Offline

 

#3 2010-04-07 11:56:50

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: compiling weechat on dns doesn't work

Wolf's repository contains a gettext package that also includes libintl (which fonz' package doesn't).
http://ffp.wolf-u.li/additional/sys-dev … 0.17-4.tgz

I haven't tried it, but I would assume that once you install this and then rerun configure on weechat, it'll ignore its own intl folder and use the existing library instead. This should get rid of the error message you got, and also provide support for special characters.

Let me know how it goes.

Offline

 

#4 2010-04-13 18:54:36

Breezer
New member
Registered: 2010-04-04
Posts: 2

Re: compiling weechat on dns doesn't work

Hello KyleK,

Sorry for the late answer but I have been busy lately so I didn't had the time to test it before. I installed the new package and now weechat compiles without any problems.

I however still have the problem that special characters don't work. They apparently don't work any more within the /ffp/bin/bash shell (in the /ffp/bin/sh they still work). I already saw a difference in weechat. In stead of putting 2 questions marks when pressing a special character, I now only have one question mark! smile

I'm now looking into that (playing around with the encoding options, in both the shell and weechat).

Greetings and already thanks for the help! It took me already one step further.

Offline

 

#5 2010-04-17 11:15:49

qu1j0t3
New member
Registered: 2010-04-17
Posts: 1

Re: compiling weechat on dns doesn't work

Breezer:

It looks like on relocatable.c line 423 you did something like:
     

Code:

const char *orig_installprefix = /usr/local;  // this cannot compile - missing string delimiters

To fix the original compile issue, it is enough (on my OS X system, at least) to make change as follows:
     

Code:

const char *orig_installprefix = PREFIX;

Then you shouldn't need the --disable-nls (which presumably omits compilation of this file).

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB