NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/53915: compat merge causing kernel link failure
The following reply was made to PR kern/53915; it has been noted by GNATS.
From: Paul Goyette <paul%whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: kern/53915: compat merge causing kernel link failure
Date: Mon, 28 Jan 2019 05:13:56 +0800 (PST)
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-1933986094-1548623636=:28231
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
The compat_linux code requires compat_43.
And the compat_freebsd code requires compat_09.
Please try the following (and attached) patch:
Index: src/sys/conf/files
===================================================================
RCS file: /cvsroot/src/sys/conf/files,v
retrieving revision 1.1222
diff -u -p -r1.1222 files
--- src/sys/conf/files 27 Jan 2019 02:08:41 -0000 1.1222
+++ src/sys/conf/files 27 Jan 2019 21:12:50 -0000
@@ -151,8 +151,8 @@ defflag opt_compat_netbsd.h COMPAT_11: C
defflag opt_compat_netbsd.h COMPAT_10: COMPAT_11, COMPAT_NETBSD
defflag opt_compat_netbsd.h COMPAT_09: COMPAT_10, COMPAT_NETBSD
defflag COMPAT_OSSAUDIO
-defflag COMPAT_FREEBSD: COMPAT_30
-defflag COMPAT_LINUX: COMPAT_NETBSD
+defflag COMPAT_FREEBSD: COMPAT_09
+defflag COMPAT_LINUX: COMPAT_NETBSD COMPAT_NETBSD43
defflag COMPAT_OSF1
defflag COMPAT_SUNOS: COMPAT_30
defflag COMPAT_ULTRIX: COMPAT_50
> ld -Map netbsd.map --cref -T netbsd.ldscript -Ttext c0100000 -e start -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
> linux_sysent.o:(.data+0x184): undefined reference to `compat_43_sys_lseek'
> linux_sysent.o:(.data+0x5d0): undefined reference to `compat_43_sys_sethostname'
> linux_sysent.o:(.data+0x698): undefined reference to `compat_43_sys_lstat'
> linux_sysent.o:(.data+0x738): undefined reference to `compat_43_sys_truncate'
> linux_sysent.o:(.data+0x74c): undefined reference to `compat_43_sys_ftruncate'
> freebsd_sysent.o:(.data+0xa8): undefined reference to `compat_43_sys_creat'
> freebsd_sysent.o:(.data+0x184): undefined reference to `compat_43_sys_lseek'
> freebsd_sysent.o:(.data+0x300): undefined reference to `compat_43_sys_stat'
> freebsd_sysent.o:(.data+0x328): undefined reference to `compat_43_sys_lstat'
> freebsd_sysent.o:(.data+0x4e0): undefined reference to `compat_43_sys_fstat'
> freebsd_sysent.o:(.data+0x4f4): undefined reference to `compat_43_sys_getkerninfo'
> freebsd_sysent.o:(.data+0x508): undefined reference to `compat_43_sys_getpagesize'
> freebsd_sysent.o:(.data+0x594): undefined reference to `compat_43_sys_mmap'
> freebsd_sysent.o:(.data+0x698): undefined reference to `compat_43_sys_wait'
> freebsd_sysent.o:(.data+0x6d4): undefined reference to `compat_43_sys_gethostname'
> freebsd_sysent.o:(.data+0x6e8): undefined reference to `compat_43_sys_sethostname'
> freebsd_sysent.o:(.data+0x6fc): undefined reference to `compat_43_sys_getdtablesize'
> freebsd_sysent.o:(.data+0x7c4): undefined reference to `compat_43_sys_accept'
> freebsd_sysent.o:(.data+0x7ec): undefined reference to `compat_43_sys_send'
> freebsd_sysent.o:(.data+0x800): undefined reference to `compat_43_sys_recv'
> freebsd_sysent.o:(.data+0x878): undefined reference to `compat_43_sys_sigvec'
> freebsd_sysent.o:(.data+0x88c): undefined reference to `compat_43_sys_sigblock'
> freebsd_sysent.o:(.data+0x8a0): undefined reference to `compat_43_sys_sigsetmask'
> freebsd_sysent.o:(.data+0x8c8): undefined reference to `compat_43_sys_sigstack'
> freebsd_sysent.o:(.data+0x8dc): undefined reference to `compat_43_sys_recvmsg'
> freebsd_sysent.o:(.data+0x8f0): undefined reference to `compat_43_sys_sendmsg'
> freebsd_sysent.o:(.data+0x9cc): undefined reference to `compat_43_sys_recvfrom'
> freebsd_sysent.o:(.data+0xa1c): undefined reference to `compat_43_sys_truncate'
> freebsd_sysent.o:(.data+0xa30): undefined reference to `compat_43_sys_ftruncate'
> freebsd_sysent.o:(.data+0xb0c): undefined reference to `compat_43_sys_getpeername'
> freebsd_sysent.o:(.data+0xb20): undefined reference to `compat_43_sys_gethostid'
> freebsd_sysent.o:(.data+0xb34): undefined reference to `compat_43_sys_sethostid'
> freebsd_sysent.o:(.data+0xb48): undefined reference to `compat_43_sys_getrlimit'
> freebsd_sysent.o:(.data+0xb5c): undefined reference to `compat_43_sys_setrlimit'
> freebsd_sysent.o:(.data+0xb70): undefined reference to `compat_43_sys_killpg'
> freebsd_sysent.o:(.data+0xbac): undefined reference to `compat_43_sys_quota'
> freebsd_sysent.o:(.data+0xbc0): undefined reference to `compat_43_sys_getsockname'
> freebsd_sysent.o:(.data+0xc38): undefined reference to `compat_43_sys_getdirentries'
> freebsd_sysent.o:(.data+0xcb0): undefined reference to `compat_09_sys_getdomainname'
> freebsd_sysent.o:(.data+0xcc4): undefined reference to `compat_09_sys_setdomainname'
> freebsd_sysent.o:(.data+0xcd8): undefined reference to `compat_09_sys_uname'
> How-To-Repeat:
> Build a kernel in which a couple of COMPAT_ lines in the config
> are commented out and which also have COMPAT_LINUX and/or COMPAT_FREEBSD
>> Fix:
> No problem building a 8.99.31 kernel right before the compat
> merge with the same config file (although that kernel crashes
> in the atapi attach code due to referencering a null pointer)
>
>
> !DSPAM:5c4e1d0b164211834365706!
>
>
+------------------+--------------------------+----------------------------+
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| (Retired) | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+
--0-1933986094-1548623636=:28231
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=files.diff
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.1901280513560.28231%speedy.whooppee.com@localhost>
Content-Description:
Content-Disposition: attachment; filename=files.diff
SW5kZXg6IHNyYy9zeXMvY29uZi9maWxlcw0KPT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PQ0KUkNTIGZpbGU6IC9jdnNyb290L3NyYy9zeXMvY29uZi9maWxlcyx2
DQpyZXRyaWV2aW5nIHJldmlzaW9uIDEuMTIyMg0KZGlmZiAtdSAtcCAtcjEu
MTIyMiBmaWxlcw0KLS0tIHNyYy9zeXMvY29uZi9maWxlcwkyNyBKYW4gMjAx
OSAwMjowODo0MSAtMDAwMAkxLjEyMjINCisrKyBzcmMvc3lzL2NvbmYvZmls
ZXMJMjcgSmFuIDIwMTkgMjE6MTI6NTAgLTAwMDANCkBAIC0xNTEsOCArMTUx
LDggQEAgZGVmZmxhZwlvcHRfY29tcGF0X25ldGJzZC5oCUNPTVBBVF8xMTog
Qw0KIGRlZmZsYWcJb3B0X2NvbXBhdF9uZXRic2QuaAlDT01QQVRfMTA6IENP
TVBBVF8xMSwgQ09NUEFUX05FVEJTRA0KIGRlZmZsYWcJb3B0X2NvbXBhdF9u
ZXRic2QuaAlDT01QQVRfMDk6IENPTVBBVF8xMCwgQ09NUEFUX05FVEJTRA0K
IGRlZmZsYWcJCQkJQ09NUEFUX09TU0FVRElPDQotZGVmZmxhZwkJCQlDT01Q
QVRfRlJFRUJTRDogQ09NUEFUXzMwDQotZGVmZmxhZwkJCQlDT01QQVRfTElO
VVg6IENPTVBBVF9ORVRCU0QNCitkZWZmbGFnCQkJCUNPTVBBVF9GUkVFQlNE
OiBDT01QQVRfMDkNCitkZWZmbGFnCQkJCUNPTVBBVF9MSU5VWDogQ09NUEFU
X05FVEJTRCBDT01QQVRfTkVUQlNENDMNCiBkZWZmbGFnCQkJCUNPTVBBVF9P
U0YxDQogZGVmZmxhZwkJCQlDT01QQVRfU1VOT1M6IENPTVBBVF8zMA0KIGRl
ZmZsYWcJCQkJQ09NUEFUX1VMVFJJWDogQ09NUEFUXzUwDQo=
--0-1933986094-1548623636=:28231--
Home |
Main Index |
Thread Index |
Old Index