Complilation error

Moderator: Moderator

Thobug
Posts: 4
Joined: Sat Dec 25, 2010 11:26 am

Complilation error

Postby Thobug » Sun Jan 09, 2011 8:32 pm

Hi everyone,

there some problems compiling mms on my s100 with debian sid.
Error Message:

Code: Select all

root@s100-1:~/mms-1.1.0# make
g++ -I/usr/local/include -L/usr/local/lib -I/usr/include/ -I. -pthread -pipe -O3 -march=native -ffast-math -funroll-loops -fomit-frame-pointer -funit-at-a-time  -D_GNU_SOURCE   -isystem/root/mms-1.1.0/libs -I./plugins -I./plugins/feature/ -I./plugins/input -I./plugins/output -c common.cpp
In file included from /usr/include/c++/4.4/cstdio:45,
                 from /usr/include/c++/4.4/fstream:43,
                 from /usr/include/cc++/missing.h:67,
                 from /usr/include/cc++/string.h:48,
                 from /usr/include/cc++/thread.h:50,
                 from updater.hpp:9,
                 from common.cpp:14:
/usr/include/stdio.h:397: error: expected unqualified-id before ‘do’
/usr/include/stdio.h:397: error: expected unqualified-id before ‘while’
make: *** [common.o] Fehler 1



Any idea? Thanks in advance!

dj
veteran
Posts: 111
Joined: Thu Jan 12, 2006 2:11 pm
Location: At the keyboard

Re: Complilation error

Postby dj » Fri Dec 07, 2012 7:32 pm

Hi,

I have the same problem compiling mms-1.1.1

g++ -I/usr/local/include -L/usr/local/lib -I/usr/include/ -I. -pthread -pipe -O3 -march=native -ffast-math -funroll-loops -fomit-frame-pointer -funit-at-a-time -D_GNU_SOURCE -isystem /usr/include/boost/ -isystem /usr/include/boost-1_36/ -isystem /usr/include/boost-1_35/ -isystem /usr/include/boost-1_34_1/ -isystem /usr/include/boost-1_34_0/ -I./plugins -I./plugins/feature/ -I./plugins/input -I./plugins/output -c common.cpp
In file included from /usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cstdio:45,
from /usr/lib/gcc/i686-redhat-linux/4.4.6/../../../../include/c++/4.4.6/fstream:43,
from /usr/include/cc++/missing.h:67,
from /usr/include/cc++/string.h:48,
from /usr/include/cc++/thread.h:50,
from updater.hpp:9,
from common.cpp:14:
/usr/include/stdio.h:419: error: expected unqualified-id before ”do”
/usr/include/stdio.h:419: error: expected unqualified-id before ”while”
make: *** [common.o] error 1

dj
veteran
Posts: 111
Joined: Thu Jan 12, 2006 2:11 pm
Location: At the keyboard

Re: Complilation error

Postby dj » Fri Dec 07, 2012 10:30 pm

https://github.com/kr/beanstalkd/issues/49

I think the dprintf collides with dprintf with glibc or whatever. To fix run in mms source dir:
find ./* -type f -exec sed -i s/dprintf/mmsdprintf/g {} \;

It changes every reference to dprint to mmsdprintf in every mms file so no collision anymore. Don't know if the code works after that but at least it compiles :P

Then I faced another problem that was fixed here:
http://bazaar.launchpad.net/~team-mms/m ... ision/2258

and some other "struct stat64" change to "struct stat" that compiler complained about.

and this too:
http://bazaar.launchpad.net/~team-mms/m ... ibfspp.cpp

and including <stdio.h> to regextools.h

and now it compiles.

dj
veteran
Posts: 111
Joined: Thu Jan 12, 2006 2:11 pm
Location: At the keyboard

Re: Complilation error

Postby dj » Sat Dec 08, 2012 12:03 am

There are still problems... I guess I should use something else than mms-1.1.1 from the main page
http://mymediasystem.org/

dj
veteran
Posts: 111
Joined: Thu Jan 12, 2006 2:11 pm
Location: At the keyboard

Re: Complilation error

Postby dj » Sat Dec 08, 2012 7:59 am

Bazaar version compiles much better:
http://wiki.mymediasystem.org/wiki/inde ... _to_get_it

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Complilation error

Postby naicheben » Sun Dec 09, 2012 9:12 am

DJ
not-in-use8822@kolumbus.fi is not a valid email address.
Please contact me with a valid email address for your account. Or change it the next day.....
mit Hellseherschein ;.)

junor
Posts: 4
Joined: Sat Apr 23, 2011 9:34 pm

Re: Complilation error

Postby junor » Sun Jan 05, 2014 4:49 pm

Hi

I'm trying to compile MMS 1.3.0. What I havve done:

Code: Select all

bzr branch "https://code.launchpad.net/~team-mms-ng/mms-ng/trunk" mms-1.3.0
./configure --enable-lirc --enable-clock --enable-notify-area --enable-tv --enable-lcd
make -j2


It won't compile:

Code: Select all

/usr/local/lib/libavutil.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/opt/mms-ng/./build/plugins/lib_feature_movie.so] Error 1
make[1]: *** [.link] Error 1
make: *** [all] Error 2


Any ideas? Every dev-lib from this guide has been installed:
http://forum.mymediasystem.org/viewtopic.php?f=28&t=2894

I'm running Xubuntu 13.10

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: Complilation error

Postby naicheben » Mon Jan 06, 2014 8:11 pm

If you don't get an answer try to send a PM to Uatshichun or heymish. Forum is allmost dead since development on MMS stalled.
To me (but I'm not a developer) it looks as if your dev-pakages are too new.
mit Hellseherschein ;.)

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Complilation error

Postby Uatschitchun » Thu Jan 16, 2014 5:39 pm

1.3.0 compiles well here with 12.04 LTS

Wouldn't be a big problem to solve, but no one's left to do it and I can't ;(

It sure would be nice to have a compiling version still!
Lg
Roman


Return to “general”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests