Opened 13 years ago

Closed 11 years ago

#328 closed Bug Report (fixed)

SVN 1921 fails to build. giomm, HOST_NOT_FOUND issue

Reported by: chris@… Owned by:
Priority: major Component: SLV2
Keywords: Cc:

Description

[171/262] cxx: ingen/src/gui/ControlPanel.cpp -> build/default/ingen/src/gui/ControlPanel_1.o In file included from /usr/include/giomm-2.4/giomm/file.h:39,

from /usr/include/giomm-2.4/giomm/mount.h:29, from /usr/include/giomm-2.4/giomm/drive.h:28, from /usr/include/giomm-2.4/giomm.h:30, from /usr/include/gtkmm-2.4/gtkmm.h:30, from /usr/include/libgnomecanvasmm-2.6/libgnomecanvasmm.h:29, from ../ingen/src/gui/App.hpp:26, from ../ingen/src/gui/ConnectWindow.cpp:43:

/usr/include/giomm-2.4/giomm/error.h:72: error: expected identifier before numeric constant /usr/include/giomm-2.4/giomm/error.h:72: error: expected `}' before numeric constant /usr/include/giomm-2.4/giomm/error.h:72: error: expected unqualified-id before numeric constant /usr/include/giomm-2.4/giomm/error.h:78: error: expected `)' before ‘error_code’ /usr/include/giomm-2.4/giomm/error.h:79: error: expected `)' before ‘*’ token /usr/include/giomm-2.4/giomm/error.h:80: error: ‘Code’ does not name a type /usr/include/giomm-2.4/giomm/error.h:83: error: expected unqualified-id before ‘private’ /usr/include/giomm-2.4/giomm/error.h:92: error: ‘friend’ used outside of class /usr/include/giomm-2.4/giomm/error.h:97: error: expected declaration before ‘}’ token Build failed

-> task failed (err #1):

{task: cxx ConnectWindow?.cpp -> ConnectWindow_1.o}

grep HOST_NOT_FOUND /usr/include/*

/usr/include/netdb.h:#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found. */

Change History (4)

comment:1 Changed 13 years ago by MIEM.Artem@…

Resolution: fixed
Status: newclosed

try: #undef HOST_NOT_FOUND

comment:2 in reply to:  1 Changed 11 years ago by anonymous

I've got the same problem. I can't compile. What's #undef HOST_NOT_FOUND ?

comment:3 Changed 11 years ago by anonymous

Resolution: fixed
Status: closedreopened

I reopen the issue.

comment:4 Changed 11 years ago by David Robillard

Resolution: fixed
Status: reopenedclosed

Worked around in r2704.

Whoever thought it was OK to take a global symbol in a public header like is fired.

Note: See TracTickets for help on using tickets.