Bug 83905 - [patch] lang/smalltalk tries to use backtrace_symbols_fd
Summary: [patch] lang/smalltalk tries to use backtrace_symbols_fd
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-22 13:50 UTC by Kostik Belousov
Modified: 2005-07-26 16:51 UTC (History)
0 users

See Also:


Attachments
file.diff (404 bytes, patch)
2005-07-22 13:50 UTC, Kostik Belousov
no flags Details | Diff
file.diff (405 bytes, patch)
2005-07-22 13:50 UTC, Kostik Belousov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kostik Belousov 2005-07-22 13:50:15 UTC
When linking gst binary (smalltalk interpreter itself), the following linker error is raised:

cc -O -pipe -march=pentiumpro -Wall -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -Wno-format -Wno-parentheses -Wpointer-arith -o gst main.o -Wl,--export-dynamic  -L/usr/local/lib libgst/.libs/libgst.a -lreadline -lm
libgst/.libs/libgst.a(interp.o)(.text+0x138ef): In function `interrupt_handler':
: undefined reference to `backtrace'
libgst/.libs/libgst.a(interp.o)(.text+0x13907): In function `interrupt_handler':
: undefined reference to `backtrace_symbols_fd'

This is glibc-specific interfaces, available under FreeBSD as devel/libexecinfo.

Fix: Add explicit devel/libexecinfo dependency to the port:

RCS file: /usr/local/arch/ncvs/ports/lang/smalltalk/Makefile,v
retrieving revision 1.60
and put the following patch into lang/smalltalk/files:
deviant% cat files/patch-libgst-Makefile.in
How-To-Repeat: Do an install of the lang/smalltalk (ver. 2.1.5_1)
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-07-26 16:50:29 UTC
State Changed
From-To: open->closed

Committed, thanks! 
Please use /usr/ports/Tools/scripts/patchtool.py for new patches 
and cvs diff -urN to get a patch which is easier applicable next time.