bug-xorriso
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-xorriso] please help to compile arm cross platform


From: Thomas Schmitt
Subject: Re: [Bug-xorriso] please help to compile arm cross platform
Date: Tue, 07 Jan 2014 22:19:22 +0100

Hi,

> `/usr/local/arm-marvell-linux-gnueabi/bin/xorriso-1.3.4'
> [...]
> libburn/sg-linux.c:495:44: warning: pointer of type 'void *' used in 
> arithmetic [-pedantic]
> libburn/sg-linux.c:495:44: warning: dereferencing 'void *' pointer [enabled 
> by default]
> libburn/sg-linux.c:495:5: error: invalid use of void expression

Line 495 has:

       sprintf(msg_pt + i * 3, " %2.2X", s.sbp[i]);

msg_pt is defined as char *.
s.sbp is defined in an included system header:
  <scsi/sg.h>
My local (amd64) header file
  /usr/include/scsi/sg.h
has in  struct sg_io_hdr :
  unsigned char * sbp;        /* [i], [*o] points to sense_buffer memory */

I assume yours is a void pointer.

Can you find out which file effectively gets included as <scsi/sg.h>
and send a copy to me ?

>From what system is that header ? Is there a public repository
where i could study the include files ?

----------------------------------------------------------------
Preliminary workarounds:

If you need xorriso only for ISO 9660 filesystem production
and not for burning of CD, DVD, and BD media, then you may
prevent the use of sg-linux.c with its system specific code
by:

  export CFLAGS="$CFLAGS -DLibburn_use_sg_dummY"
  make clean
  make

If you already have libcdio version 0.83 or newer, then you
may use the libcdio adapter instead of the SG_IO adapter:

  ./configure ...other.options... --enable-libcdio
  make clean
  make

(That one is not totally free of system specific code.
 Possibly libcdio might run into similar compile time problems.)


Have a nice day :)

Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]