Bug 278638 - www/librewolf builds on arm64.aarch64 but will not run
Summary: www/librewolf builds on arm64.aarch64 but will not run
Status: Closed DUPLICATE of bug 277021
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-28 12:25 UTC by void
Modified: 2024-04-30 12:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description void 2024-04-28 12:25:54 UTC
Hi,

www/librewolf builds fine in poudriere and installs but will not run, giving the following error when it's started:

XPCOMGlueLoad error for file /usr/local/lib/librewolf/libgkcodecs.so:
/usr/local/lib/librewolf/libgkcodecs.so: Undefined symbol "sin"
Couldn't load XPCOM.

This is on arm64 (raspberry pi 4)

###
[00:00:00] Port dir last git commit: e3410d88a186
[00:00:00] Port dir unclean checkout: no
[00:00:00] Poudriere version: poudriere-git-3.4.99.20240424
[00:00:00] Host OSVERSION: 1500018
[00:00:00] Jail OSVERSION: 1500018
#
[00:00:00] 
[00:00:00] ---Begin OPTIONS List---
[00:00:00] ===> The following configuration options are available for librewolf-124.0.1.1:
[00:00:00]      CANBERRA=off: Sound theme alerts
[00:00:00]      DBUS=on: D-Bus IPC system support
[00:00:00]      DEBUG=off: Build with debugging support
[00:00:00]      FFMPEG=off: FFmpeg support (WMA, AIFF, AC3, APE...)
[00:00:00]      LIBPROXY=off: Proxy support via libproxy
[00:00:00]      LTO=off: Use Link-Time Optimization
[00:00:00]      OPTIMIZED_CFLAGS=on: Use extra compiler optimizations
[00:00:00]      PROFILE=on: Build with profiling support
[00:00:00]      TEST=off: Build and/or run tests
[00:00:00] ====> Extra cubeb audio backends (OSS is always available)
[00:00:00]      ALSA=off: ALSA audio architecture support
[00:00:00]      JACK=off: JACK audio server support
[00:00:00]      PULSEAUDIO=off: PulseAudio sound server support
[00:00:00]      SNDIO=off: Sndio audio support
Comment 1 Martin Filla 2024-04-28 12:50:12 UTC
Hi,
thank you for the report. Here is the solution https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277021#c15 
You try add LDFLAGS+=	-lm
Comment 2 void 2024-04-28 13:43:11 UTC
(In reply to Martin Filla from comment #1)

Thank you :D

trying to build with that flag now; it'll be a while on this hardware though
Comment 3 void 2024-04-29 10:28:20 UTC
(In reply to Martin Filla from comment #1)

On this platform (arm64) I rebuilt with this in poudriere's make.conf:

.if ${.CURDIR:M*/www/firefox}
LDFLAGS+=       -lm
.endif
#
.if ${.CURDIR:M*/www/librefox}
LDFLAGS+=       -lm
.endif

suggested in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277021#c41 because of all the methods in the above ticket, it seems to be the easiest.

thanks again for the solution
Comment 4 void 2024-04-29 11:12:21 UTC
sorry that should read 

.if ${.CURDIR:M*/www/firefox}
LDFLAGS+=       -lm
.endif
#
.if ${.CURDIR:M*/www/librewolf}
LDFLAGS+=       -lm
.endif
Comment 5 void 2024-04-30 12:01:37 UTC

*** This bug has been marked as a duplicate of bug 277021 ***