Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498872 - app-i18n/kanjipad-2.0.0 - ld: padarea.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'
Summary: app-i18n/kanjipad-2.0.0 - ld: padarea.o: undefined reference to symbol 'sqrt@...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2014-01-22 02:34 UTC by Kalin KOZHUHAROV
Modified: 2014-01-25 05:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kalin KOZHUHAROV 2014-01-22 02:34:12 UTC
This recently broke like:

# FEATURES=-distcc MAKEOPTS=-j1 emerge kanjipad
>>> Emerging (1 of 1) app-i18n/kanjipad-2.0.0
 * kanjipad-2.0.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking kanjipad-2.0.0.tar.gz to /var/tmp/portage/app-i18n/kanjipad-2.0.0/work
>>> Source unpacked in /var/tmp/portage/app-i18n/kanjipad-2.0.0/work
>>> Preparing source in /var/tmp/portage/app-i18n/kanjipad-2.0.0/work/kanjipad-2.0.0 ...
 * Applying kanjipad-2.0.0-cflags.patch ...                                                                                                                                            [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-i18n/kanjipad-2.0.0/work/kanjipad-2.0.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/app-i18n/kanjipad-2.0.0/work/kanjipad-2.0.0 ...
make -j1 
x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2   -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"/usr/share/kanjipad\" -DBINDIR=\"/usr/bin\"   -c -o kpengine.o kpengine.c
x86_64-pc-linux-gnu-gcc -c -o scoring.o -O2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2   -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"/usr/share/kanjipad\" -DBINDIR=\"/usr/bin\" -Ijstroke jstroke/scoring.c
x86_64-pc-linux-gnu-gcc -c -o util.o -O2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2   -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"/usr/share/kanjipad\" -DBINDIR=\"/usr/bin\" -Ijstroke jstroke/util.c
x86_64-pc-linux-gnu-gcc -o kpengine kpengine.o scoring.o util.o -lglib-2.0  -Wl,-O1 -Wl,--as-needed
x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2   -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"/usr/share/kanjipad\" -DBINDIR=\"/usr/bin\"   -c -o kanjipad.o kanjipad.c
x86_64-pc-linux-gnu-gcc -O2 -pipe -Wall -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2   -DFOR_PILOT_COMPAT -DKP_LIBDIR=\"/usr/share/kanjipad\" -DBINDIR=\"/usr/bin\"   -c -o padarea.o padarea.c
x86_64-pc-linux-gnu-gcc -o kanjipad kanjipad.o padarea.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype  -Wl,-O1 -Wl,--as-needed
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: padarea.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'sqrt@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
/lib64/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [kanjipad] Error 1
emake failed



Manually adding "-lm" as suggested to the last command seems to fix the problem, but not sure where is the appropriate place to patch it.

For some reason it used to work before some updates, but I guess it broke with glibc-2.17:
# genlop kanjipad|tail -n4
     Wed Oct  9 19:09:29 2013 >>> app-i18n/kanjipad-2.0.0
     Wed Oct  9 19:26:27 2013 >>> app-i18n/kanjipad-2.0.0
     Fri Nov 29 13:16:47 2013 >>> app-i18n/kanjipad-2.0.0
# genlop glibc|tail -n4
     Fri Nov 29 15:27:40 2013 >>> sys-libs/glibc-2.16.0
     Mon Jan  6 13:21:36 2014 >>> sys-libs/glibc-2.17
     Wed Jan 22 06:25:34 2014 >>> sys-libs/glibc-2.17

May be it is upstream bug, may be not.
Comment 1 Naohiro Aota gentoo-dev 2014-01-25 05:39:06 UTC
@@ -4,0 +5,4 @@
+  25 Jan 2014; Naohiro Aota <naota@gentoo.org>
+  +files/kanjipad-2.0.0-underlinking.patch, kanjipad-2.0.0.ebuild:
+  Add patch to deal with underlinking. #498872
+