Skip to contentSkip to conversation

decode-edid perl problems

DISCUSSION Mark D. Studebaker 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

perl 5.005

Not enough arguments for syswrite at ./decode-edid.pl line 111, near "$output;" Not enough arguments for syswrite at ./decode-edid.pl line 114, near ""\n";" Execution of ./decode-edid.pl aborted due to compilation errors.

#1 lore raw
Quoted 7 lines

perl 5.005

Not enough arguments for syswrite at ./decode-edid.pl line 111, near "$output;" Not enough arguments for syswrite at ./decode-edid.pl line 114, near ""\n";" Execution of ./decode-edid.pl aborted due to compilation errors.

Really strange. This is supposed to work with perl 5.005_03. Please try adding a third parameter to the syswrite calls:
syswrite PIPE, "\n";
becomes:
syswrite (PIPE, "\n", length ("\n"));
and so on.

In sensors-detect we use that form and it seem to work for you. If it works I'll commit the changes.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Mark D. Studebaker
Quoted 10 lines

Really strange. This is supposed to work with perl 5.005_03. Please try adding a third parameter to the syswrite calls:
syswrite PIPE, "\n";
becomes:
syswrite (PIPE, "\n", length ("\n"));
and so on.

In sensors-detect we use that form and it seem to work for you. If it works I'll commit the changes.

I just realized I should be using print, not syswrite, so you may check just to increase our knowledge, but the fix I'll commit will be different anyway.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/