Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#34512 closed defect (fixed)

stardict: #error "Only <glib.h> can be included directly."

Reported by: haianjxw@… Owned by: alexandernx@…
Priority: Normal Milestone:
Component: ports Version: 2.1.1
Keywords: glib Cc: ryandesign (Ryan Carsten Schmidt)
Port: stardict

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build In file included from tomboykeybinder.cpp:9:
:info:build In file included from ./tomboykeybinder.h:5:
:info:build /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
:info:build #error "Only <glib.h> can be included directly."
:info:build  ^
:info:build 1 error generated.
:info:build make[3]: *** [tomboykeybinder.o] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/articleview.Tpo .deps/articleview.Po
:info:build 1 warning generated.
:info:build mv -f .deps/pangoview.Tpo .deps/pangoview.Po
:info:build In file included from globalhotkeys.cpp:3:
:info:build In file included from ./tomboykeybinder.h:5:
:info:build /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
:info:build #error "Only <glib.h> can be included directly."
:info:build  ^
:info:build 1 error generated.
:info:build make[3]: *** [globalhotkeys.o] Error 1
:info:build mv -f .deps/cmdlineopts.Tpo .deps/cmdlineopts.Po
:info:build mv -f .deps/dictmanage.Tpo .deps/dictmanage.Po
:info:build mv -f .deps/desktop.Tpo .deps/desktop.Po
:info:build mv -f .deps/log.Tpo .deps/log.Po
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/work/stardict-3.0.2/src'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/work/stardict-3.0.2/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/work/stardict-3.0.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/work/stardict-3.0.2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/work/stardict-3.0.2" && /usr/bin/make -j8 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port stardict returned: command execution failed
:debug:build Error code: CHILDSTATUS 51078 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for stardict: org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Please see the log file for port stardict for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_stardict/stardict/main.log

Attachments (1)

main.log (184.5 KB) - added by haianjxw@… 12 years ago.

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by haianjxw@…

Attachment: main.log added

comment:1 Changed 12 years ago by haianjxw@…

stardict @3.0.2_1 build failure

comment:2 Changed 12 years ago by haianjxw@…

Cc: haianjxw@… added

Cc Me!

comment:3 Changed 12 years ago by haianjxw@…

Cc: haianjxw@… removed

Cc Me!

comment:4 Changed 12 years ago by haianjxw@…

In tomboykeybinder.h change #include <glib/gtypes.h> to #include <glib.h> should fix the problem.

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

Cc: ryandesign@… added
Description: modified (diff)
Owner: changed from macports-tickets@… to alexandernx@…
Port: stardict added; Stardict removed
Priority: HighNormal
Summary: error "Only <glib.h> can be included directly."stardict: #error "Only <glib.h> can be included directly."

Looks like the usual glib 2.32 incompatibility, which I could generate a patch for by running a script.

3.0.3 is available; maybe we should try updating the port first.

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

Resolution: fixed
Status: newclosed

Updating to 3.0.3 wasn't completely straightforward so I just fixed the glib issue in r93313 (since I'm the one who broke it by updating glib2) and opened a new ticket #34516 for updating to 3.0.3.

comment:7 in reply to:  6 ; Changed 12 years ago by haianjxw@…

Replying to ryandesign@…:

Updating to 3.0.3 wasn't completely straightforward so I just fixed the glib issue in r93313 (since I'm the one who broke it by updating glib2) and opened a new ticket #34516 for updating to 3.0.3.

The old glib worked perfectly, is there a way that I can use the old glib to build stardict 3.0.2?

comment:8 in reply to:  7 ; Changed 12 years ago by haianjxw@…

Replying to haianjxw@…:

Replying to ryandesign@…:

Updating to 3.0.3 wasn't completely straightforward so I just fixed the glib issue in r93313 (since I'm the one who broke it by updating glib2) and opened a new ticket #34516 for updating to 3.0.3.

The old glib worked perfectly, is there a way that I can use the old glib to build stardict 3.0.2?

Now it works with: sudo port install stardict configure.compiler=llvm-gcc-4.2

comment:9 in reply to:  8 ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to haianjxw@…:

The old glib worked perfectly, is there a way that I can use the old glib to build stardict 3.0.2?

stardict compiles fine with the new glib too, now that I patched it in r93313.

Replying to haianjxw@…:

Now it works with: sudo port install stardict configure.compiler=llvm-gcc-4.2

Yes the compile problem with clang is a separate issue already filed in #34517.

comment:10 in reply to:  9 Changed 12 years ago by haianjxw@…

Replying to ryandesign@…:

Replying to haianjxw@…:

The old glib worked perfectly, is there a way that I can use the old glib to build stardict 3.0.2?

stardict compiles fine with the new glib too, now that I patched it in r93313.

Replying to haianjxw@…:

Now it works with: sudo port install stardict configure.compiler=llvm-gcc-4.2

Yes the compile problem with clang is a separate issue already filed in #34517.

Thanks a lot, this now works perfectly.

Note: See TracTickets for help on using tickets.