* 2.4.25 and xfs compile errors
@ 2004-02-22 4:13 R Dicaire
2004-02-22 23:41 ` Nathan Scott
0 siblings, 1 reply; 3+ messages in thread
From: R Dicaire @ 2004-02-22 4:13 UTC (permalink / raw)
To: linux-kernel
While trying to compile 2.4.25, I get the following:
ld -m elf_i386 -T /usr/src/linux-2.4.25/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/ide/idedriver.o drivers/cdrom/driver.o
drivers/pci/driver.o drivers/video/video.o drivers/media/media.o
drivers/md/mddev.o \
net/network.o \
/usr/src/linux-2.4.25/arch/i386/lib/lib.a
/usr/src/linux-2.4.25/lib/lib.a
/usr/src/linux-2.4.25/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
fs/fs.o(.text+0x6fa94): In function `xfs_bmap_add_attrfork_local':
: undefined reference to `__constant_c_and_count_memset'
fs/fs.o(.text+0x72d2b): In function `xfs_bmap_alloc':
: undefined reference to `xfs_do_div'
fs/fs.o(.text+0x74506): In function `xfs_bmap_del_extent':
: undefined reference to `xfs_do_div'
fs/fs.o(.text+0x74519): In function `xfs_bmap_del_extent':
: undefined reference to `xfs_do_div'
fs/fs.o(.text+0x752e3): In function `xfs_bmap_worst_indlen':
: undefined reference to `xfs_do_div'
fs/fs.o(.text+0x78afe): In function `xfs_getbmap':
: undefined reference to `__constant_copy_to_user'
make: *** [vmlinux] Error 1
----------------------------------------------------------------------
System info:
Slackware 9.1 kernel 2.4.23-xfs
gcc -v
Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-checking
--with-gnu-ld --verbose --target=i486-slackware-linux
--host=i486-slackware-linux
Thread model: posix
gcc version 3.2.3
Am I missing something, not sure but those undefined references usually
mean some lib or something doesn't support the features trying to be
compiled, any help would be greatly appreciated, thanks.
Please CC rdicair@comcast.net as I'm not subscribed to this list,
thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.25 and xfs compile errors
2004-02-22 4:13 2.4.25 and xfs compile errors R Dicaire
@ 2004-02-22 23:41 ` Nathan Scott
2004-02-23 0:36 ` R Dicaire
0 siblings, 1 reply; 3+ messages in thread
From: Nathan Scott @ 2004-02-22 23:41 UTC (permalink / raw)
To: R Dicaire; +Cc: linux-kernel
On Sat, Feb 21, 2004 at 11:13:50PM -0500, R Dicaire wrote:
> While trying to compile 2.4.25, I get the following:
>
> ld -m elf_i386 -T /usr/src/linux-2.4.25/arch/i386/vmlinux.lds -e stext
> arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
> init/version.o init/do_mounts.o \
> --start-group \
> arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o
> mm/mm.o fs/fs.o ipc/ipc.o \
> drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
> drivers/net/net.o drivers/ide/idedriver.o drivers/cdrom/driver.o
> drivers/pci/driver.o drivers/video/video.o drivers/media/media.o
> drivers/md/mddev.o \
> net/network.o \
> /usr/src/linux-2.4.25/arch/i386/lib/lib.a
> /usr/src/linux-2.4.25/lib/lib.a
> /usr/src/linux-2.4.25/arch/i386/lib/lib.a \
> --end-group \
> -o vmlinux
> fs/fs.o(.text+0x6fa94): In function `xfs_bmap_add_attrfork_local':
> : undefined reference to `__constant_c_and_count_memset'
> fs/fs.o(.text+0x72d2b): In function `xfs_bmap_alloc':
> : undefined reference to `xfs_do_div'
> ...
> fs/fs.o(.text+0x78afe): In function `xfs_getbmap':
> : undefined reference to `__constant_copy_to_user'
> make: *** [vmlinux] Error 1
> gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs
> Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared
> --enable-threads=posix --enable-__cxa_atexit --disable-checking
> --with-gnu-ld --verbose --target=i486-slackware-linux
> --host=i486-slackware-linux
> Thread model: posix
> gcc version 3.2.3
>
Looks like your compiler is getting confused by routines
that have been declared "static inline" in a header - you
probably need to upgrade/downgrade your compiler.
cheers.
--
Nathan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.4.25 and xfs compile errors
2004-02-22 23:41 ` Nathan Scott
@ 2004-02-23 0:36 ` R Dicaire
0 siblings, 0 replies; 3+ messages in thread
From: R Dicaire @ 2004-02-23 0:36 UTC (permalink / raw)
To: Nathan Scott; +Cc: linux-kernel
On Sun, 2004-02-22 at 18:41, Nathan Scott wrote:
> > gcc version 3.2.3
>
> Looks like your compiler is getting confused by routines
> that have been declared "static inline" in a header - you
> probably need to upgrade/downgrade your compiler.
I have compiled the same kernel, on another slackware 9.1 box,
same version gcc, with no xfs support, worked fine.
Any other ideas?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-23 0:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 4:13 2.4.25 and xfs compile errors R Dicaire
2004-02-22 23:41 ` Nathan Scott
2004-02-23 0:36 ` R Dicaire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox