Bug 177008 - [kmod.mk] [patch] EXPORT_SYMS make variable is broken for more than one symbol
Summary: [kmod.mk] [patch] EXPORT_SYMS make variable is broken for more than one symbol
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-15 23:40 UTC by Godfrey van der Linden
Modified: 2019-03-31 11:14 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (687 bytes, patch)
2013-03-15 23:40 UTC, Godfrey van der Linden
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Godfrey van der Linden 2013-03-15 23:40:00 UTC
src/sys/modules/mii/Makefile defines


EXPORT_SYMS=	mii_attach	\
		mii_bitbang_readreg \
		mii_bitbang_sync \
		mii_bitbang_writereg \
		mii_mediachg	\
		mii_pollstat	\
		mii_tick

But no symbols are actually exported, they are all local..

Fix: One liner to src/sys/conf/kmod.mk and add TR executable to sys.mk:


$ svn diff share/mk sys/conf > /tmp/fbsd-1.txt 
How-To-Repeat: cd src
make build-kernel

Run nm -g miibus.ko from where ever it lives in the obj tree.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:30 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Andriy Voskoboinyk freebsd_committer freebsd_triage 2019-03-31 11:14:41 UTC
Fixed in base r329373 (checked with sys/modules/libiconv).