Re: [cc65] Oric: Segment `TAPEHDR' does not exist

Date view Thread view Subject view

From: Andre Majorel (amajorel_at_teaser.fr)
Date: 2003-07-15 19:17:33


On 2003-07-15 18:10 +0200, Ullrich von Bassewitz wrote:

> > If I explicitly add atmos.o, I get this :
> >
> >   $ ./src/ld65/ld65 -S 0x8000 -C src/ld65/cfg/atmos.cfg lib/atmos.o toto.o\
> > 							lib/atmos.lib
> >   Unresolved external `callmain' referenced in:
> >     crt0.s(11)
> >   Error: 1 unresolved external(s) found - cannot create output file
> 
> I can only guess that you're using some old version or non matching sources.

This is a brand new installation on a machine where cc65 was never
installed before. I'm using :

  ftp://ftp.musoftware.de/pub/uz/cc65/cc65-atmos-2.9.1.zip
  ftp://ftp.musoftware.de/pub/uz/cc65/cc65-sources-2.9.1.tar.bz2

ld65 opens all the right files :

  $ strace -e open src/ld65/ld65 -t atmos libsrc/atmos.o toto.o libsrc/atmos.lib
  open("/etc/ld.so.preload", O_RDONLY)   = -1 ENOENT (No such file or directory)
  open("/etc/ld.so.cache", O_RDONLY)     = 3
  open("/lib/libc.so.6", O_RDONLY)       = 3
  open("libsrc/atmos.o", O_RDONLY)       = 3
  open("toto.o", O_RDONLY)               = 3
  open("libsrc/atmos.lib", O_RDONLY)     = 3
  Unresolved external `callmain' referenced in:
    crt0.s(11)
  Error: 1 unresolved external(s) found - cannot create output file

If I'm guessing correctly, callmain is supposed to be defined by
atmos.lib. The string does appear in atmos.lib but for some reason
ld65 doesn't see it.

In case you're into that sort of thing, I put an ltrace of ld65 at
<URL:http://www.teaser.fr/~amajorel/misc/ld65.ltrace.bz2>. It
doesn't tell me much because it goes directly from qsort() to
fprintf(xxx, "Unresolved external `%s' referen"..., "callmain") !

-- 
André Majorel <amajorel_at_teaser.fr>
http://www.teaser.fr/~amajorel/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-07-15 19:16:46 CEST