Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#14799 closed patch (fixed)

pidgin-2.10.1 fails to build due to missing -lm linker flag

Reported by: ncopa Owned by: rekkanoryo
Milestone: 2.10.2 Component: unclassified
Version: 2.10.0 Keywords:
Cc:

Description

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.

Attachments (1)

pidgin-libm.patch (216 bytes) - added by ncopa 7 years ago.
add -lm to pidgin_LDADD

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by ncopa

add -lm to pidgin_LDADD

comment:1 Changed 7 years ago by qulogic@…

  • Milestone set to 3.0.0
  • Resolution set to fixed
  • Status changed from new to closed

(In 1270f4e5ab858ed24cdaf179e71fedea82ea9e09):
Check for libm. I think I read somewhere that GDK pixbuf dropped its dependency on it, which is probably why this is showing up now.

Closes #14799.

comment:2 Changed 7 years ago by markdoliner@…

  • Milestone changed from 3.0.0 to 2.10.2

(In 55e8711512be87f2d917ee78e0659ca9d27b8377):
* Plucked 1270f4e5ab858ed24cdaf179e71fedea82ea9e09 (qulogic@…): Check for libm. I think I read somewhere that GDK pixbuf dropped its dependency on it, which is probably why this is showing up now.

Closes #14799.

Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!