Bug 38882 - lang/scm can't load external modules
Summary: lang/scm can't load external modules
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 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-04 07:50 UTC by Hiroyuki Une
Modified: 2002-06-05 01:43 UTC (History)
0 users

See Also:


Attachments
file.diff (371 bytes, patch)
2002-06-04 07:50 UTC, Hiroyuki Une
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroyuki Une 2002-06-04 07:50:01 UTC
ports/lang/scm(scm-5d6) has loadable module support,
but this port fails to load external modules.
This failure is occured when scm calls dlsym(3)
to access external modules.

Fix: Apply this patch to ports/lang/scm/patch-build.scm and rebuild.
This patch appends linker option "-export-dynamic"
to build scm executable.
How-To-Repeat: 
%script scm
Script started on Fri May 31 19:52:00 2002
SCM version 5d6, Copyright (C) 1990-1999 Free Software Foundation.
SCM comes with ABSOLUTELY NO WARRANTY; for details type `(terms)'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `(terms)' for details.
;loading /usr/local/lib/scm/slib/require
;done loading /usr/local/lib/scm/slib/require.scm
;loading /usr/local/lib/scm/Link
;done loading /usr/local/lib/scm/Link.scm
;loading /usr/local/lib/scm/Transcen
;done loading /usr/local/lib/scm/Transcen.scm
> (error "This is test")
ERROR: This is test

;STACK TRACE
1; (#@define ((cep (#@current-error-port)))  (#@if (#@acro-call d ...
2; (#@error "This is test")

 * Breakpoint established: (continue <val>) to return.
;loading /usr/local/lib/scm/slib/debug
;  loading /usr/local/lib/scm/slib/trace
;    loading /usr/local/lib/scm/slib/qp
;    done loading /usr/local/lib/scm/slib/qp.scm
;    loading /usr/local/lib/scm/slib/alist
;    done loading /usr/local/lib/scm/slib/alist.scm
;  done loading /usr/local/lib/scm/slib/trace.scm
;  loading /usr/local/lib/scm/slib/break
;  done loading /usr/local/lib/scm/slib/break.scm
dyn:link: /usr/local/lib/scm/ioext.so: Undefined symbol "s_try_create_file"

;While loading "/usr/local/lib/scm/slib/debug.scm", line 22: ERROR: Couldn't link files  ("/usr/local/lib/scm/ioext.so")

;STACK TRACE
1; (#@define ((cep (#@current-error-port)))  (#@if (#@acro-call d ...
2; (#@let* ((path (#@catalog:get #@feature)))  (#@cond ((#@and (# ...
...

 * Breakpoint established: (continue <val>) to return.
;  loading /usr/local/lib/scm/slib/debug
dyn:link: /usr/local/lib/scm/ioext.so: Undefined symbol "s_try_create_file"

	(repeat until scm is killed)

Script done on Fri May 31 19:52:16 2002
Comment 1 Pete Fritchman freebsd_committer freebsd_triage 2002-06-05 01:43:25 UTC
State Changed
From-To: open->closed

Committed, thanks!