Author Topic: Bug report (?) -- 2.10 in Linux  (Read 12908 times)

Erik Siers

  • Newbie
  • *
  • Posts: 10
Bug report (?) -- 2.10 in Linux
« on: October 05, 2011, 09:49:31 PM »
I'm pretty sure that I had TrID working on previous versions of Slackware, but when I tried running it on a clean install of 13.37 (the current version) I got this error:
Quote
bash-4.1$ trid image_disp.jpeg

TrID/32 - File Identifier v2.10 - (C) 2003-11 By M.Pontello

File /usr/local/bin\triddefs.trd not found!
No definitions available! You can download an up to date
defs library from TrID's page at http://mark0.net

triddefs.trd is indeed in /usr/local/bin (as is TrID itself) -- I also copied it to /usr/local/etc and /usr/local/lib to see if that would magically fix it. (It didn't.) TrID works fine as long as the .trd file is in the current directory...  :-\

Note the backslash (\) in the listed path (/usr/local/bin\triddefs.trd). If you change the byte (in the compiled app) at 0xf6b4 (or &hf6b5 for BASIC) from "\" to "/", this problem is fixed; that tells me that this might very well be a bug. Might want to check your sources.

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Bug report (?) -- 2.10 in Linux
« Reply #1 on: October 06, 2011, 01:17:41 AM »
Thanks, will surely have a look!

Erik Siers

  • Newbie
  • *
  • Posts: 10
Re: Bug report (?) -- 2.10 in Linux
« Reply #2 on: October 06, 2011, 06:56:06 AM »
Here's a BASIC script to patch the executable as I mentioned above. Works in Michael Haardt's bas (http://www.moria.de/~michael/bas/) and FreeBASIC; should work in pretty much any QBasic-alike, and possibly others (untested); does  NOT work in Chipmunk Basic (http://www.nicholson.com/rhn/basic/; no BINARY mode).
Code: [Select]
(patch removed; not needed for current version)
Save that to a file ("patch-trid.bas" or whatever) and then run it in the directory containing the trid executable:
    bas patch-trid.bas

This only needs to be run once -- running it again does nothing except waste your time.

Note that this is only for TrID 2.10 for Linux dated 14 Feb 2011 -- this will probably do Bad ThingsTM to other versions.
« Last Edit: December 16, 2011, 04:34:19 AM by eriksiers »

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Bug report (?) -- 2.10 in Linux
« Reply #3 on: December 07, 2011, 04:36:44 PM »
Now there's a new 2.11 Linux version with this bug fixed.

Erik Siers

  • Newbie
  • *
  • Posts: 10
Re: Bug report (?) -- 2.10 in Linux
« Reply #4 on: December 16, 2011, 04:32:43 AM »
Awesome. Works beautifully. :)