Subject: port-alpha/32047: modload pf.o fails with undefined reference to 'bswap64'
To: None <port-alpha-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <kula@tproa.net>
List: netbsd-bugs
Date: 11/10/2005 21:28:01
>Number:         32047
>Category:       port-alpha
>Synopsis:       modload pf.o fails with undefined reference to 'bswap64'
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 10 21:28:00 +0000 2005
>Originator:     Thomas Kula
>Release:        2.0.2
>Organization:
>Environment:
NetBSD router-1.tproa.net 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Tue Mar 22 03:47:43 UTC 2005  builds@works.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/alpha/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/alpha/compile/GENERIC alpha
>Description:
Trying to modload pf.o fails with undefined references to 'bswap64' on an alpha machine
>How-To-Repeat:
install security/pflkm from pkgsrc
modload /usr/pkg/lkm/pf.o

/usr/pkg/lkm/pf.o(.text+0x1858): In function `pfsync_input':
: undefined reference to `bswap64'
/usr/pkg/lkm/pf.o(.text+0x185c): In function `pfsync_input':
: undefined reference to `bswap64'
/usr/pkg/lkm/pf.o(.text+0x2228): In function `pfsync_input':
: undefined reference to `bswap64'
/usr/pkg/lkm/pf.o(.text+0x222c): In function `pfsync_input':
: undefined reference to `bswap64'
/usr/pkg/lkm/pf.o(.text+0x9ecc): In function `pf_insert_state':
: undefined reference to `bswap64'
/usr/pkg/lkm/pf.o(.text+0x9ed0): more undefined references to `bswap64' follow
modload: can't prelink `/usr/pkg/lkm/pf.o' creating `/usr/pkg/lkm/pf'


Seems to be closely related to port-mips/31857, the suggested fix there does not seem to work on an alpha (unknown if it is supposed to at all)

>Fix: