Re: Robotic Telescope System in Linux
fabi.lim_at_gmail.com
Date: 01/24/05
- Next message: Gianni Mariani: "mmap specific to a thread ?"
- Previous message: dpsims_at_virtualdave.com: "irq 3: nobody cared! with Intel 31244 SATA.... Advice??"
- Next in thread: fabi.lim_at_gmail.com: "Re: Robotic Telescope System in Linux"
- Maybe reply: fabi.lim_at_gmail.com: "Re: Robotic Telescope System in Linux"
- Reply: Peter T. Breuer: "Re: Robotic Telescope System in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Jan 2005 22:02:14 -0800
Peter T. Breuer wrote:
> Fabian Lim <fabi.lim@gmail.com> wrote:
> > I'm currently trying to compile the Talon software to Linux
Enterprise
> > at the University of Toronto's Observatory. I'm planning to
> > standardize the software so that it will work on all Meade LX 200
> > telescopes. I'm currently facing compilation errors. I have
> > succesfully compiled all libraries in the code, but when I try to
> > compile other folders, such as /daemons/telescoped I get the
following
> > error:
> > /usr/local/telescope/lib/libmisc.so: undefined reference to "errno"
>
> So? errno is probably accessed by set and get functions nowadays,
> so recompile your libmisc.so against the appropriate libc headers to
get
> the right calls to replace the references to it.
>
> It certainly looks as though it's redefined here (glibc 2.1)
>
> (bits/errno.h)
>
> # if !defined _LIBC || defined _LIBC_REENTRANT
> /* When using threads, errno is a per-thread value. */
> # define errno (*__errno_location ())
> # endif
> # endif /* !__ASSEMBLER__ */
>
> so you have done something wrong to get a reference to errno staying
in
> there in your code. Try again. This time making sure that the
> appropriate macro substitutions are made.
>
>
> Peter
I'm trying to compile the code below but I get the following error:
In function 'syserrstr'
'errno' undeclared (first use in this function)
(each undeclared identifier is reproted onlyh once for each function it
appears in)
Do you know what could be the problem? Also, has anyone been able to
install the TALON software on your computers?
Thanks,
Fabian
Here is the code:
#include <stdio.h>
#include <math.h>
#include <errno.h>
/* M Goldberg 27 January 1997 for OS/2 */
#ifdef __EMX__
#include <sys/types.h>
#endif
#include <sys/stat.h> /* for mkdir() declaration */
#ifdef __STDC__
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#else
extern void *malloc(), *realloc();
#endif
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_END 2
#endif
#include "P_.h"
#include "astro.h"
#include "circum.h"
#include "fieldstar.h"
static char *syserrstr() { return (strerror(errno)); } ---Where the
error is ---
static FILE *fopenh (char *name, char *how) { return (fopen (name,
how)); }
static void pm_set(int percent) {}
extern void zero_mem P_((void *loc, unsigned len));
- Next message: Gianni Mariani: "mmap specific to a thread ?"
- Previous message: dpsims_at_virtualdave.com: "irq 3: nobody cared! with Intel 31244 SATA.... Advice??"
- Next in thread: fabi.lim_at_gmail.com: "Re: Robotic Telescope System in Linux"
- Maybe reply: fabi.lim_at_gmail.com: "Re: Robotic Telescope System in Linux"
- Reply: Peter T. Breuer: "Re: Robotic Telescope System in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|