Opened 12 years ago

Last modified 12 years ago

#34512 closed defect

stardict: #error "Only <glib.h> can be included directly." — at Version 5

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 (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

Change History (6)

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.

Note: See TracTickets for help on using tickets.