You are not logged in.

#1 2008-04-14 09:33:15

staticvoid
Member
Registered: 2008-01-22
Posts: 160

Can't compile: not declared in scope

I ahev been having a lot of compiling errors lately heres one:

 -D__unix__ -DSWICU_DATA=\"/usr/lib/sword/1.5.10_icu_3.8\" -D_FTPLIB_NO_COMPAT -D_ICU_ -O2 -DCURLAVAILABLE -I/usr/include -I/usr/lib -DUSELUCENE -march=i686 -mtune=generic -O2 -pipe -MT gbfwordjs.lo -MD -MP -MF .deps/gbfwordjs.Tpo -c ../src/modules/filters/gbfwordjs.cpp  -fPIC -DPIC -o .libs/gbfwordjs.o
../src/modules/filters/gbfwordjs.cpp: In member function 'virtual char sword::GBFWordJS::processText(sword::SWBuf&, const sword::SWKey*, const sword::SWModule*)':
../src/modules/filters/gbfwordjs.cpp:79: error: 'sprintf' was not declared in this scope
../src/modules/filters/gbfwordjs.cpp:120: error: 'sprintf' was not declared in this scope
../src/modules/filters/gbfwordjs.cpp:215: error: 'sprintf' was not declared in this scope
make[1]: *** [gbfwordjs.lo] Error 1
make[1]: Leaving directory `/home/nathan/Desktop/sword/src/sword-1.5.10/lib'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
    Aborting...

someone in irc said its an error about the source code relying on a bug in gcc, but I can't compile the stuff I need. I would like gnomesword installed, which requires sword. both which are from aur. makepkg is what I did to the PKGBUILD after satisfying dependencies.

hope someone can help :).

S


this is my sig

Offline

#2 2008-04-14 09:41:52

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Can't compile: not declared in scope

Offline

#3 2008-04-14 10:41:13

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Can't compile: not declared in scope

there are patches available that will let you build many applications around the web


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#4 2008-04-14 12:39:42

staticvoid
Member
Registered: 2008-01-22
Posts: 160

Re: Can't compile: not declared in scope

dolby, yeah i think i'll need to get a patch. I want to compile sooperlooper too... hmm...

will check it out smile

sv

p.s. where can I get a patch?


this is my sig

Offline

#5 2008-04-14 12:52:26

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

Re: Can't compile: not declared in scope

dolby wrote:

Are you sure....

Offline

#6 2008-04-14 12:54:28

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Can't compile: not declared in scope

Allan wrote:
dolby wrote:

<spam>

Are you sure....

Deleted spam.
If we're going through the trouble of posting, let's at least make it helpful. Thanks.

Offline

#7 2008-04-14 12:59:19

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Can't compile: not declared in scope

it wasnt spam...
but anyway heres the correct link
www.google.com


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#8 2008-04-14 16:52:39

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: Can't compile: not declared in scope

Dolby, your experience and knowledge are certainly appreciated here. Why not share them in a more amicable fashion?

Offline

#9 2008-04-14 17:53:07

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Can't compile: not declared in scope

staticvoid wrote:

I ahev been having a lot of compiling errors lately heres one:

 -D__unix__ -DSWICU_DATA=\"/usr/lib/sword/1.5.10_icu_3.8\" -D_FTPLIB_NO_COMPAT -D_ICU_ -O2 -DCURLAVAILABLE -I/usr/include -I/usr/lib -DUSELUCENE -march=i686 -mtune=generic -O2 -pipe -MT gbfwordjs.lo -MD -MP -MF .deps/gbfwordjs.Tpo -c ../src/modules/filters/gbfwordjs.cpp  -fPIC -DPIC -o .libs/gbfwordjs.o
../src/modules/filters/gbfwordjs.cpp: In member function 'virtual char sword::GBFWordJS::processText(sword::SWBuf&, const sword::SWKey*, const sword::SWModule*)':
../src/modules/filters/gbfwordjs.cpp:79: error: 'sprintf' was not declared in this scope
../src/modules/filters/gbfwordjs.cpp:120: error: 'sprintf' was not declared in this scope
../src/modules/filters/gbfwordjs.cpp:215: error: 'sprintf' was not declared in this scope
make[1]: *** [gbfwordjs.lo] Error 1
make[1]: Leaving directory `/home/nathan/Desktop/sword/src/sword-1.5.10/lib'
make: *** [all-recursive] Error 1
==> ERROR: Build Failed.
    Aborting...

someone in irc said its an error about the source code relying on a bug in gcc, but I can't compile the stuff I need. I would like gnomesword installed, which requires sword. both which are from aur. makepkg is what I did to the PKGBUILD after satisfying dependencies.

hope someone can help smile.

S

The new versions of sword and gnomesword should fix this.

Offline

Board footer

Powered by FluxBB