public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Undefined reference to __fixunsdfdi and __umoddi3
@ 2003-09-23 18:45 Jeremy C. Reed
  2003-09-23 21:13 ` Jeremy C. Reed
  0 siblings, 1 reply; 2+ messages in thread
From: Jeremy C. Reed @ 2003-09-23 18:45 UTC (permalink / raw)
  To: gcc-help

When building openssh-3.7.1p1 I receive the following errors:

ld -o scp scp.o progressmeter.o -L. -Lopenbsd-compat/ -L/usr/lib -L/usr/lib  -L/usr/lib -Wl,-R/usr/lib -lssh -lopenbsd-compat -lutil -lz -lnsl -lcrypto -lcrypt
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0804923c
scp.o(.text+0x15ac): In function `bwlimit':
: undefined reference to `__fixunsdfdi'
scp.o(.text+0x15c1): In function `bwlimit':
: undefined reference to `__udivdi3'
scp.o(.text+0x15e0): In function `bwlimit':
: undefined reference to `__umoddi3'
progressmeter.o(.text+0xf0): In function `format_rate':
: undefined reference to `__divdi3'
progressmeter.o(.text+0xfe): In function `format_rate':
: undefined reference to `__moddi3'
progressmeter.o(.text+0x10f): In function `format_rate':
: undefined reference to `__divdi3'


From my searches it appears that this is related to gcc failing to link
shared libraries against libgcc.

I also read that some workarounds are available for binutils, gcc or
glibc.

I am not sure if this is a real gcc issue.

I am using:
  gcc-3.3.1
  binutils-2.14
  glibc-2.3.2

(These were built using pkgsrc.)

Can anyone share some advice on how to troubleshoot this problem?

Thank you,

Jeremy C. Reed
http://www.isp-faq.com/

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

* Re: Undefined reference to __fixunsdfdi and __umoddi3
  2003-09-23 18:45 Undefined reference to __fixunsdfdi and __umoddi3 Jeremy C. Reed
@ 2003-09-23 21:13 ` Jeremy C. Reed
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy C. Reed @ 2003-09-23 21:13 UTC (permalink / raw)
  To: gcc-help

> ld -o scp scp.o progressmeter.o -L. -Lopenbsd-compat/ -L/usr/lib -L/usr/lib  -L/usr/lib -Wl,-R/usr/lib -lssh -lopenbsd-compat -lutil -lz -lnsl -lcrypto -lcrypt
> /usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0804923c
> scp.o(.text+0x15ac): In function `bwlimit':
> : undefined reference to `__fixunsdfdi'
> scp.o(.text+0x15c1): In function `bwlimit':
> : undefined reference to `__udivdi3'

I fixed this by using "cc" instead of "ld".

   Jeremy C. Reed
   http://bsd.reedmedia.net/

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

end of thread, other threads:[~2003-09-23 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 18:45 Undefined reference to __fixunsdfdi and __umoddi3 Jeremy C. Reed
2003-09-23 21:13 ` Jeremy C. Reed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).