nanogui: Thread: Re:[nanogui] Compile error
Subject:
Re:[nanogui] Compile error
From:
aflar ####@####.####
Date:
21 Dec 2007 14:34:06 +0000
Message-Id: <19961257.646491198247612992.JavaMail.coremail@bj163app11.163.com>
Yes,I've got the same error in my Fedora Core 6 sys!But if in RedHat 9,there is not any error! Maybe it has something to the version of the system or GCC?Have you fixed that? I've deleted the 'static' directly and it can be built!But I'm not sure whether it will do harm to the whole or not.
Anybody have any ideas?
在2007-12-14,"Demetris Zavorotnichenko" ####@####.#### 写道:
I'm having problems compiling Microwindows.
I get :
Comiling mwin/winevent.c ...
error:static declaration of 'abs' follows non-static declaration
I remember I solved this issue a long time ago but with the new gumstix and
the buildroot it still gets this error.
How would I solve this ?
|
Subject:
Re: [nanogui] Re:[nanogui] Compile error
From:
Wayne ####@####.####
Date:
21 Dec 2007 17:40:12 +0000
Message-Id: <476BFA6F.8030104@zk.com>
--> -->
|
<type 'exceptions.UnicodeDecodeError'> | Python 2.7.18: /usr/bin/python2 Fri May 17 05:15:16 2024 |
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib64/python2.7/runpy.py in _run_module_as_main(mod_name='__main__', alter_argv=0) |
172 sys.argv[0] = fname
|
173 return _run_code(code, main_globals, None,
|
=> 174 "__main__", fname, loader, pkg_name)
|
175
|
176 def run_module(mod_name, init_globals=None,
|
fname = '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', loader = <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, pkg_name = '' |
/usr/lib64/python2.7/runpy.py in _run_code(code=<code object <module> at 0x7ac29104c2b0, file "/....org/ezmlm-browse/index.cgi/__main__.py", line 1>, run_globals={'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', '__loader__': <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, '__name__': '__main__', '__package__': '', 'main': <module 'main' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py'>}, init_globals=None, mod_name='__main__', mod_fname='/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', mod_loader=<zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, pkg_name='') |
70 __loader__ = mod_loader,
|
71 __package__ = pkg_name)
|
=> 72 exec code in run_globals
|
73 return run_globals
|
74
|
code = <code object <module> at 0x7ac29104c2b0, file "/....org/ezmlm-browse/index.cgi/__main__.py", line 1>, run_globals = {'__builtins__': <module '__builtin__' (built-in)>, '__doc__': None, '__file__': '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/__main__.py', '__loader__': <zipimporter object "/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi">, '__name__': '__main__', '__package__': '', 'main': <module 'main' from '/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py'>} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/main.py in main_form() |
378 except ImportError:
|
379 die(ctxt, "Invalid command")
|
=> 380 module.do(ctxt)
|
381
|
382 def main():
|
module = <module 'commands.showthread' from '/home/alex/w...g/ezmlm-browse/index.cgi/commands/showthread.py'>, module.do = <function do>, global ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/commands/showthread.py in do(ctxt={'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}) |
9 ctxt.update(ezmlm.thread(ctxt[THREADID]))
|
10 header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread')
|
11 do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES],
|
=> 12 lambda:sub_showmsg(ctxt, ctxt[MSGNUM]))
|
13 footer(ctxt)
|
global sub_showmsg = <function sub_showmsg>, ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum' |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/globalfns.py in do_list(ctxt={'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, name='msgs', perpage=10, values=[{'author': u'aflar', 'authorid': 'gnlglbidndknnappkdlj', 'date': '21 Dec 2007 14:34:06 +0000', 'month': 200712, 'msgnum': 12101, 'subject': u'Re:[nanogui] Compile error', 'threadid': 'biklbdfcjbckfbjbimec', 'timestamp': 1198247646.0}, {'author': u'Wayne', 'authorid': 'aeffdjfbjfkinfonhlho', 'date': '21 Dec 2007 17:40:12 +0000', 'month': 200712, 'msgnum': 12106, 'subject': u'Re: Re:[nanogui] Compile error', 'threadid': 'biklbdfcjbckfbjbimec', 'timestamp': 1198258812.0}], peritem=<function <lambda>>) |
128 write(template % ctxt)
|
129 if peritem:
|
=> 130 peritem()
|
131 ctxt[ROW] += 1
|
132
|
peritem = <function <lambda>> |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/commands/showthread.py in <lambda>() |
9 ctxt.update(ezmlm.thread(ctxt[THREADID]))
|
10 header(ctxt, 'Thread: ' + ctxt[SUBJECT], 'showthread')
|
11 do_list(ctxt, 'msgs', ctxt[MSGSPERPAGE], ctxt[MESSAGES],
|
=> 12 lambda:sub_showmsg(ctxt, ctxt[MSGNUM]))
|
13 footer(ctxt)
|
global sub_showmsg = <function sub_showmsg>, ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, global MSGNUM = 'msgnum' |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/globalfns.py in sub_showmsg(ctxt={'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msgnum=12106) |
229 format_timestamp(ctxt, ctxt)
|
230 write(html('msg-header') % ctxt)
|
=> 231 rec_showpart(ctxt, msg, 0)
|
232 write(html('msg-footer') % ctxt)
|
233 ctxt.pop()
|
global rec_showpart = <function rec_showpart>, ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, msg = <email.message.Message instance> |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/globalfns.py in rec_showpart(ctxt={'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance>, partnum=0) |
208 else:
|
209 write(html('msg-sep') % ctxt)
|
=> 210 sub_showpart(ctxt, part)
|
211 return partnum
|
212
|
global sub_showpart = <function sub_showpart>, ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part = <email.message.Message instance> |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/globalfns.py in sub_showpart(ctxt={'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'}, part=<email.message.Message instance>) |
169 if not template:
|
170 template = html('msg-other')
|
=> 171 write(template % ctxt)
|
172
|
173 def rec_noshowpart(ctxt, part, partnum):
|
global write = <function write>, template = '<pre>%(mask_email(markup_urls(html(wordwrap(body)))))s</pre>\n', ctxt = {'wrapwidth': '0', 'SERVER_SOFTWARE': 'Apache', ...HTTP_ACCEPT_ENCODING': 'gzip, br, zstd, deflate'} |
/home/alex/websites/linuxhacker.org/ezmlm-browse/index.cgi/globalfns.py in write(s="<pre>aflar wrote:\n> Yes,I've got the same err... \nthe name of this macro in winevent.c...\n</pre>\n") |
10
|
11 def write(s):
|
=> 12 sys.stdout.write(s.encode('utf-8'))
|
13
|
14 ###############################################################################
|
global sys = <module 'sys' (built-in)>, sys.stdout = <open file '<stdout>', mode 'w'>, sys.stdout.write = <built-in method write of file object>, s = "<pre>aflar wrote:\n> Yes,I've got the same err... \nthe name of this macro in winevent.c...\n</pre>\n", s.encode = <built-in method encode of str object> |
<type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd4 in position 368: ordinal not in range(128)
args =
('ascii', "<pre>aflar wrote:\n> Yes,I've got the same err... \nthe name of this macro in winevent.c...\n</pre>\n", 368, 369, 'ordinal not in range(128)')
encoding =
'ascii'
end =
369
message =
''
object =
"<pre>aflar wrote:\n> Yes,I've got the same err... \nthe name of this macro in winevent.c...\n</pre>\n"
reason =
'ordinal not in range(128)'
start =
368