Opened 13 years ago

Closed 13 years ago

#34076 closed defect (fixed)

loudmouth-1.4.3: #error "Only <glib.h> can be included directly"

Reported by: hugo-ribeiro (Hugo Ribeiro) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: glib.h Cc:
Port: loudmouth

Description

The build fails with following message:

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/loudmouth/work/loudmouth-1.4.3/loudmouth'
:info:build /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include   -DLM_COMPILATION -DRUNTIME_ENDIAN  -I/opt/local/include  -O2 -arch x86_64 -Wall -I/opt/local/include    -MT lm-error.lo -MD -MP -MF .deps/lm-error.Tpo -c -o lm-error.lo lm-error.c
:info:build /bin/sh ../libtool --tag=CC   --mode=compile /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I..  -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include   -I/opt/local/include   -DLM_COMPILATION -DRUNTIME_ENDIAN  -I/opt/local/include  -O2 -arch x86_64 -Wall -I/opt/local/include    -MT lm-message.lo -MD -MP -MF .deps/lm-message.Tpo -c -o lm-message.lo lm-message.c
:info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -I/opt/local/include -O2 -arch x86_64 -Wall -I/opt/local/include -MT lm-message.lo -MD -MP -MF .deps/lm-message.Tpo -c lm-message.c  -fno-common -DPIC -o .libs/lm-message.o
:info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -I/opt/local/include -O2 -arch x86_64 -Wall -I/opt/local/include -MT lm-error.lo -MD -MP -MF .deps/lm-error.Tpo -c lm-error.c  -fno-common -DPIC -o .libs/lm-error.o
:info:build In file included from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gerror.h:22:2: error: #error "Only <glib.h> can be included directly."
:info:build In file included from /opt/local/include/glib-2.0/glib/gerror.h:30,
:info:build                  from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gquark.h:28:2: error: #error "Only <glib.h> can be included directly."
:info:build In file included from /opt/local/include/glib-2.0/glib/gquark.h:34,
:info:build                  from /opt/local/include/glib-2.0/glib/gerror.h:30,
:info:build                  from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
:info:build In file included from /opt/local/lib/glib-2.0/include/glibconfig.h:9,
:info:build                  from /opt/local/include/glib-2.0/glib/gtypes.h:34,
:info:build                  from /opt/local/include/glib-2.0/glib/gquark.h:34,
:info:build                  from /opt/local/include/glib-2.0/glib/gerror.h:30,
:info:build                  from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
:info:build In file included from /opt/local/include/glib-2.0/glib/gtypes.h:35,
:info:build                  from /opt/local/include/glib-2.0/glib/gquark.h:34,
:info:build                  from /opt/local/include/glib-2.0/glib/gerror.h:30,
:info:build                  from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
:info:build In file included from /opt/local/include/glib-2.0/glib/gtypes.h:36,
:info:build                  from /opt/local/include/glib-2.0/glib/gquark.h:34,
:info:build                  from /opt/local/include/glib-2.0/glib/gerror.h:30,
:info:build                  from lm-error.c:22:
:info:build /opt/local/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
:info:build make[2]: *** [lm-error.lo] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build libtool: compile:  /usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DLM_COMPILATION -DRUNTIME_ENDIAN -I/opt/local/include -O2 -arch x86_64 -Wall -I/opt/local/include -MT lm-message.lo -MD -MP -MF .deps/lm-message.Tpo -c lm-message.c -o lm-message.o >/dev/null 2>&1
:info:build mv -f .deps/lm-message.Tpo .deps/lm-message.Plo
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/loudmouth/work/loudmouth-1.4.3/loudmouth'
: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_ports_net_loudmouth/loudmouth/work/loudmouth-1.4.3'
: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_ports_net_loudmouth/loudmouth/work/loudmouth-1.4.3'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/loudmouth/work/loudmouth-1.4.3" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for loudmouth): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:error:build Failed to install loudmouth
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:build Log for loudmouth is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_loudmouth/loudmouth/main.log

Change History (2)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

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

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