Discussion:
some unresolved links
(too old to reply)
Cedric Degea
2003-08-11 21:42:02 UTC
Permalink
arcdos.o(.text+0x119): undefined reference to `utimes'
arcmisc.o(.text+0x20b): undefined reference to `scandir'
Just a word about this one...
arcmisc.o(.text+0x5cf): undefined reference to `getwd'
collect2: ld returned 1 exit status
Is there a transcript/typo in the above? If not, then there
probably is one in the source, which I suppose should read
getcwd()
rather than getwd;
make: *** [arc] Error 1
utimes is in <sys/time.h> but what must I link to resolve, as well as
the scandir and getwd?
A reference to getcwd() will then link, since it's in libroot.so (implicit link dep.).

/boot/develop/headers/posix/unistd.h:extern char *getcwd(char *buffer, size_t size);
--
PGP key: http://cdegea.free.fr/degea_kagi_pubkey.txt | BeDev E-16870
"If you do not know which operating system you are running, most likely
it is Windows." -- Opera's registration page, circa 2001.
Dan Pidcock
2003-08-12 07:58:49 UTC
Permalink
arcdos.o(.text+0x119): undefined reference to `utimes'
arcmisc.o(.text+0x20b): undefined reference to `scandir'
arcmisc.o(.text+0x5cf): undefined reference to `getwd'
collect2: ld returned 1 exit status
make: *** [arc] Error 1
utimes is in <sys/time.h> but what must I link to resolve, as well as
the scandir and getwd?
Thanks!
I think this should tell you:
strings -f lib* | grep utimes

Dan
Todd Nathan
2003-08-16 15:04:06 UTC
Permalink
Post by Dan Pidcock
arcdos.o(.text+0x119): undefined reference to `utimes'
arcmisc.o(.text+0x20b): undefined reference to `scandir'
arcmisc.o(.text+0x5cf): undefined reference to `getwd'
collect2: ld returned 1 exit status
make: *** [arc] Error 1
utimes is in <sys/time.h> but what must I link to resolve, as well as
the scandir and getwd?
Thanks!
strings -f lib* | grep utimes
Dan
Thanks to you both!!! There are still some programmers around aren't there.
Loading...