Path: news.daimi.aau.dk!glad From: Peter Andersen Newsgroups: comp.lang.beta Subject: Re: Linux (elf) and BETA 5.0 Date: 7 Aug 1996 08:33:58 GMT Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 80 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <4u9kdm$ni9@gjallar.daimi.aau.dk> NNTP-Posting-Host: daimi.daimi.aau.dk Claus-Peter Knaut writes: > > Hello out there, > > Can you get the error. > > I tried to run Beta on Linux (elf). I used the FAQ, but its still not running. > > /usr/local/beta-3.0/basiclib/current/private/linux/fileInt.o(.text+0x477): > undefined reference to > `lstat' > /usr/local/beta-3.0/basiclib/current/private/linux/fileInt.o(.text+0x33b): > undefined reference to > `stat' > /usr/local/beta-3.0/basiclib/current/private/linux/fileInt.o(.text+0x37): > undefined reference to > `lstat' > /usr/local/beta-3.0/basiclib/current/private/linux/fileInt.o(.text+0x1b): > undefined reference to > `stat' > > CP > Bis dann ! > Dear Claus-Peter Knaut, the 'stat' and 'lstat' functions are standard UNIX system calls, that are used to get information about files. From the man-pages: STAT(2) Linux Programmer's Manual STAT(2) NAME stat, fstat, lstat - get file status SYNOPSIS #include #include int stat(const char *file_name, struct stat *buf); int fstat(int filedes, struct stat *buf); int lstat(const char *file_name, struct stat *buf); DESCRIPTION These functions return information about the specified file. You do not need any access rights to the file to get this information but you need search rights to all directories named in the path leading to the file. .... if these are missing in the link phase, then either something is wrong with your linux set-up, or the (modified) link-directive generated by the compiler does not work in your case. The solution mentionmed in the FAQ is known to work with the Slackware distributions, whereas some problems have been reported for Redhat distributions. What linux distribution do you use? Can you link a C program, that uses lstat? Please note, that as of the forthcoming release 4.0 of the Mjolner BETA System, the linux compiler will generate linux ELF files directly, and will not require modifications to the link-directive to work. Sincerely, Peter Andersen _________________________________________________________________________ Mjolner Informatics Aps Phone: (+45) 86 20 20 00 ext. 2751 Science Park Aarhus Direct: (+45) 86 20 20 11 - 2751 Gustav Wieds Vej 10 Fax: (+45) 86 20 12 22 DK-8000 Aarhus C, Denmark Email: peter.andersen@mjolner.dk _________________________________________________________________________ BETA is better -------------------------------------------------------------------------