public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* klibc: type of symbol changed warning
@ 2003-11-25 16:23 Martin Hicks
  2003-11-25 17:06 ` Martin Hicks
  2003-11-25 18:32 ` Martin Hicks
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Hicks @ 2003-11-25 16:23 UTC (permalink / raw)
  To: linux-ia64


Hello,

I've been trying to get klibc working on ia64.  I'm running into a
problem while compiling it.  I get a warning during the final link:

gcc --static --nostdlib -nostartfiles -o udev klibc/klibc/crt0.o udev.o
udev-add.o udev-remove.o udevdb.o logging.o namedev.o
libsysfs/sysfs_bus.o libsysfs/sysfs_class.o libsysfs/sysfs_device.o
libsysfs/sysfs_dir.o libsysfs/sysfs_driver.o libsysfs/sysfs_utils.o
libsysfs/dlist.o tdb/tdb.o tdb/spinlock.o  klibc/klibc/libc.a
/usr/lib/gcc-lib/ia64-linux/3.3.2/libgcc.a

/usr/bin/ld: Warning: type of symbol `errno' changed from 1 to 6 in
/usr/lib/gcc-lib/ia64-linux/3.3.2/../../../libc.a(errno.o)

Whatever causing this is also messing up other stuff.  The __ctypes
array, which is used by many of the ctype.h functions is not in the
right place in the final udev executable.

The fix that I've found is to do the final link with ld instead of gcc.

Anyone know what's causing this problem?
thanks
mh

-- 
Martin Hicks                Wild Open Source Inc.
mort@wildopensource.com     613-266-2296



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

* Re: klibc: type of symbol changed warning
  2003-11-25 16:23 klibc: type of symbol changed warning Martin Hicks
@ 2003-11-25 17:06 ` Martin Hicks
  2003-11-25 18:32 ` Martin Hicks
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Hicks @ 2003-11-25 17:06 UTC (permalink / raw)
  To: linux-ia64

On Tue, 2003-11-25 at 11:23, Martin Hicks wrote:
> Hello,
> 
> I've been trying to get klibc working on ia64.  I'm running into a
> problem while compiling it.  I get a warning during the final link:


Sorry,

This is what happens while compiling udev against klibc.  The klibc
seems to work fairly well for most other things contained in the klibc
tarball (ash, minimal gzip/gunzip, etc)

mh

-- 
Martin Hicks                Wild Open Source Inc.
mort@wildopensource.com     613-266-2296



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

* Re: klibc: type of symbol changed warning
  2003-11-25 16:23 klibc: type of symbol changed warning Martin Hicks
  2003-11-25 17:06 ` Martin Hicks
@ 2003-11-25 18:32 ` Martin Hicks
  1 sibling, 0 replies; 3+ messages in thread
From: Martin Hicks @ 2003-11-25 18:32 UTC (permalink / raw)
  To: linux-ia64

On Tue, 2003-11-25 at 12:06, Martin Hicks wrote:
> On Tue, 2003-11-25 at 11:23, Martin Hicks wrote:
> > Hello,
> > 
> > I've been trying to get klibc working on ia64.  I'm running into a
> > problem while compiling it.  I get a warning during the final link:
> 
> 
> Sorry,
> 
> This is what happens while compiling udev against klibc.  The klibc
> seems to work fairly well for most other things contained in the klibc
> tarball (ash, minimal gzip/gunzip, etc)

Adding -nodefaultlibs to LDFLAGS seems to have solved this problem. 
Thanks to willy for giving me the hint that allowed me to figure this
out.

mh

-- 
Martin Hicks                Wild Open Source Inc.
mort@wildopensource.com     613-266-2296



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

end of thread, other threads:[~2003-11-25 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-25 16:23 klibc: type of symbol changed warning Martin Hicks
2003-11-25 17:06 ` Martin Hicks
2003-11-25 18:32 ` Martin Hicks

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