Re: [OT] Need a little C programming help
Those errors can occur if you include files within a C block. For example, the following works well: #include stdlib.h int main() {} but this fails with exactly the errors you have seen: int main() { #include stdlib.h } This can happen sometimes by accident, for example when you are conditionally compiling braces within #ifdef ... #endif and forget one of the matching end braces, like #ifdef SOME_CONDITION { #endif ... /* here we should have the same condition with the closing braces #include stdlib.h /* this will fail */ The compiler sees the inline functions declared in the header file inside another function, takes it as nested function (a gcc extension) and in your case throws an error because the function does not meet some specific criteria (obviously a local nested function can not have an extern binding). If you dont find the mistake easily, try checking the precompiled output. cc -E -o swrc.I swrc.c preprocesses the c file into swrc.I which you can then check for non-matching braces. Regards, Andreas Mike Reinehr wrote: [...] This evening, I had to make very minor change to the program but when I attempted to compile I received the following error output: [EMAIL PROTECTED]:~/tmp$ cc swrc.c In file included from /usr/include/sys/types.h:219, from /usr/include/stdlib.h:433, from swrc.c:5: /usr/include/sys/sysmacros.h: In function `main': /usr/include/sys/sysmacros.h:43: error: nested function `gnu_dev_major' declared `extern' [...] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: thunderbird: Can someone reproduce #383344?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Jambor wrote: On 8/30/06, Alexander Sack [EMAIL PROTECTED] wrote: Can someone please confirm if this bug [1] is reproducible? If not, could someone please follow instructions in the bug to produce a debug backtrace? [1] - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=383344 I don't use thunderbird but it certainly starts ok on my AMD64. I *do* use it regularly ;-) and it works perfect here. One difference I see is that some packages are more recent on my system, see list below. Maybe it is a library incompatibility ... Best Regards, Andreas - - Myself + Bug report - -ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries +ii libc6 2.3.6-19 GNU C Library: Shared libraries - -ii libcairo2 1.2.4-1 The Cairo 2D vector graphics libra +ii libcairo2 1.2.2-1 The Cairo 2D vector graphics libra - -ii libgcc1 1:4.1.1-11 GCC support library +ii libgcc1 1:4.1.1-10 GCC support library - -ii libgtk2.0-0 2.8.20-1 The GTK+ graphical user interface +ii libgtk2.0-0 2.8.18-7 The GTK+ graphical user interface - -ii libpango1.0-0 1.12.3-2 Layout and rendering of internatio +ii libpango1.0-0 1.12.3-1+b1 Layout and rendering of internatio - -ii libstdc++6 4.1.1-11 The GNU Standard C++ Library v3 +ii libstdc++6 4.1.1-10 The GNU Standard C++ Library v3 - -ii libxcursor1 1.1.7-3 X cursor management library +ii libxcursor1 1.1.5.2-5X cursor management library - -ii libxext61:1.0.1-2X11 miscellaneous extension librar +ii libxext61:1.0.0-4X11 miscellaneous extension librar - -ii libxi6 1:1.0.1-3X11 Input extension library +ii libxi6 1:1.0.0-5X11 Input extension library - -ii myspell-de-at [myspell-dict 20051113-4 Austrian (German) dictionary for m - -ii myspell-de-ch [myspell-dict 20051113-4 Swiss (German) dictionary for mysp - -ii myspell-de-de [myspell-dict 20051113-4 German dictionary for myspell +ii myspell-en-us [myspell-dict 1:2.0.3-2English_american dictionary for my - -- Andreas Fester mailto:[EMAIL PROTECTED] WWW: http://www.littletux.net ICQ: 326674288 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE9e20Z3bQVzeW+rsRAkm4AJ4tSyZ7gnMTaxq1pF3CmjGfURcz8gCg1dcL uyeyTgxszZJZRi+ldMhSGLg= =3nCQ -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: cdrecord fails on usb writer
Hi, I wanted to retry this with a more recent linux kernel. Did you try anything specific, and which kernel did you use? Does the debug/log output of cdrecord look similar to the one I attached to the original posting? Thanks, Andreas [EMAIL PROTECTED] wrote: Hi! I'd just like to say that when I was just going crazy with my problem trying to write dvds on an external LG GSA-4167B i found your post, and... I'll give up. I lost t much time on this... Good luck! If i find an answer I'll tell you about it. Original Posting Hi, burning CDs with cdrecord fails on my AMD64 debian installation. The cd writer is an external device connected through USB. I am currently running a self-compiled 2.6.15 kernel, but the same issue occurs with the debian default 2.6.12-amd64-generic kernel. I did a parallel i386 installation on the same box, also with the debian 2.6.15 kernel package, and in this installation cdrecord works well. I assume therefore that it is a kernel issue. cdrecord versions are the same on both installations. Attached is the output which is generated from cdrecord (by the k3b frontend in this case). Any hints are very welcome :-) I hope it is not one of the unsettled 2.6 kernel issues cdrecord warns about :-/ Thanks and best regards, Andreas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
cdrecord fails on usb writer
Hi, burning CDs with cdrecord fails on my AMD64 debian installation. The cd writer is an external device connected through USB. I am currently running a self-compiled 2.6.15 kernel, but the same issue occurs with the debian default 2.6.12-amd64-generic kernel. I did a parallel i386 installation on the same box, also with the debian 2.6.15 kernel package, and in this installation cdrecord works well. I assume therefore that it is a kernel issue. cdrecord versions are the same on both installations. Attached is the output which is generated from cdrecord (by the k3b frontend in this case). Any hints are very welcome :-) I hope it is not one of the unsettled 2.6 kernel issues cdrecord warns about :-/ Thanks and best regards, Andreas -- Andreas Fester mailto:[EMAIL PROTECTED] WWW: http://www.littletux.net ICQ: 326674288System --- K3b Version: 0.12.10 KDE Version: 3.5.1 QT Version: 3.3.5 Kernel: 2.6.15 Devices --- HL-DT-ST DVDRAM GSA-4040B A301 (/dev/scd0, /dev/sg5) at /media/cdrom1 [CD-R; CD-RW; CD-ROM; DVD-ROM; DVD-RAM; DVD-R; DVD-RW; DVD+R; DVD+RW] [DVD-ROM; DVD-R Sequential; DVD-RAM; DVD-RW Restricted Overwrite; DVD-RW Sequential; DVD+RW; DVD+R; CD-ROM; CD-R; CD-RW] [SAO; TAO; RAW; SAO/R96P; SAO/R96R; RAW/R16; RAW/R96P; RAW/R96R; Restricted Overwrite] ASUS DVD-ROM E616 1.0 (/dev/hdc, ) at /media/cdrom0 [CD-ROM; DVD-ROM] [DVD-ROM; CD-ROM] [None] Used versions --- cdrecord: 2.1.1a03 cdrecord --- /usr/bin/cdrecord: Warning: Running on Linux-2.6.15 /usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer. /usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. scsidev: '4,0,0' scsibus: 4 target: 0 lun: 0 Linux sg driver version: 3.5.33 /usr/bin/cdrecord: Warning: using inofficial version of libscg (debian-0.8debian2 '@(#)scsitransp.c 1.91 04/06/17 Copyright 1988,1995,2000-2004 J. Schilling'). SCSI buffer size: 64512 /usr/bin/cdrecord: This version of cdrecord does not include DVD-R/DVD-RW support code. /usr/bin/cdrecord: See /usr/share/doc/cdrecord/README.DVD.Debian for details on DVD support. Cdrecord-Clone 2.01.01a03 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2005 Joerg Schilling NOTE: this version of cdrecord is an inofficial (modified) release of cdrecord and thus may have bugs that are not present in the original version. Please send bug reports and support requests to [EMAIL PROTECTED]. The original author should not be bothered with problems of this version. TOC Type: 1 = CD-ROM Using libscg version 'debian-0.8debian2'. Driveropts: 'burnfree' atapi: 1 Device type: Removable CD-ROM Version: 0 Response Format: 2 Capabilities : Vendor_info: 'HL-DT-ST' Identifikation : 'DVDRAM GSA-4040B' Revision : 'A301' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: 0x0009 Profile: 0x0012 Profile: 0x0011 Profile: 0x0014 Profile: 0x0013 Profile: 0x001A Profile: 0x001B Profile: 0x0010 Profile: 0x0009 (current) Profile: 0x000A Profile: 0x0008 Profile: 0x0002 Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr). Driver flags : MMC-3 SWABAUDIO BURNFREE Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R Drive buf size : 1204224 = 1176 KB Drive DMA Speed: 5202 kB/s 29x CD 3x DVD FIFO size : 4194304 = 4096 KB Track 01: data28 MB Total size: 32 MB (03:13.41) = 14506 sectors Lout start: 32 MB (03:15/31) = 14506 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 5 Is not unrestricted Is not erasable Disk sub type: Medium Type B, low Beta category (B-) (4) ATIP start of lead in: -11607 (97:27/18) ATIP start of lead out: 359849 (79:59/74) Disk type:Short strategy type (Phthalocyanine or similar) Manuf. index: 18 Manufacturer: Plasmon Data systems Ltd. Blocks total: 359849 Blocks current: 359849 Blocks remaining: 345343 Starting to write CD/DVD at speed 24 in dummy SAO mode for single session. Last chance to quit, starting dummy write in 3 seconds. 2 seconds. 1 seconds. 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. BURN-Free is ON. Sending CUE sheet... /usr/bin/cdrecord: WARNING: Drive returns wrong startsec (0) using -150 /usr/bin/cdrecord: Input/output error. write_g1: scsi sendcmd: no error CDB: 2A 00 FF FF FF 6A 00 00 1F 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 10 2A 00 00 80 30 05 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0 Sense flags: Blk 0 (not valid) resid: 63488 cmd finished after 0.106s timeout 200s Writing pregap for track 1 at -150 write track pad data: error after 0 bytes BFree: 1176 K BSize: 1176 K Starting new track at sector: 0 Track 01:0 of 28 MB written. /usr/bin/cdrecord: Input/output error. write_g1: scsi sendcmd