LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-09-2011, 09:59 PM   #1
mdynac
Member
 
Registered: Aug 2003
Location: USA
Distribution: Slackware-14
Posts: 46

Rep: Reputation: 16
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.
 
Old 07-09-2011, 10:32 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 227Reputation: 227Reputation: 227
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
 
Old 07-09-2011, 10:34 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 07-09-2011, 10:57 PM   #4
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 227Reputation: 227Reputation: 227
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.
 
Old 07-09-2011, 11:03 PM   #5
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
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/
 
Old 07-10-2011, 12:08 AM   #6
mdynac
Member
 
Registered: Aug 2003
Location: USA
Distribution: Slackware-14
Posts: 46

Original Poster
Rep: Reputation: 16
alien Bob's gecko-mediaplayer compiled fine.....

even with Sbo gnome-mplayer installed.

thx folks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to input non-utf characters from utf-8 linux enviroment? jadas Linux - General 6 02-07-2009 04:20 PM
UTF-16 error kkostienko Linux - General 0 02-19-2007 02:16 PM
im getting UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1' jabka Linux - Newbie 2 11-24-2006 06:44 AM
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or? brynjarh Linux - General 1 11-24-2004 06:20 AM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 03:04 PM


All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration