[MacPorts] #34512: error "Only <glib.h> can be included directly."
#34512: error "Only <glib.h> can be included directly." ----------------------------------+----------------------------------------- Reporter: haianjxw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.1 Keywords: glib | Port: Stardict ----------------------------------+----------------------------------------- :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 -- Ticket URL: <https://trac.macports.org/ticket/34512> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: error "Only <glib.h> can be included directly." ----------------------------------+----------------------------------------- Reporter: haianjxw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.1 Keywords: glib | Port: Stardict ----------------------------------+----------------------------------------- Comment(by haianjxw@…): stardict @3.0.2_1 build failure -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: error "Only <glib.h> can be included directly." ----------------------------------+----------------------------------------- Reporter: haianjxw@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Component: ports | Version: 2.1.1 Keywords: glib | Port: Stardict ----------------------------------+----------------------------------------- Comment(by haianjxw@…): In tomboykeybinder.h change #include <glib/gtypes.h> to #include <glib.h> should fix the problem. -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." ----------------------------------+----------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Keywords: glib | Port: stardict ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * priority: High => Normal * owner: macports-tickets@… => alexandernx@… * port: Stardict => stardict Old description:
: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
New description: {{{ :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 }}} -- Comment: Looks like the usual glib 2.32 incompatibility, which I could generate a patch for by running a script. [http://code.google.com/p/stardict-3/ 3.0.3 is available]; maybe we should try updating the port first. -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." -----------------------------------+---------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: glib Port: stardict | -----------------------------------+---------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: 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. -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." -----------------------------------+---------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: glib Port: stardict | -----------------------------------+---------------------------------------- Comment(by haianjxw@…): Replying to [comment:6 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? -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." -----------------------------------+---------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: glib Port: stardict | -----------------------------------+---------------------------------------- Comment(by haianjxw@…): Replying to [comment:7 haianjxw@…]:
Replying to [comment:6 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 -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." -----------------------------------+---------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: glib Port: stardict | -----------------------------------+---------------------------------------- Comment(by ryandesign@…): Replying to [comment:7 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 [comment:8 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. -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#34512: stardict: #error "Only <glib.h> can be included directly." -----------------------------------+---------------------------------------- Reporter: haianjxw@… | Owner: alexandernx@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.1 Resolution: fixed | Keywords: glib Port: stardict | -----------------------------------+---------------------------------------- Comment(by haianjxw@…): Replying to [comment:9 ryandesign@…]:
Replying to [comment:7 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 [comment:8 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. -- Ticket URL: <https://trac.macports.org/ticket/34512#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts