>From: Andreas Metzler <[EMAIL PROTECTED]>

>>>>>>| cdrecord won't work as non-root on Linux if compiled with
>>>>>>| -DUSE_USGSHM, but will work as non-root if -DUSE_USGSHM was *not*
>>>>>>| specified.
>>>>>>|--------
>>>[...]
>>>> 1)   You are not intended to use -DUSE_USGSHM manually.

>>>>      If you compile for a Llinux-2.4, there is a working MMAP
>>>>      and you need no SysV SHM.
> 
>>> If I did that the resulting binary would not work with Linux-2.2.
> 
>> I thought that this has already been discussed now.....
>[...] 
>> You need two sets of binaries for two sets of OS environments if you
>> like to have a high quality OS distribution.

>I think we'll resolve this by shipping two versions af cdrecord, one
>compiled with -DUSE_USGSHM and the other one without it, using a
>simple wrapper skript to choose the correct one at runtime:
>#bin/sh
>VERS=`/sbin/kernelversion`
>case $VERS in
>  2.0|2.2)
>    exec cdrecord.shm "$@"
>  ;;
>  2.4|*)
>    exec cdrecord.mmap "$@"
>  ;;
>esac

This is not really a correct solution. The correct solution woult be to compile
once on Linux-2.x and another binary on Linux-2.4.x

The make environyment for cdrtools is consistent, the current debian make 
environment is notbecause you try to compile for Linux-2.x on Linux-2.4.x



J�rg

 EMail:[EMAIL PROTECTED] (home) J�rg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  If you don't have iso-8859-1
       [EMAIL PROTECTED]        (work) chars I am J"org Schilling
 URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to