DSO Link Changes #3

Closed
opened 2015-03-13 18:33:14 +01:00 by GoogleCodeExporter · 2 comments
GoogleCodeExporter commented 2015-03-13 18:33:14 +01:00 (Migrated from github.com)
Fix:
Explicitly link to libm:
sed -i 's/^LIBS\s\+=.*/\0 m/' Makefile

What is the expected output? What do you see instead?
/usr/bin/ld: objs/astexpression.o: undefined reference to symbol 
'atan2@@GLIBC_2.0'
/usr/bin/ld: note: 'atan2@@GLIBC_2.0' is defined in DSO /usr/lib/libm.so.6 so 
try adding it to the linker command line
/usr/lib/libm.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [cfdg] Error 1


What version of the product are you using? On what operating system?
ContextFree 3.0 compressed tarball (v17)
Linux 3.4.6-1-ARCH #1 SMP PREEMPT i686 GNU/Linux


Please provide any additional information below.
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange


Original issue reported on code.google.com by OrbisVi...@gmail.com on 20 Aug 2012 at 7:34

``` Fix: Explicitly link to libm: sed -i 's/^LIBS\s\+=.*/\0 m/' Makefile What is the expected output? What do you see instead? /usr/bin/ld: objs/astexpression.o: undefined reference to symbol 'atan2@@GLIBC_2.0' /usr/bin/ld: note: 'atan2@@GLIBC_2.0' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line /usr/lib/libm.so.6: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make: *** [cfdg] Error 1 What version of the product are you using? On what operating system? ContextFree 3.0 compressed tarball (v17) Linux 3.4.6-1-ARCH #1 SMP PREEMPT i686 GNU/Linux Please provide any additional information below. http://fedoraproject.org/wiki/UnderstandingDSOLinkChange ``` Original issue reported on code.google.com by `OrbisVi...@gmail.com` on 20 Aug 2012 at 7:34
GoogleCodeExporter commented 2015-03-13 18:33:14 +01:00 (Migrated from github.com)
libm will be added to Makefile in version 3.0.5

Original comment by j...@glyphic.com on 12 Jan 2013 at 8:12

  • Changed state: Started
``` libm will be added to Makefile in version 3.0.5 ``` Original comment by `j...@glyphic.com` on 12 Jan 2013 at 8:12 - Changed state: **Started**
MtnViewJohn commented 2015-03-14 07:10:57 +01:00 (Migrated from github.com)

libm has been added to the Makefile

libm has been added to the Makefile
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: john/context-free#3
No description provided.