Opened 12 years ago

Closed 12 years ago

#34242 closed defect (fixed)

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

Reported by: montistefano@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: libgda

Description

Failed to install libgda, as dependance of gtk-sharp or anyway libgda stand alone, when try to include glib-2.0.

Attachments (3)

main.log (147.5 KB) - added by montistefano@… 12 years ago.
libgda install main.log
Portfile.diff (671 bytes) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
patch-glib-2.32.diff (12.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 12 years ago by montistefano@…

Attachment: main.log added

libgda install main.log

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

Cc: montistefano at me.com removed
Keywords: libgda gtk-sharp glib removed
Milestone: MacPorts 2.1.0
Owner: changed from macports-tickets@… to landonf@…
Summary: Failed to install libgda 1.2.4libgda: #error "Only <glib.h> can be included directly."

Same glib2 2.32 incompatibility we've fixed in lots of other ports already. I'll see if I can make a patch.

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: Portfile.diff added

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: patch-glib-2.32.diff added

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

Cc: ryandesign@… added
Keywords: haspatch added

Ok, here's the patch. The port's revision is increased because some of the files libgda installs are modified by the patch.

comment:3 Changed 12 years ago by montistefano@…

Thanks apply the diff was like a charm I moved to cd $(port dir libgda) The command short me to /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/gnome/libgda/ But, I suspect, this was the wrong directory, because the patch won't find the right files I moved manually to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_libgda/libgda/work/libgda-1.2.4/libgda there I've apply sudo patch -p0 < ~/Downloads/patch-glib-2.32.diff and the patch was applied in a second. I build gtk-sharp with sudo port install gtk-sharp then he have individuate the last dependencies libgda and build it correctly, finally. But gtk-sharp won't build because of an error with make in glib-2.0 step ;( ( gtk use another copy of glib? ). I must open a new ticket for this, right?

comment:4 in reply to:  3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to montistefano@…:

But gtk-sharp won't build because of an error with make in glib-2.0 step ;( ( gtk use another copy of glib? ). I must open a new ticket for this, right?

Yes please. This ticket is about libgda.

comment:5 Changed 12 years ago by montistefano@…

Very thanks, to maintain the history for the rest of us I have opened ticket #34272

comment:6 in reply to:  2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to ryandesign@…:

Ok, here's the patch. The port's revision is increased because some of the files libgda installs are modified by the patch.

r92698

Note: See TracTickets for help on using tickets.