HOST_NOT_FOUND symbol conflicts

Bug #283551 reported by Mitsuya Shibata
6
Affects Status Importance Assigned to Milestone
glibmm2.4 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

HOST_NOT_FOUND symbol conflicts netdb.h in glibmm2.4 2.18.0. This problem cause FTBFS bug for a package (some packages?). Latest upstream (trunk) resolved this problem, but 2.18.0 branch are fixed it. Please backport upstream patch.

Upstream bug report:
http://bugzilla.gnome.org/show_bug.cgi?id=529496

Upstream patch:
http://svn.gnome.org/viewvc/glibmm/trunk/gio/src/error.hg?r1=544&r2=735

Fedora's resolution:
https://bugzilla.redhat.com/show_bug.cgi?id=449225
http://cvs.fedoraproject.org/viewvc/rpms/glibmm24/devel/glibmm-2.18.0-gio-header-fix.patch?view=log

Affected package:
https://bugs.launchpad.net/ubuntu/+source/jd/+bug/274062

Reproducer from GNOME bugzilla:
test.cc
---
#include <netdb.h>
#include <giomm/file.h>

int main()
{
  Gio::File::create_for_path("");
  return 0;
}
---
sudo apt-get install libglibmm-2.4-dev pkg-config build-essential
g++ `pkg-config --cflags --libs giomm-2.4` test.cc -o test

Error:
In file included from /usr/include/giomm-2.4/giomm/file.h:39,
                 from test.cc:2:
/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

Revision history for this message
Murray Cumming (murrayc) wrote :

Or you could just wait for a new glibmm upsream tarball?

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

> Cumming

Yes, new upstream release is best solution, if it release and glibmm2.4 package is updated until intrepid last freeze. But no time, I think I should prepare another choice too.

description: updated
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your work there, there is a new version available which fix the issue, could you do the update?

Changed in glibmm2.4:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

Thank you for your information. In Debian experimental, package has already been prepared for new upstream release. Because its package seems to fix this bug, I change my request to "Sync".

Debian changelog is following:
 glibmm2.4 (2.18.1-1) experimental; urgency=low

   * New upstream stable release.
   * Use POSIX standard regex classes in sed trick in debian/rules.

 -- Deng Xiyue <email address hidden> Tue, 21 Oct 2008 22:29:45 +0800

Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Ack'ed for intrepid final, changelog looks reasonable.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Getting binaries for intrepid...
[Updating] glibmm2.4 (2.18.0-1 [Ubuntu] < 2.18.1-1 [Debian])
 * Trying to add glibmm2.4...
  - <glibmm2.4_2.18.1-1.dsc: downloading from http://ftp.debian.org/debian/>
  - <glibmm2.4_2.18.1-1.diff.gz: downloading from http://ftp.debian.org/debian/>
  - <glibmm2.4_2.18.1.orig.tar.gz: downloading from http://ftp.debian.org/debian/>
I: glibmm2.4 [main] -> libglibmm-2.4-1c2a_2.18.0-1 [main].
I: glibmm2.4 [main] -> libglibmm-2.4-dev_2.18.0-1 [main].
I: glibmm2.4 [main] -> libglibmm-2.4-dbg_2.18.0-1 [main].
I: glibmm2.4 [main] -> libglibmm-2.4-doc_2.18.0-1 [main].

Changed in glibmm2.4:
status: Incomplete → Fix Released
Revision history for this message
Mitsuya Shibata (cosmos-door) wrote :

Thank you for your uploading!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.