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 2008-02-14 23:32:15

Clevelus
New member
Registered: 2008-02-14
Posts: 1

MONO + lighttp

Hello, has anyone compiled the mono (with lighttp) for dns-323? What would it take to get it up and running?

P.S. lighttp is ready for use mono

Offline

 

#2 2008-10-19 04:44:36

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

I'm also looking for that.  Seems like Mono can be used with lighttpd and FastCGI modules.  Does anyone know how to ad support to Mono? Or do we need to compile lighttpd from source with support for mono?

I found this link in the lines of what are looking for but its not specifcially for the DNS-323.

http://www.mono-project.com/FastCGI_Lighttpd

Offline

 

#3 2008-10-19 04:46:26

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

Apparently the module is called fastcgi-mono-server.  Anyone willing to tackle this for the compile-from-source challenged crowd?

Last edited by jdawg9 (2008-10-19 04:47:22)

Offline

 

#4 2008-10-26 05:49:29

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

I can edit the lighttpd.conf files on my own.  But I'm stuck on installing the fastcgi-mono-server

Installation Instructions

Installation is done using GNU Autoconf. You simply have to fetch the package from Subversion and use the standard commands as shown below. Adjust the "--prefix" to your preferred installation path.

svn co http://mono-soc-2007.googlecode.com/svn … n/FastCgi/ fastcgi-mono-server
cd fastcgi-mono-server
./autogen.sh --prefix=/usr && make && sudo make install

The command complains about missing autoconf & automake (both are installed in /ffp/bin/ (fonz's packages)) I have firmware 1.5 and ffp 0.5

Here is the exact error msg
**Error**: You must have `automake' installed to compile Mono.
Get ftp://ftp.gnu.org/pub/gnu/automake-1.3.tar.gz
(or a newer version if it is available)

http://mono-soc-2007.googlecode.com/svn … index.html

Last edited by jdawg9 (2008-10-26 05:51:38)

Offline

 

#5 2008-11-04 04:20:32

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

Made some progress. Got past error above my installing automake and autoconf.  Now the last part of the install script stops at the following error.  Some component aclocal is not executing properly.  This is the error I got and where I've been stuck recently.

#:/mnt/HD_a2/ffp/share/aclocal# /ffp/etc/fastcgi-mono-server/autogen.sh -prefix=/ffp
grep: configure.ac: No such file or directory
Running aclocal  ...
aclocal: couldn't open `configure.in': No such file or directory

**Error**: aclocal failed. This may mean that you have not
installed all of the packages you need, or you may need to
set ACLOCAL_FLAGS to include "-I $prefix/share/aclocal"
for the prefix where you installed the packages whose
macros were not found

I have aclocal installed but it is installed at: /usr/local/share/aclocal and not under the ffp tree
#:/mnt/HD_a2/ffp/share/aclocal# aclocal --print-ac-dir
/usr/local/share/aclocal

Anyone able to help???? Thanks

Offline

 

#6 2008-11-04 05:44:53

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

More progress..I think.

# /ffp/etc/fastcgi-mono-server/autogen.sh --prefix=/usr/local         
grep: configure.ac: No such file or directory
Running aclocal  ...
aclocal: configure.in: 210: macro `AM_PROG_AS' not found in library
aclocal: configure.in: 251: macro `AM_PROG_LIBTOOL' not found in library
aclocal: configure.in: 390: macro `AM_PO_SUBDIRS' not found in library

I've been copying some m4 files (macros) around but the problem is that I don't exactly know where the installer is looking for the library

Offline

 

#7 2008-12-02 18:50:01

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

Really made some progress and at the same time had the opportunity to learn ALOT of linux.  I got the Automake tools working properly now by installing another package and setting a symbolic link and then copying a whole bunch of macro files m4 into that folder.

I see that the program is almost compiling now, but it fails in one of the lines in the ./configure command .  I googled and search various results but none helped. I'm posting this in hopes that someone very savvy will be a good Samaritan and see something with fresh eyes that I'm missing.  Thanks.

Here is the output from my ssh session:

#:/mnt/HD_a2/ffp/etc/fastcgi-mono-server# ./autogen.sh --prefix=/ffp

Running aclocal  ...
aclocal: `configure.ac' and `configure.in' both present.
aclocal: proceeding with `configure.ac'.
/ffp/share/aclocal/winsz.m4:5: warning: underquoted definition of AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL
/ffp/share/aclocal/winsz.m4:5:   run info '(automake)Extending aclocal'
/ffp/share/aclocal/winsz.m4:5:   or see http://sources.redhat.com/automake/auto … ng-aclocal
Running automake --gnu  ...
automake: `configure.ac' and `configure.in' both present.
automake: proceeding with `configure.ac'.
Running autoconf ...
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
Running ./configure --enable-maintainer-mode --enable-compile-warnings ...
checking build system type... arm-unknown-linux-uclibc
checking host system type... arm-unknown-linux-uclibc
checking target system type... arm-unknown-linux-uclibc
checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for a BSD-compatible install... /ffp/bin/install -c
./configure: ./configure.lineno: line 2387: syntax error: word unexpected (expecting ")")

Offline

 

#8 2008-12-02 20:09:48

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: MONO + lighttp

It might help to edit the header of configure. Change #! /bin/sh to #! /ffp/bin/sh

Offline

 

#9 2008-12-03 18:54:45

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

Mijzelf wrote:

It might help to edit the header of configure. Change #! /bin/sh to #! /ffp/bin/sh

Thanks for the suggestion.  I did that but it still failed in the exact same line.  Even though in theory this might make sense, I believe that in practice both /ffp/bin/sh and /bin/sh are symbolic links to the busybox

Last edited by jdawg9 (2008-12-03 22:14:25)

Offline

 

#10 2008-12-11 04:21:37

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

i hate to do this but....bump

Offline

 

#11 2009-01-29 21:03:25

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

I made some progress from where I was stuck before, the error occurs when the script tries to execute this command:

PKG_CHECK_MODULES(MONO, mono >= $MONO_REQUIRED)

the error returned is below:

-sh: syntax error: word unexpected (expecting ")")

this was due to pkg-config package not installed.   

Now, it gets past that point and it dies in

checking for MONO... configure: error: Package requirements (mono >= 1.1.9) were not met:

gnome-config: No such file or directory
No package 'mono' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MONO_CFLAGS
and MONO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

I didn't know mono was required.  I thought fastcgi-mono-server was stand alone.  Now I'm looking into compiling mono package and I'll try again.  I'll keep posted.

Offline

 

#12 2009-01-30 00:30:43

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

So I'm now on my quest to install mono...I installed by downloading the source from their svn repo after creating a  mono folder in my /ffp/etc

$ svn co http://anonsvn.mono-project.com/source/trunk/mono
$ svn co http://anonsvn.mono-project.com/source/trunk/mcs
$ svn co http://anonsvn.mono-project.com/source/trunk/libgdiplus

after everything was downloaded i went into mono/mono and launched the autogen.sh script. The program ran fine for several minutes checking for many dependencies and proper packages installed.  I installed a few that were missing along the way (GNU grep, autotools, etc)

The problem occurs when mono asks for some packages that I believe are graphics specific, which the DNS-323 for being a command only ssh/telnet device, does not suppor.  Any one has any suggestion how I can get around these required libraries and dependencies?

.
.
.
checking integrity of package... ok
checking whether NLS is requested... yes
checking for msgfmt... /ffp/bin/msgfmt
checking for gmsgfmt... /ffp/bin/msgfmt
checking for xgettext... /ffp/bin/xgettext
checking for msgmerge... /ffp/bin/msgmerge
checking for msgfmt... yes
checking for pkg-config... /ffp/bin/pkg-config
gnome-config: No such file or directory
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
gnome-config: No such file or directory
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
gnome-config: No such file or directory
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
gnome-config: No such file or directory
Package gthread-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gthread-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gthread-2.0' found
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 1.3.11) were not met:

gnome-config: No such file or directory
No package 'glib-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Offline

 

#13 2009-01-30 06:02:27

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

I was finally able to run the entire autogen.sh .  For those of you stuck, the depencies packages that I installed are gettext-0.17-ffp0.5.tgz and glib-2.18.1-ffp0.5.tgz from here http://dns323.kood.org/forum/t3173-Shar … Built.html (thanks boilerjt for indirectly helping me)

Now I'm stuck on the make command with the following error (gotta find that package):


os_dep.c:4024:23: error: execinfo.h: No such file or directory
make[3]: *** [os_dep.lo] Error 1
make[3]: Leaving directory `/mnt/HD_a2/ffp/etc/mono/mono/libgc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/HD_a2/ffp/etc/mono/mono/libgc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/HD_a2/ffp/etc/mono/mono'
make: *** [all] Error 2

Offline

 

#14 2009-01-30 07:47:04

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

Resolved the above by going to /ffp/include and wget http://www.nabble.com/file/5306/execinfo.h .  The make command went much further afterwards but it complained about missing † and alot of errors of type:

error: glib.h: No such file or directory

error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef'
../../mono/metadata/image.h:19: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token

Offline

 

#15 2009-02-26 22:24:37

pic.micro23
New member
Registered: 2009-02-26
Posts: 1

Re: MONO + lighttp

jdawg9 - I'm interested on running MONO. Any more progress?

Thx

Offline

 

#16 2009-03-02 23:02:54

jdawg9
Member
Registered: 2008-10-19
Posts: 13

Re: MONO + lighttp

pic.micro23

I wish I could more actively work on this but due to my limited but growing linux command/library/compiling knowledge and time I have put this on hold.  I wish someone could with more experience with the NAS box and mono could pick up from here are continue to try on the little progress I made.  Perhaps, even someone with alot of ins and outs could put together a funpkg on this.

Have you given a shot? Are you stuck in the same place?

Offline

 

#17 2009-06-21 23:52:00

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: MONO + lighttp

Bumping this thread because it deserves some attention! I'm not much help in solving the porting process but I would sure be the first to test it.


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

#18 2009-06-29 22:12:32

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: MONO + lighttp

Well, I tried to help you guys out but glib2 won't compile with funplug's uclibc. missing inotify functions. Might be able to hack around it but I'm tired of messing with it.

Had to recompile gettext because it didn't have libintl libs/header. By the time glib2 crapped out, so was I.

Compiling with uclibc can be pretty frustrating at times. Pretty crippled compared to glibc....

Keep at it guys. I'm sure it's entirely within the realm of possibility.

Last edited by madpenguin (2009-06-29 22:12:51)

Offline

 

#19 2009-06-29 23:07:32

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

Re: MONO + lighttp

one problem with inotify is that the dns-323 kernel doesnt support it.

Offline

 

#20 2009-06-30 01:30:23

madpenguin
Member
Registered: 2008-12-25
Posts: 77

Re: MONO + lighttp

Right.... I was hoping just having newer headers installed would at least make it compile but no such luck. Doesn't seem to be an easy way to make gio without it either.

What do I care I suppose. Not overly interested in mono anyway. ;-)

Maybe .16 or earlier would work... Dunno.

Last edited by madpenguin (2009-06-30 01:34:26)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB