Opened 12 years ago

Closed 11 years ago

#36274 closed defect (fixed)

gwyddion: error: non-void function 'module_register' should return a value

Reported by: kzeroyu@… Owned by: rowue@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: yeti@…
Port: gwyddion

Description

Hi,

After I upgrade my mac from 10.7 to 10.8, Gwyddion doesn't work. Then I tried to reinstall gwyddion; however, it gave a error. The log is attached.

Thank you~

Attachments (1)

main.log (108.6 KB) - added by kzeroyu@… 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by kzeroyu@…

Attachment: main.log added

comment:1 Changed 12 years ago by kzeroyu@…

Cc: kzeroyu@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: yeti@… added; kzeroyu@… removed
Owner: changed from macports-tickets@… to rowue@…
Port: gwyddion added
Summary: Fail to install Gwyddiongwyddion: error: non-void function 'module_register' should return a value

It builds fine for me on 10.8.1 with Xcode 4.4.1.

Since you mention having just migrated from Lion to Mountain Lion, have you performed the wiki:Migration steps? Reinstalled latest Xcode and its command line tools? Reinstalled MacPorts? Reinstalled all ports?

comment:3 in reply to:  2 ; Changed 12 years ago by yeti@…

But namely, this is a very suspicious error. Line 112 in pygwy.c is

if (!check_pygtk_availability())

There is no return statement on that line at all. The entire function is

static gboolean module_register(void) {

if (!check_pygtk_availability())

return FALSE;

pygwy_register_plugins(); pygwy_register_console(); return TRUE;

}

so it obviously does not lack return values anywhere.

Are some patches applied that would change the pygwy.c code?

comment:4 in reply to:  3 Changed 12 years ago by yeti@…

Replying to yeti@…:

But namely, this is a very suspicious error...

Ah, I see now, this is still Gwyddion 2.29. Please wait for 2.30; it's fixed there.

comment:5 Changed 12 years ago by rowue@…

Updated to 2.30 in r98779 - however since I'm using 10.4 I'm unable to test.

comment:6 Changed 11 years ago by rowue@…

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.