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-01-29 13:42:36

stealth82
Member
Registered: 2008-03-29
Posts: 14

Could someone help me to compile FreePOPs?

I'm sorry but I'm not so acquainted with linux compiling etc. To be honest I don't know nothing...

But, I would like to compile this software and run it on my DNS-323: http://sourceforge.net/projects/freepop … z/download

I tried to compile it by myself but now I'm stuck:

Code:

+ info '  configure.sh ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9
+ . /mnt/HD_a2/ffpbuildenv/source/freepops/configure.sh
++ LUAEXPAT=luaexpat
++ LUACURL=luacurl
++ LUALUA=lua
++ LUAFILESYSTEM=luafilesystem
++ LUASOCKET=luasocket
++ PKGCONFIG=pkg-config
++ test freepops = help
++ test -e config
++ case $1 in
++ set_arm
++ set_default
++ CC='distcc gcc'
++ CXX='distcc g++'
++ LD=ld
++ AR=ar
++ STRIP=strip
++ RANLIB=ranlib
++ HCC='distcc gcc'
++ HLD=ld
++ HAR=ar
++ HSTRIP=strip
++ HRANLIB=ranlib
++ EXEEXTENSION=
++ STATICEXTENSION=.a
++ SHAREDEXTENSION=.so
++ CFLAGS='-O2 -pipe -DHAVE_CONFIG_H -I/mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9'
++ HCFLAGS='-O2 -pipe -DHAVE_CONFIG_H -I/mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9'
++ LDFLAGS=' -Wl,-rpath -Wl,/ffp/lib'
++ HLDFLAGS=' -Wl,-rpath -Wl,/ffp/lib'
++ WINDRES=windres
++ WINDMC=windmc
++ DLLTOOL=dlltool
++ MAKE=make
++ WHERE=/usr/local/
++ LOCALEDIR=/usr/local/share/locale
++ TAR=tar
++ PATCH=patch
++ SSL=openssl
++ FLTKUI=
++ FLTKCFLAGS=
++ FLTKLDFLAGS=
++ MACHOARCH=
++ LUAFLAGS=
++ OSX_SDK=
++ WHERE=/ffp/
++ LOCALEDIR=/ffp/share/locale
++ OS=Linux
++ LUAFLAGS=' -DLUA_USE_LINUX '
++ shift
++ '[' '!' -z '' ']'
++ cat
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/freepops/make.sh ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9/Makefile -o -r /mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9/makefile ']'
+ info '  make ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/freepops-0.2.9/freepops-0.2.9
+ make
Targets are:
  all          - build it (remember to ./configure.sh first)
  clean        - clean the source tree
  distclean    - remove also the dist-* distributions
  realclean    - clean and be ready for building to another arch
  doc          - create developers documentation
  manual       - create user/developers manual
  install      - install it (linux/unix distribution independent)
  uninstall    - uninstall it (linux/unix distribution independent)
  buildfactory - build all distributions

Default is all
building lua
 building liblua5.1... done.
building luasocket
 building luasocket... distcc[10025] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[10025] Warning: failed to distribute usocket.c to 127.0.0.1, running locally instead
done.
building luay
 building dep for luay.c
 compiling luay.c -> distcc[10097] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
luay.o
 linking libluay.a
building luabind
 building dep for luabind.c
 compiling luabind.c -> distcc[10204] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
luabind.o
 linking libluabind.a
building oscompatibility
 building dep for win32_compatibility.c
 building dep for c99_compatibility.c
 building dep for beos_compatibility.c
 compiling beos_compatibility.c -> distcc[10318] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
beos_compatibility.o
 compiling c99_compatibility.c -> distcc[10324] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
c99_compatibility.o
 compiling win32_compatibility.c -> distcc[10330] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
win32_compatibility.o
 linking liboscompatibility.a
building regularexp
 building dep for regularexp.c
 compiling regularexp.c -> distcc[10434] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
regularexp.o
 linking libregularexp.a
building log
 building dep for log.c
 compiling log.c -> distcc[10541] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
log.o
 linking liblog.a
building base64
 building dep for base64.c
 compiling base64.c -> distcc[10645] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
base64.o
 linking libbase64.a
building list
 building dep for list.c
 compiling list.c -> distcc[10749] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
list.o
 linking liblist.a
building mlex
 building dep for mlex.c
 compiling mlex.c -> distcc[10853] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
mlex.o
 linking libmlex.a
building pid
 building dep for pid.c
 compiling pid.c -> distcc[10966] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
pid.o
 linking libpid.a
building lock
 building dep for lock.c
 compiling lock.c -> distcc[11070] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
lock.o
 linking liblock.a
building dictionary
 building dep for dictionary.c
 compiling dictionary.c -> distcc[11174] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
dictionary.o
 linking libdictionary.a
building stats_lua
 building dep for stats_lua.c
 compiling stats_lua.c -> distcc[11281] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
stats_lua.o
 linking libstats_lua.a
building session
 building dep for session.c
 compiling session.c -> distcc[11385] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
session.o
 linking libsession.a
building portablesocket
 building dep for socketcommon.c
 building dep for altsocklib.c
 compiling altsocklib.c -> distcc[11494] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
altsocklib.o
 compiling socketcommon.c -> distcc[11503] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
socketcommon.o
 linking libportablesocket.a
building pop3server
 building dep for threads.c
 building dep for popstate.c
 building dep for popserver.c
 compiling popserver.c -> distcc[11619] ERROR: nonblocking connect to 127.0.0.1:3632 failed: Connection refused
distcc[11619] Warning: failed to distribute popserver.c to 127.0.0.1, running locally instead
popserver.o
 compiling popstate.c -> distcc[11630] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
popstate.o
 compiling threads.c -> distcc[11636] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
threads.o
 linking libpop3server.a
building pop3server_lua
 building dep for pop3server_lua.c
 compiling pop3server_lua.c -> distcc[11740] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
pop3server_lua.o
 linking libpop3server_lua.a
building session_lua
 building dep for session_lua.c
 compiling session_lua.c -> distcc[11844] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
session_lua.o
 linking libsession_lua.a
building serialize_lua
building log_lua
 building dep for log_lua.c
 compiling log_lua.c -> distcc[12018] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
log_lua.o
 linking liblog_lua.a
building mlex_lua
 building dep for mlex_lua.c
 compiling mlex_lua.c -> distcc[12122] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
mlex_lua.o
 linking libmlex_lua.a
building support_lua
building getdate
 compiling getdate.y -> getdate.o
make[4]: *** [libgetdate.a] Broken pipe
make[3]: *** [all] Error 2
building freepopsd
 building dep for luabox.c
luabox.c:29:28: error: stringhack_lua.h: No such file or directory
luabox.c:31:22: error: lua-curl.h: No such file or directory
luabox.c:32:25: error: getdate_lua.h: No such file or directory
luabox.c:34:24: error: base64_lua.h: No such file or directory
luabox.c:35:28: error: regularexp_lua.h: No such file or directory
luabox.c:36:20: error: lxplib.h: No such file or directory
luabox.c:37:24: error: crypto_lua.h: No such file or directory
luabox.c:38:17: error: lfs.h: No such file or directory
luabox.c:39:23: error: dpipe_lua.h: No such file or directory
luabox.c:41:18: error: lwel.h: No such file or directory
luabox.c:42:22: error: lgettext.h: No such file or directory
distcc[12281] ERROR: compile (null) on localhost failed
 building dep for freepops.c
 building dep for engine.c
 compiling engine.c -> distcc[12319] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
engine.o
 compiling freepops.c -> distcc[12330] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
freepops.o
 compiling luabox.c -> distcc[12338] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
luabox.c:29:28: error: stringhack_lua.h: No such file or directory
luabox.c:31:22: error: lua-curl.h: No such file or directory
luabox.c:32:25: error: getdate_lua.h: No such file or directory
luabox.c:34:24: error: base64_lua.h: No such file or directory
luabox.c:35:28: error: regularexp_lua.h: No such file or directory
luabox.c:36:20: error: lxplib.h: No such file or directory
luabox.c:37:24: error: crypto_lua.h: No such file or directory
luabox.c:38:17: error: lfs.h: No such file or directory
luabox.c:39:23: error: dpipe_lua.h: No such file or directory
luabox.c:41:18: error: lwel.h: No such file or directory
luabox.c:42:22: error: lgettext.h: No such file or directory
luabox.c:55: error: 'luaopen_stringhack' undeclared here (not in a function)
luabox.c:57: error: 'luaopen_curl' undeclared here (not in a function)
luabox.c:59: error: 'luaopen_base64' undeclared here (not in a function)
luabox.c:60: error: 'luaopen_getdate' undeclared here (not in a function)
luabox.c:61: error: 'luaopen_regularexp' undeclared here (not in a function)
luabox.c:62: error: 'luaopen_lxp' undeclared here (not in a function)
luabox.c:64: error: 'luaopen_crypto' undeclared here (not in a function)
luabox.c:65: error: 'luaopen_lfs' undeclared here (not in a function)
luabox.c:66: error: 'luaopen_dpipe' undeclared here (not in a function)
luabox.c:68: error: 'luaopen_wel_core' undeclared here (not in a function)
luabox.c:69: error: 'luaopen_lgettext' undeclared here (not in a function)
distcc[12338] ERROR: compile luabox.c on localhost failed
make[2]: *** [luabox.o] Error 1
make[1]: *** [src] Error 2
make: *** [help] Error 2

I used a custom configure.sh in order to ovveride the default path and choose the right platform (put that in the ffpbuildenv/source)

Could someone tell me what is necessary in order to compile it?
Is lua package a requirement for that software?
I tried, also, to download and compile even that one but I got another error messege:

Code:

+ configure_args=
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/configure_args ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/configure.sh ']'
+ '[' -x /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/configure ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/make.sh ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/Makefile -o -r /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/makefile ']'
+ info '  make ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4
+ make
cd src && make linux
make[1]: Entering directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[2]: Entering directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldo.o ldo.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldump.o ldump.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lua.o lua.c
gcc -o lua  lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o luac.o luac.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o print.o print.c
gcc -o luac  luac.o print.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
make[2]: Leaving directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
make[1]: Leaving directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
+ '[' ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/destdir.sh ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/Makefile -o -r /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/makefile ']'
+ info '  destdir ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4
+ make DESTDIR=/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg install
cd src && mkdir -p /ffp/bin /ffp/include /ffp/lib /ffp/man/man1 /ffp/share/lua/5.1 /ffp/lib/lua/5.1
cd src && install -p -m 0755 lua luac /ffp/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp /ffp/include
cd src && install -p -m 0644 liblua.a /ffp/lib
cd doc && install -p -m 0644 lua.1 luac.1 /ffp/man/man1
++ find /mnt/HD_a2/ffpbuildenv/source/Conf.d -name 'destdir-*.sh'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh
+ info '  destdir-doinst.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh
++ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/doinst.sh ']'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh
+ info '  destdir-descr.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh
++ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/DESCR ']'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh
+ info '  destdir-start-files.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh
+++ find /mnt/HD_a2/ffpbuildenv/source/lua -maxdepth 1 -name 'start-*.sh'
+ for _f in '$X/destdir-*.sh'
+ '[' -r '/mnt/HD_a2/ffpbuildenv/source/lua/destdir-*.sh' ']'
+ for _f in '$CONFDIR/destdir-checks/*.sh'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh .sh
+ info '  destdir-checks: check_libs'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh
++ find . -type f -name '*.so*'
++ read f
+ for _f in '$CONFDIR/destdir-checks/*.sh'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh .sh
+ info '  destdir-checks: check_prefix'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh
++ test -d .//ffp
++ die '/ffp not found in package directory /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg'
++ cat
++ exit 1

Can somebody help me, please?

Offline

 

#2 2010-01-29 15:57:23

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Could someone help me to compile FreePOPs?

Code:

+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4
+ make DESTDIR=/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg install
cd src && mkdir -p /ffp/bin /ffp/include /ffp/lib /ffp/man/man1 /ffp/share/lua/5.1 /ffp/lib/lua/5.1
cd src && install -p -m 0755 lua luac /ffp/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.h

It doesn't install to the DESTDIR directory. You need to use a custom destdir.sh, too.

Offline

 

#3 2010-01-30 00:03:45

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Ok, now I think it should install in the right path. However, I get the same error under the check_prefix procedure:

Code:

+ configure_args=
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/configure_args ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/configure.sh ']'
+ '[' -x /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/configure ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/make.sh ']'
+ info '  make.sh ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4
+ . /mnt/HD_a2/ffpbuildenv/source/lua/make.sh
++ make linux
cd src && make linux
make[1]: Entering directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[2]: Entering directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lapi.o lapi.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lcode.o lcode.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldebug.o ldebug.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldo.o ldo.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldump.o ldump.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lfunc.o lfunc.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lgc.o lgc.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o llex.o llex.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lmem.o lmem.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lobject.o lobject.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lopcodes.o lopcodes.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lparser.o lparser.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstate.o lstate.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstring.o lstring.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltable.o ltable.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltm.o ltm.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lundump.o lundump.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lvm.o lvm.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lzio.o lzio.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lauxlib.o lauxlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lbaselib.o lbaselib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ldblib.o ldblib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o liolib.o liolib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lmathlib.o lmathlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o loslib.o loslib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o ltablib.o ltablib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lstrlib.o lstrlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o loadlib.o loadlib.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o linit.o linit.c
ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o lua.o lua.c
gcc -o lua  lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o luac.o luac.c
gcc -O2 -Wall -DLUA_USE_LINUX   -c -o print.o print.c
gcc -o luac  luac.o print.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
make[2]: Leaving directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
make[1]: Leaving directory `/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4/src'
+ '[' ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/destdir.sh ']'
+ info '  destdir.sh ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/lua-5.1.4
+ . /mnt/HD_a2/ffpbuildenv/source/lua/destdir.sh
++ make install INSTALL_TOP=/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg INSTALL_MAN=/mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/share/man/man1
cd src && mkdir -p /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/bin /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/include /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/lib /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/share/man/man1 /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/share/lua/5.1 /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/lib/lua/5.1
cd src && install -p -m 0755 lua luac /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/bin
cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/include
cd src && install -p -m 0644 liblua.a /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/lib
cd doc && install -p -m 0644 lua.1 luac.1 /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg/share/man/man1
++ find /mnt/HD_a2/ffpbuildenv/source/Conf.d -name 'destdir-*.sh'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh
+ info '  destdir-doinst.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-doinst.sh
++ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/doinst.sh ']'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh
+ info '  destdir-descr.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-descr.sh
++ '[' -r /mnt/HD_a2/ffpbuildenv/source/lua/DESCR ']'
+ for _f in '$(find $CONFDIR -name destdir-\*.sh)'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh
+ info '  destdir-start-files.sh'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-start-files.sh
+++ find /mnt/HD_a2/ffpbuildenv/source/lua -maxdepth 1 -name 'start-*.sh'
+ for _f in '$X/destdir-*.sh'
+ '[' -r '/mnt/HD_a2/ffpbuildenv/source/lua/destdir-*.sh' ']'
+ for _f in '$CONFDIR/destdir-checks/*.sh'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh .sh
+ info '  destdir-checks: check_libs'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_libs.sh
++ find . -type f -name '*.so*'
++ read f
+ for _f in '$CONFDIR/destdir-checks/*.sh'
+ '[' -x /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh ']'
++ basename /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh .sh
+ info '  destdir-checks: check_prefix'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
+ . /mnt/HD_a2/ffpbuildenv/source/Conf.d/destdir-checks/check_prefix.sh
++ test -d .//ffp
++ die '/ffp not found in package directory /mnt/HD_a2/ffpbuildenv/work/lua-5.1.4/pkg
++ cat
++ exit 1

Under the source directory I have the make.sh

Code:

make linux

and the destdir.sh

Code:

make install INSTALL_TOP=$D INSTALL_MAN=$D/share/man/man1

What am I missing?

FYI I launched the command sh chroot.sh before of compiling it.

Last edited by stealth82 (2010-01-30 00:05:57)

Offline

 

#4 2010-01-30 00:14:21

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

OK, now I understood. ffp/ prefix was missing from INSTALL_TOP.

Anyway. Are they a problem the two warnings?

Code:

sh-3.2# ./Make.sh lua
* lua-5.1.4-1
  config.site found
  unpack lua-5.1.4.tar.gz ...
  make.sh ...
  destdir.sh ...
  destdir-doinst.sh
  destdir-descr.sh
  destdir-start-files.sh
  destdir-checks: check_libs
  destdir-checks: check_prefix
  destdir-checks: check_rpath
WARNING: ./ffp/bin/lua: No RPATH
WARNING: ./ffp/bin/luac: No RPATH
  destdir-checks: fix_libtool
  strip ...
  package ...
  OK

Offline

 

#5 2010-01-30 01:29:15

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Ok, never mind, problem solved for LUA

Offline

 

#6 2010-01-30 13:32:06

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Well, no luck. I get the same log. I don't know what I should do in order to compile it...

Under Debian I got no problems. It seems that some package is different starting from this error:

Code:

building getdate
 compiling getdate.y -> getdate.o
make[4]: *** [libgetdate.a] Broken pipe
make[3]: *** [all] Error 2

Last edited by stealth82 (2010-01-30 18:42:07)

Offline

 

#7 2010-02-01 13:42:04

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Ok, I made a little step further.

I noticed that the bison package version provided by fonz was a bit old - 2.3.3.
So, I downloaded and recompiled the latest version - 2.4.1 - and the above problem, at that point, is disappeared.

Now I'm getting a new error:

Code:

building lgettext
 building dep for lgettext.c
 compiling lgettext.c -> distcc[28921] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
lgettext.c:4:21: error: libintl.h: No such file or directory
lgettext.c: In function 'lua_gettext_translate':
lgettext.c:18: warning: incompatible implicit declaration of built-in function 'gettext'
distcc[28921] ERROR: compile lgettext.c on localhost failed
make[2]: *** [lgettext.o] Error 1
building freepopsd
 building dep for luabox.c
luabox.c:42:22: error: lgettext.h: No such file or directory
distcc[28945] ERROR: compile (null) on localhost failed
 building dep for freepops.c
 building dep for engine.c
 compiling engine.c -> distcc[28977] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
engine.o
 compiling freepops.c -> distcc[28995] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
freepops.o
 compiling luabox.c -> distcc[29007] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
luabox.c:42:22: error: lgettext.h: No such file or directory
luabox.c:69: error: 'luaopen_lgettext' undeclared here (not in a function)
distcc[29007] ERROR: compile luabox.c on localhost failed
make[1]: *** [luabox.o] Error 1
make: *** [src] Error 2

The challenge keeps going on...

Last edited by stealth82 (2010-02-01 13:42:38)

Offline

 

#8 2010-02-01 14:52:13

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Mh, I found this post of fonz saying that there is no libintl.h in the ffp package: http://dns323.kood.org/forum/viewtopic. … 256#p18256

Obviously, the --disable-nls flag hint doesn't apply to freepops package. What can I do?

Offline

 

#9 2010-02-01 15:18:21

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Ok, it's me again...

Sorry to bother you but I would like to know why libintl.h is excluded from package uclibc because I explored the original package and the file is there. However there are many patches applied by fonz to the package, most of them I don't understand and, maybe, I was thinking there are some problem to keep the package as it is under the NAS ARM platform. So, for what obscure reason, is libintl.h excluded?

Last edited by stealth82 (2010-02-01 15:21:25)

Offline

 

#10 2010-02-02 14:07:13

stealth82
Member
Registered: 2008-03-29
Posts: 14

Re: Could someone help me to compile FreePOPs?

Ok, it's me for the final time.

I did it! I found a better equipped gettext package here - posted yesterday ( O.O ). Uninstalled the fonz's one and installed the new one.
Added to LDFLAGS -libintl and that did the trick.

Thank you to all community. Without the others' posts I wouldn't be ever able to compile freepops!

Last edited by stealth82 (2010-02-02 14:08:08)

Offline

 

#11 2010-02-02 19:48:55

marek.koszalin
Member
Registered: 2009-12-31
Posts: 34

Re: Could someone help me to compile FreePOPs?

No problem. See you sometimes on my site: http://darkscusader.gotdns.org smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB