Opened 7 years ago

Closed 6 years ago

#38779 closed defect (fixed)

libgda: build failure

Reported by: dbevans (David B. Evans) Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: libgda

Description

Building on Lion 10.7.5, Xcode 4.6.1, clang

Fails as follows:

:info:build gda-xql-utils.c:97:35: error: incomplete definition of type 'struct _xmlBuf'
:info:build         buffer = g_strdup (outbuf->buffer->content);
:info:build                            ~~~~~~~~~~~~~~^
:info:build /opt/local/include/libxml2/libxml/tree.h:104:16: note: forward declaration of 'struct _xmlBuf'
:info:build typedef struct _xmlBuf xmlBuf;
:info:build                ^

Full build log attached.

Attachments (2)

main.log (567.2 KB) - added by dbevans (David B. Evans) 7 years ago.
patch-libgda.diff (1.3 KB) - added by dbevans (David B. Evans) 6 years ago.
Proposed patch

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by dbevans (David B. Evans)

Attachment: main.log added

comment:1 Changed 6 years ago by ohsumit@…

Hello,

I too am getting this exact error on a similarly configured system. I am trying to build glom and as part of it, libgda. It would be great to know if there is a solution to this. Many thanks!

comment:2 Changed 6 years ago by dbevans (David B. Evans)

Upon revisiting this, I realized that this is the same sort of libxml2 API problem described in #39296. Attached is a proposed patch to solve this problem and rebuild against the more recent version of libxml2.

Changed 6 years ago by dbevans (David B. Evans)

Attachment: patch-libgda.diff added

Proposed patch

comment:3 Changed 6 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Committed in r108662, maintainer timeout.

Note: See TracTickets for help on using tickets.