Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2007 21:13:33 -0000
From:      Lars Engels <lars.engels@0x20.net>
To:        current@freebsd.org
Subject:   Re: linker errors, was: kernel build error (zlib.ko)
Message-ID:  <20070516211331.GK94292@e.0x20.net>
In-Reply-To: <20070516205128.GD28958@in-addr.com>
References:  <20070516194857.GI94292@e.0x20.net> <20070516205128.GD28958@in-addr.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--Ls2Gy6y7jbHLe9Od
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 16, 2007 at 04:51:28PM -0400, Gary Palmer wrote:
> On Wed, May 16, 2007 at 09:48:57PM +0200, Lars Engels wrote:
> > With today's sources I get an error while compiling the kernel:
> >=20
> > =3D=3D=3D> zlib (all)
> > cc -O2 -fno-strict-aliasing -pipe -march=3Dpentium-m -Werror -D_KERNEL
> > -DKLD_MODULE -std=3Dc99 -nostdinc -I-   -DHAVE_KERNEL_OPTION_HEADERS
> > -include /usr/obj/usr/src/sys/MAGGIE/opt_global.h -I. -I@
> > -I@/contrib/altq -finline-limit=3D8000 --param inline-unit-growth=3D100
> > --param large-function-growth=3D1000 -fno-common -g
> > -I/usr/obj/usr/src/sys/MAGGIE -mno-align-long-strings
> > -mpreferred-stack-boundary=3D2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> > -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs
> > -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> > -Wcast-qual  -Wundef -fformat-extensions -c
> > /usr/src/sys/modules/zlib/../../net/zlib.c
> > ld  -d -warn-common -r -d -o zlib.kld zlib.o
> > :> export_syms
> > awk -f /usr/src/sys/modules/zlib/../../conf/kmod_syms.awk zlib.kld
> > export_syms | xargs -J% objcopy % zlib.kld
> > ld -Bshareable  -d -warn-common -o zlib.ko.debug zlib.kld
> > objcopy --only-keep-debug zlib.ko.debug zlib.ko.symbols
> > objcopy --strip-debug --add-gnu-debuglink=3Dzlib.ko.symbols zlib.ko.deb=
ug
> > zlib.ko
> > 1 error
> > *** Error code 2
> > 1 error
> > *** Error code 2
> > 1 error
> >=20
> >=20
> > Any ideas what could be the cause?
>=20
> Are you using a parallel compile?  If so, the error message is earlier
> in the compile process somewhere.  I certainly don't see any error
> message in the above snippet.  Try again without the parallel
> compile.

Yes and now here are several linker errors. I guess I need device drm
for i915drm but what about the ural errors?
According to UPDATING I build and installed usr.sbin/config prior to
compiling the kernel with options INCLUDE_CONFIG_FILE. However I do get
the error message about the keyocnfstring.


i915_dma.o(.text+0x13c): In function `i915_dma_cleanup':
/usr/src/sys/dev/drm/i915_dma.c:96: undefined reference to
`drm_irq_uninstall'
i915_dma.o(.text+0x168): In function `i915_dma_cleanup':
/usr/src/sys/dev/drm/drmP.h:1018: undefined reference to
`drm_ioremapfree'
i915_dma.o(.text+0x181): In function `i915_dma_cleanup':
/usr/src/sys/dev/drm/i915_dma.c:107: undefined reference to
`drm_pci_free'
i915_dma.o(.text+0x1ba):/usr/src/sys/dev/drm/i915_dma.c:112: undefined
reference to `drm_free'
i915_dma.o(.text+0x385): In function `i915_initialize':
/usr/src/sys/dev/drm/drmP.h:1013: undefined reference to `drm_ioremap'
i915_dma.o(.text+0x429): In function `i915_initialize':
/usr/src/sys/dev/drm/i915_dma.c:184: undefined reference to
`drm_pci_alloc'
i915_dma.o(.text+0x492):/usr/src/sys/dev/drm/i915_dma.c:197: undefined
reference to `drm_debug_flag'
i915_dma.o(.text+0x4e1):/usr/src/sys/dev/drm/i915_dma.c:200: undefined
reference to `drm_debug_flag'
i915_dma.o(.text+0x542): In function `i915_dma_resume':
/usr/src/sys/dev/drm/i915_dma.c:211: undefined reference to
`drm_debug_flag'
i915_dma.o(.text+0x652):/usr/src/sys/dev/drm/i915_dma.c:234: undefined
reference to `drm_debug_flag'
i915_dma.o(.text+0x6a1):/usr/src/sys/dev/drm/i915_dma.c:237: undefined
reference to `drm_debug_flag'
i915_dma.o(.text+0x749): In function `i915_dma_init':
/usr/src/sys/dev/drm/i915_dma.c:254: undefined reference to `drm_alloc'
i915_dma.o(.text+0x10b4): In function `i915_dispatch_flip':
/usr/src/sys/dev/drm/i915_dma.c:533: undefined reference to
`drm_debug_flag'
i915_dma.o(.text+0x146e): In function `i915_batchbuffer':
/usr/src/sys/dev/drm/i915_dma.c:611: undefined reference to
`drm_debug_flag'
i915_dma.o(.text+0x15c0): In function `i915_cmdbuffer':
/usr/src/sys/dev/drm/i915_dma.c:640: undefined reference to
`drm_debug_flag'
i915_dma.o(.text+0x1727): In function `i915_do_cleanup_pageflip':
/usr/src/sys/dev/drm/i915_dma.c:667: undefined reference to
`drm_debug_flag'
i915_dma.o(.text+0x178f): In function `i915_flip_bufs':
/usr/src/sys/dev/drm/i915_dma.c:678: undefined reference to
`drm_debug_flag'
i915_drv.o(.text+0xc5): In function `i915_probe':
/usr/src/sys/dev/drm/i915_drv.c:80: undefined reference to `drm_probe'
i915_drv.o(.text+0x10d): In function `i915_attach':
/usr/src/sys/dev/drm/i915_drv.c:90: undefined reference to `drm_attach'
i915_drv.o(.data+0xf4):/usr/src/sys/dev/drm/i915_drv.c:88: undefined
reference to `drm_detach'
i915_drv.o(.data+0x128): undefined reference to `drm_devclass'
i915_irq.o(.text+0x2f): In function `i915_driver_irq_handler':
/usr/src/sys/dev/drm/i915_irq.c:53: undefined reference to
`drm_debug_flag'
i915_irq.o(.text+0xd3):/usr/src/sys/dev/drm/i915_irq.c:68: undefined
reference to `drm_vbl_send_signals'
i915_irq.o(.text+0x10b): In function `i915_emit_irq':
/usr/src/sys/dev/drm/i915_irq.c:82: undefined reference to
`drm_debug_flag'
i915_irq.o(.text+0x214): In function `i915_wait_irq':
/usr/src/sys/dev/drm/i915_irq.c:109: undefined reference to
`drm_debug_flag'
i915_mem.o(.text+0xdd): In function `split_block':
/usr/src/sys/dev/drm/i915_mem.c:99: undefined reference to `drm_alloc'
i915_mem.o(.text+0x135):/usr/src/sys/dev/drm/i915_mem.c:116: undefined
reference to `drm_alloc'
i915_mem.o(.text+0x27d): In function `free_block':
/usr/src/sys/dev/drm/i915_mem.c:174: undefined reference to `drm_free'
i915_mem.o(.text+0x2bd):/usr/src/sys/dev/drm/i915_mem.c:182: undefined
reference to `drm_free'
i915_mem.o(.text+0x2fb): In function `init_heap':
/usr/src/sys/dev/drm/i915_mem.c:190: undefined reference to `drm_alloc'
i915_mem.o(.text+0x31a):/usr/src/sys/dev/drm/i915_mem.c:195: undefined
reference to `drm_alloc'
i915_mem.o(.text+0x338):/usr/src/sys/dev/drm/i915_mem.c:197: undefined
reference to `drm_free'
i915_mem.o(.text+0x436): In function `i915_mem_release':
/usr/src/sys/dev/drm/i915_mem.c:237: undefined reference to `drm_free'
i915_mem.o(.text+0x4a8): In function `i915_mem_takedown':
/usr/src/sys/dev/drm/i915_mem.c:254: undefined reference to `drm_free'
i915_mem.o(.text+0x4c6):/usr/src/sys/dev/drm/i915_mem.c:257: undefined
reference to `drm_free'
if_ural.o(.text+0x5c2): In function `ural_attach':
/usr/src/sys/dev/usb/if_ural.c:491: undefined reference to
`ieee80211_amrr_init'
if_ural.o(.text+0x3be4): In function `ural_amrr_start':
/usr/src/sys/dev/usb/if_ural.c:2360: undefined reference to
`ieee80211_amrr_node_init'
if_ural.o(.text+0x3d79): In function `ural_amrr_update':
/usr/src/sys/dev/usb/if_ural.c:2418: undefined reference to
`ieee80211_amrr_choose'
kern_mib.o(.text+0x465): In function `sysctl_kern_config':
/usr/src/sys/kern/kern_mib.c:319: undefined reference to
`kernconfstring'
kern_mib.o(.text+0x484):/usr/src/sys/kern/kern_mib.c:322: undefined
reference to `kernconfstring'


--=20
Lars Engels
E-Mail: lars.engels@0x20.net =09
Mobil: +49 172 266 72 73

--Ls2Gy6y7jbHLe9Od
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFGS3P7Kc512sD3afgRArhLAJ4nH2nZ2JAYbNLPhfQ7q0eHAIizJACfW9dV
eTgC41C5NXiutzjRZvUFrSY=
=zlZ4
-----END PGP SIGNATURE-----

--Ls2Gy6y7jbHLe9Od--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070516211331.GK94292>