From owner-freebsd-multimedia Sun Jul 19 13:12:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16133 for freebsd-multimedia-outgoing; Sun, 19 Jul 1998 13:12:49 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16123 for ; Sun, 19 Jul 1998 13:12:46 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id NAA10196; Sun, 19 Jul 1998 13:12:10 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199807192012.NAA10196@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 to: Minlin Fan cc: multimedia@FreeBSD.ORG Subject: videocapture.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Jul 1998 13:12:10 -0700 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Not sure what is going on over there however there are plenty of folks which will be able to help you . Have Fun, Amancio ------- Forwarded Message Return-Path: mfan@liverpool.ac.uk Received: from pcmail.liv.ac.uk (exim@pcmail.liv.ac.uk [138.253.252.13]) by rah.star-gate.com (8.8.8/8.8.8) with SMTP id DAA01566 for ; Fri, 17 Jul 1998 03:47:25 -0700 (PDT) (envelope-from mfan@liverpool.ac.uk) Received: from liv.ac.uk [138.253.32.6] by pcmail.liv.ac.uk with esmtp (Exim 1.73 #2) id 0yx82h-00026q-00; Fri, 17 Jul 1998 11:47:11 +0100 Sender: root@liverpool.ac.uk Message-ID: <35AF2BB3.F3671C3C@liv.ac.uk> Date: Fri, 17 Jul 1998 11:47:15 +0100 From: Minlin Fan Organization: Dept. of Elec.Eng. & Electronics X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.33 i586) MIME-Version: 1.0 To: hasty@rah.star-gate.com Subject: consult for framegrabber Content-Type: multipart/alternative; boundary="------------13DF4261ABFD86B4A4BC 4D4E" - --------------13DF4261ABFD86B4A4BC4D4E Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Hi Amancio Hasty, I have a C programe written by you from www.freebsd.org/~ahasty/files/videocapture.c I got two problems: 1. The " sig_t done" and " sig_t do_write" generate error in compile-time. Here are the compile-time errors: videocapture.c:84: parse error before `done' videocapture.c:141: parse error before `do_write' videocapture.c: In function `main': videocapture.c:247: `sig_t' undeclared (first use this function) videocapture.c:247: (Each undeclared identifier is reported only once videocapture.c:247: for each function it appears in.) videocapture.c:247: parse error before `done' 2. I comment out these lines regarding " sig_t ". The compiling is successful. But there are run-time errors in the following codes: i = 112; if (ioctl(bt848, METEORSCONT, &i) < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); exit(0); } i = 0x30; if (ioctl(bt848, METEORSBRIG, &i) < 0) { fprintf(stderr, "ioctl failed: %s\n", strerror(errno)); exit(0); } if (ioctl(bt848, METEORSETGEO, &geo) < 0) { printf("ioctl failed: %d\n", errno); exit(1); } Please help me and concentrate on the second problem. Because I got the same problem in other similar program. Thank you very much. - -- M Fan Dept. of Elec. Eng. & Electronics Univ. of Liverpool Brownlow Hill Liverpool L69 3GJ, UK mfan@liv.ac.uk http://www.liv.ac.uk/~mfan/ ================================= - --------------13DF4261ABFD86B4A4BC4D4E Content-Type: text/html; charset=gb2312 Content-Transfer-Encoding: 7bit Hi Amancio Hasty,

I have a C programe written by you from www.freebsd.org/~ahasty/files/videoc apture.c
I got two problems:
1. The " sig_t done" and " sig_t do_write" generate error in compile-time.
     Here are the compile-time errors:

        videocapture.c:84: parse error before `done'
        videocapture.c:141: parse error before `do_write'
        videocapture.c: In function `main':
        videocapture.c:247: `sig_t' undeclared (first use this function)
        videocapture.c:247: (Each undeclared identifier is reported only once
        videocapture.c:247: for each function it appears in.)
        videocapture.c:247: parse error before `done'

2. I comment out these lines regarding " sig_t ". The compiling is successful. But there are run-time errors in
    the following codes:

        i = 112;
        if (ioctl(bt848, METEORSCONT, &i) < 0) {
            &nb sp;   fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
            &nb sp;   exit(0);
        }

        i = 0x30;
        if (ioctl(bt848, METEORSBRIG, &i) < 0) {
            &nb sp;   fprintf(stderr, "ioctl failed: %s\n", strerror(errno));
            &nb sp;   exit(0);
        }
 

        if (ioctl(bt848, METEORSETGEO, &geo) < 0) {
            &nb sp;   printf("ioctl failed: %d\n", errno);
            &nb sp;   exit(1);
        }

Please help me and concentrate on the second problem. Because I got the same problem in other similar program.
Thank you very much.
 

-- 
M Fan
Dept. of Elec. Eng. & Electronics
Univ. of Liverpool
Brownlow Hill
Liverpool L69 3GJ, UK

mfan@liv.ac.uk
http://www.liv.ac.uk/~mfan/
=================================
  - --------------13DF4261ABFD86B4A4BC4D4E-- ------- End of Forwarded Message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message