Bug 207130 - net-im/prosody: pposix.so: Undefined symbol "__aeabi_l2d"
Summary: net-im/prosody: pposix.so: Undefined symbol "__aeabi_l2d"
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-12 11:41 UTC by Daniel
Modified: 2016-02-12 18:51 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (lx)


Attachments
use CC for linking (595 bytes, patch)
2016-02-12 13:49 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2016-02-12 11:41:09 UTC
Running FreeBSD 11 current (either official image or a slightly newer that I compiled yesterday) on a Raspberry Pi 2:

I can build and install Prosody just fine, but get this error when I try to run it:

    /usr/local/lib/prosody/util/pposix.so: Undefined symbol "__aeabi_l2d"

That function seems to only be defined for 64-bit systems, according to contrib/llvm/lib/Target/ARM/ARMISelLowering.cpp.
Comment 1 Mikael Urankar freebsd_committer 2016-02-12 13:49:14 UTC
Created attachment 166897 [details]
use CC for linking

The linker is set to 'ld' which can cause problem if some libraries are not given to 'ld'. Can you try the attached patch?
Comment 2 w.schwarzenfeld 2016-02-12 14:04:18 UTC
On my system poudriere also uses ccache. Same error without ccache in the port.
Comment 3 w.schwarzenfeld 2016-02-12 14:05:01 UTC
Sorry I am in the wrong PR.
Comment 4 Daniel 2016-02-12 14:20:57 UTC
Mikael, this patch took care of the problem.
Comment 5 commit-hook freebsd_committer 2016-02-12 18:16:47 UTC
A commit references this bug:

Author: lx
Date: Fri Feb 12 18:16:16 UTC 2016
New revision: 408744
URL: https://svnweb.freebsd.org/changeset/ports/408744

Log:
  Use CC for linker instead of LD.

  PR:		207130
  Submitted by:	code@daniel.priv.no
  Obtained from:	mikael.urankar@gmail.com

Changes:
  head/net-im/prosody/Makefile
Comment 6 Mikael Urankar freebsd_committer 2016-02-12 18:51:01 UTC
Should we bump PORTREVISION to force the rebuild of the ports?