LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   UTF-8 error during SlackBuild (http://www.linuxquestions.org/questions/slackware-14/utf-8-error-during-slackbuild-890853/)

mdynac 07-09-2011 08:59 PM

UTF-8 error during SlackBuild
 
i keep getting this error during gecko-mediaplayer build

running 1337 stable up to date.....

lang.sh has en us utf8 enabled, (it didn't work with en US either.....)


any help would be appreciated.



plugin.cpp: In constructor 'CPlugin::CPlugin(NPP_t*)':
plugin.cpp:324:71: error: 'struct NPString' has no member named 'utf8characters'
plugin.cpp: In member function 'virtual bool ScriptablePluginObjectControls::InvokeDefault(const NPVariant*, uint32_t, NPVariant*)':
plugin.cpp:1604:5: error: 'moz_strdup' was not declared in this scope
plugin.cpp: In member function 'virtual bool ScriptablePluginObject::Invoke(void*, const NPVariant*, uint32_t, NPVariant*)':
plugin.cpp:1792:59: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1869:58: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1878:66: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1887:60: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1896:62: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1905:61: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1914:62: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp:1923:60: error: 'const struct NPString' has no member named 'utf8characters'
plugin.cpp: In member function 'virtual bool ScriptablePluginObject::InvokeDefault(const NPVariant*, uint32_t, NPVariant*)':
plugin.cpp:1936:5: error: 'moz_strdup' was not declared in this scope
plugin.cpp: In member function 'virtual bool ScriptablePluginObject::SetProperty(void*, const NPVariant*)':
plugin.cpp:2018:58: error: 'const struct NPString' has no member named 'utf8characters'
make[3]: *** [plugin.o] Error 1
make[3]: Leaving directory `/tmp/SBo/gecko-mediaplayer-1.0.0/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/gecko-mediaplayer-1.0.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/gecko-mediaplayer-1.0.0'
make: *** [all] Error 2

gecko-mediaplayer:
Would you like to continue processing the rest of the
build queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

wildwizard 07-09-2011 09:32 PM

Looks like either a API change or a bug in the code of gecko-mplayer

/usr/include/seamonkey/npruntime.h
Code:

typedef struct _NPString {
    const NPUTF8 *UTF8Characters;
    uint32_t UTF8Length;
} NPString;

As you can see it is UTF8Characters not utf8characters

bgeddy 07-09-2011 09:34 PM

I don't have this application installed and I gather from your mention of this
Quote:

Would you like to continue processing the rest of the
build queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.
that you are using sbopkg and a build queue to build the app. I have just tried to build this using the stored queues and got the same errors as you mentioned in the latter part of your post. Apologies I cannot offer a solution but thought I'd let you know.

wildwizard 07-09-2011 09:57 PM

I've just tried the build and it fails before that point.

NB when tracing compiler errors you need to get the very first thing that breaks, any output after that point could simply be caused by the first error. (the gecko-mplayer has code to determine the correct utf or UTF to use)

Code:

In file included from /usr/include/seamonkey-2.1/plugin/nscore.h:50:0,
                from /usr/include/seamonkey-2.1/plugin/nsrootidl.h:11,
                from /usr/include/seamonkey-2.1/plugin/nsISupports.h:10,
                from /usr/include/seamonkey-2.1/plugin/nsIPrefBranch.h:10,
                from plugin.cpp:45:
/usr/include/seamonkey-2.1/plugin/mozilla/mozalloc.h:109:5: error: expected initializer before 'NS_ATTR_MALLOC'

If I downgrade seamonkey to 2.1b3 (from 13.37) I get a different error from the compiler but it still bombs out.

Daedra 07-09-2011 10:03 PM

I would try Alien Bob's builds. His are the newest versions.
http://connie.slackware.com/~alien/s...mplayer/build/
http://connie.slackware.com/~alien/s...aplayer/build/

mdynac 07-09-2011 11:08 PM

alien Bob's gecko-mediaplayer compiled fine.....

even with Sbo gnome-mplayer installed.

thx folks


All times are GMT -5. The time now is 05:37 AM.