Ticket #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@… |
| Port: | stardict |
Description (last modified by ryandesign@…) (diff)
: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
Change History
comment:4 Changed 12 months ago by haianjxw@…
In tomboykeybinder.h change #include <glib/gtypes.h> to #include <glib.h> should fix the problem.
comment:5 Changed 12 months ago by ryandesign@…
- Description modified (diff)
- Cc ryandesign@… added
- Summary changed from error "Only <glib.h> can be included directly." to stardict: #error "Only <glib.h> can be included directly."
- Priority changed from High to Normal
- Owner changed from macports-tickets@… to alexandernx@…
- Port changed from Stardict to stardict
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 follow-up: ↓ 7 Changed 12 months ago by ryandesign@…
- Status changed from new to closed
- Resolution set to fixed
comment:7 in reply to: ↑ 6 ; follow-up: ↓ 8 Changed 12 months 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 ; follow-up: ↓ 9 Changed 12 months 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 ; follow-up: ↓ 10 Changed 12 months ago by 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.
comment:10 in reply to: ↑ 9 Changed 12 months 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.

