[Pidgin] #14799: pidgin-2.10.1 fails to build due to missing -lm linker flag
Pidgin
trac at pidgin.im
Sun Dec 11 09:23:39 EST 2011
#14799: pidgin-2.10.1 fails to build due to missing -lm linker flag
--------------------------+-------------------------------------------------
Reporter: ncopa | Owner: rekkanoryo
Type: patch | Status: new
Component: unclassified | Version: 2.10.0
Keywords: |
--------------------------+-------------------------------------------------
The file gtkimhtmltoolbar.c uses floor(3). According to man floor(3) you
should link with -lm.
On Alpine Linux (uClibc) it fails to build:
{{{
CCLD pidgin
/usr/lib/gcc/i486-alpine-linux-uclibc/4.6.2/../../../../i486-alpine-linux-
uclibc/bin/ld: gtkimhtmltoolbar.o: undefined reference to symbol 'floor'
/usr/lib/gcc/i486-alpine-linux-uclibc/4.6.2/../../../../i486-alpine-linux-
uclibc/bin/ld: note: 'floor' is defined in DSO /lib/libm.so.0.9.32 so try
adding it to the linker command line
/lib/libm.so.0.9.32: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [pidgin] Error 1
}}}
I suspect glibc based distros will have same issue when they upgrade
binutils to 2.22.
--
Ticket URL: <http://developer.pidgin.im/ticket/14799>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list