Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Problem compiling 1.3.94 on PC64
@ 1996-04-22 23:35 Francois Jaccard
  0 siblings, 0 replies; 2+ messages in thread
From: Francois Jaccard @ 1996-04-22 23:35 UTC (permalink / raw)


Hi,

I am trying to compile the kernel 1.3.94 on my AlphaPC64 running Red Hat 2.1
and I get this:

ld -static -T arch/alpha/vmlinux.lds -N arch/alpha/kernel/head.o init/main.o
init/version.o \
	arch/alpha/kernel/kernel.o arch/alpha/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o net/network.a \
	fs/filesystems.a \
	drivers/block/block.a drivers/char/char.a drivers/net/net.a
drivers/scsi/scsi.a drivers/pci/pci.a \
	/usr/src/linux/arch/alpha/math-emu/math-emu.a
/usr/src/linux/arch/alpha/lib/lib.a /usr/src/linux/lib/lib.a
/usr/src/linux/arch/alpha/lib/lib.a -o vmlinux
fs/filesystems.a(smbfs.o): In function `get_pname_static':
dir.c(.text+0x7368): undefined reference to `strrchr'
fs/filesystems.a(smbfs.o)(.lita+0x4b8): undefined reference to `strrchr'
make: *** [vmlinux] Error 1

Shouldn't the 'strrchr' be changed to 'strchr' in dir.c ? I changed it and it
compiled ok.

Thanks,
----
Francois Jaccard
PGP Key ID: 0x3D7B9109

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem compiling 1.3.94 on PC64
@ 1996-04-23  9:00 Nigel Metheringham
  0 siblings, 0 replies; 2+ messages in thread
From: Nigel Metheringham @ 1996-04-23  9:00 UTC (permalink / raw)


Jaccard@Dial.Eunet.Ch said:
} Shouldn't the 'strrchr' be changed to 'strchr' in dir.c ? I changed 
} it and it compiled ok. 

But you have completely changed the meaning of of the code...
Now instead of finding the last \ (backslash) in a pathname its 
finding the first one...

Your problem is that the kernel has no strrchr available, or the code 
should be rewritten to do this a different way.  Since the 386 has an 
assembly strrchr in include/asm-i386/string-486.h then the other 
architectures should have this available.

I suggest you code one in C initially just to try it (its only used 
in one place so efficiency isn't going to be that bad!).

	Nigel.

-- 
[ Nigel.Metheringham@theplanet.net   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House     Tel : +44 113 2345566 x 612 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656       ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-04-23  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-04-23  9:00 Problem compiling 1.3.94 on PC64 Nigel Metheringham
  -- strict thread matches above, loose matches on Subject: below --
1996-04-22 23:35 Francois Jaccard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox