undefined ref to few functions.

Bug #1410762 reported by Sagar Ghuge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libcanberra (Ubuntu)
New
Undecided
Unassigned

Bug Description

make[4]: Entering directory '/home/sagarghuge/checkout/gnome/gtk+/demos/widget-factory'
  CCLD gtk3-widget-factory
/usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libcanberra-gtk3.so: undefined reference to `gdk_x11_window_get_xid'
/usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libcanberra-gtk3.so: undefined reference to `gdk_x11_get_xatom_by_name_for_display'
/usr/lib/gcc/i686-linux-gnu/4.9/../../../i386-linux-gnu/libcanberra-gtk3.so: undefined reference to `gdk_x11_display_get_xdisplay'
collect2: error: ld returned 1 exit status
Makefile:634: recipe for target 'gtk3-widget-factory' failed
make[4]: *** [gtk3-widget-factory] Error 1
make[4]: Leaving directory '/home/sagarghuge/checkout/gnome/gtk+/demos/widget-factory'
Makefile:548: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/home/sagarghuge/checkout/gnome/gtk+/demos/widget-factory'
Makefile:525: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/sagarghuge/checkout/gnome/gtk+/demos'
Makefile:707: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/sagarghuge/checkout/gnome/gtk+'
Makefile:600: recipe for target 'all' failed
make: *** [all] Error 2

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1410762] [NEW] undefined ref to few functions.

Have you made sure you have all the build dependencies for libcanberra installed? You can do this from the command-line with "sudo apt-get build-dep libcanberra"

Revision history for this message
Sagar Ghuge (ghugesss) wrote :

Hi Luke,

Thanks for replying, Yes I have all dependencies for libcanberra installed.

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1410762] Re: undefined ref to few functions.

How are you building the package? Using the packaging commands, i.e ./debian/rules build?

I ask because if you are running configure make etc by hand, then the configure process may not be finding the GTK and GDK libraries, which are in a multi-arch aware path, i.e /usr/lib/x86_64-linux-gnu.

Revision history for this message
Sagar Ghuge (ghugesss) wrote :

I am using ubuntu 14.10. I had already installed libcanberra with sudo apt but as I build Gtk using jhbuild I also built the libcanberra using jhbuild

Revision history for this message
Sagar Ghuge (ghugesss) wrote :

Hey Luke,

Can you please suggest me any workaround to fix this issue ASAP.

I am not able to develop anything just because of Gtk+ :(

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.