You are not logged in.

#1 2009-05-25 19:14:25

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Error building synfigstudio from AUR

I managed to install Kdenlive from the AUR using Yaourt but Synfigstudio ends with...

time.cpp:107: error: 'sscanf' was not declared in this scope
make[3]: *** [libsynfig_la-time.lo] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-root/aur-synfig/synfig/src/synfig-0.61.09/src/synfig'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-synfig/synfig/src/synfig-0.61.09/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/yaourt-tmp-root/aur-synfig/synfig/src/synfig-0.61.09'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...
Error: Makepkg was unable to build synfig package.

I have no clue what to try now and was hoping for some help/suggestions.

Thanks

Edited for typo

Last edited by addr (2009-05-25 19:15:34)


x86_64 Arch Openbox, Debian PEKwm

Offline

#2 2009-05-25 19:22:24

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Error building synfigstudio from AUR

Probably a problem with the new gcc : http://gcc.gnu.org/gcc-4.4/porting_to.html
Perhaps you need to add '#include <cstdio>' to the appropriate header files.

Offline

#3 2009-05-25 22:24:13

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Error building synfigstudio from AUR

I am sorry, I have no idea how to do what you suggest.

Could you be more specific, please?

Last edited by addr (2009-05-25 22:25:58)


x86_64 Arch Openbox, Debian PEKwm

Offline

#4 2009-05-26 00:34:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error building synfigstudio from AUR

I'm not 100% sure, but you could try adding '#include <cstdio>' to the beginning of time.cpp.

Offline

#5 2009-05-26 00:36:53

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: Error building synfigstudio from AUR

karol wrote:

I'm not 100% sure, but you could try adding '#include <cstdio>' to the beginning of time.cpp.

Yes, this is likely to fix it, due to GCC 4.4's new semantics regarding include files.

Offline

#6 2009-05-26 00:38:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error building synfigstudio from AUR

And if you run into similar problems w/ other files, treat them the same way.

Offline

#7 2009-06-02 21:07:31

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Error building synfigstudio from AUR

Thankyou but could you tell me how to do this...

#include <cstdio> to the beginning of time.cpp.


x86_64 Arch Openbox, Debian PEKwm

Offline

#8 2009-06-02 21:10:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Error building synfigstudio from AUR

You can open the file 'time.cpp' and add a line '#include <cstdio>' at the top.

Offline

#9 2009-06-04 00:52:48

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Error building synfigstudio from AUR

No file 'time.cpp' on my system.


x86_64 Arch Openbox, Debian PEKwm

Offline

#10 2009-06-04 00:54:48

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Error building synfigstudio from AUR

addr wrote:

No file 'time.cpp' on my system.

sure there is....

addr wrote:

I managed to install Kdenlive from the AUR using Yaourt but Synfigstudio ends with...

time.cpp:107: error: 'sscanf' was not declared in this scope

Offline

#11 2009-06-04 03:24:57

Statix
Member
From: Hangzhou, China
Registered: 2008-02-16
Posts: 240

Re: Error building synfigstudio from AUR

To be a little more specific:

make[2]: Leaving directory `/tmp/yaourt-tmp-root/aur-synfig/synfig/src/synfig-0.61.09/src'

That's most likely where you'll find it.


Madly in love with Arch64, Openbox, DotA, and of course... penguins!
Happy to help if you're not a Help Vampire. Use your wonderful resources like ArchWiki, Google, and our wonderful search page.

Offline

#12 2009-06-04 13:45:16

addr
Member
From: Manitoba
Registered: 2008-12-04
Posts: 73

Re: Error building synfigstudio from AUR

Well I found the file and added the include but the /tmp just gets rewritten.
Is there somewhere permanent I should be putting the include file?
Sorry to be so ignorant here.


x86_64 Arch Openbox, Debian PEKwm

Offline

#13 2009-06-04 14:11:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Error building synfigstudio from AUR

You will need to patch the source code before building it, which I expect you won't be able to do (no offense intended). Alternatively, you could try building the app with gcc 4.3, gcc 3.4, or gcc 3.3, all of which are available in either the AUR or the extra repo.

btw, I've changed the thread topic to be more descriptive of the actual problem.

Offline

#14 2009-06-04 14:43:40

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Error building synfigstudio from AUR

No idea how to do this with yaourt but why not just:

download the tar.gz from AUR

download and extract source with makepkg -o

edit time.cpp to correct headers

use makepkg -e to build without overwriting the modified file

use pacman -U to install the resulting pkg.tar.gz

Offline

#15 2009-06-04 14:50:16

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Error building synfigstudio from AUR

Garns wrote:

No idea how to do this with yaourt but why not just:

download the tar.gz from AUR

download and extract source with makepkg -o

edit time.cpp to correct headers

use makepkg -e to build without overwriting the modified file

use pacman -U to install the resulting pkg.tar.gz

You forgot the important "submit patch upstream" step.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#16 2009-06-07 21:05:18

Garns
Member
Registered: 2008-05-28
Posts: 239

Re: Error building synfigstudio from AUR

Mr.Elendig wrote:
Garns wrote:

No idea how to do this with yaourt but why not just:

download the tar.gz from AUR

download and extract source with makepkg -o

edit time.cpp to correct headers

use makepkg -e to build without overwriting the modified file

use pacman -U to install the resulting pkg.tar.gz

You forgot the important "submit patch upstream" step.

guilty as charged yikes, however I only skipped it because tomk already excluded patching.

Offline

Board footer

Powered by FluxBB