programs/winedbg/elf.c breaks non-Linux platforms

Gerald Pfeifer gerald at pfeifer.com
Tue Feb 3 11:45:52 CST 2004


Hi,

I'm afraid the following patch which added programs/winedbg/elf.c

  date: 2004/02/03 00:14:12;  author: julliard;  state: Exp;
  Eric Pouech <pouech-eric at wanadoo.fr>
  - now detecting Dwarf debug information in ELF modules (but don't load
    it)
  - separated module management (pe.c, elf.c) from debug information
    management (stabs.c, msc.c)
  - worked around new wine-pthread and wine-kthread loaders (no longer
    use "wine" as default loader)
  - better convergence of gdb-proxy and winedbg for ELF handling
  - fixed ELF link-map walking - now using all loaded shared libs -
    (with the help of Robert Shearman)
  - added a bit of const correctness

breaks building Wine on non-Linux platforms.  For example, on FreeBSD 4.9
I'm seeing:

  elf.c: In function `DEBUG_ProcessElfFile':
  elf.c:344: error: `DT_NUM' undeclared (first use in this function)
  elf.c:344: error: (Each undeclared identifier is reported only once
  elf.c:344: error: for each function it appears in.)
  elf.c:344: error: `DT_PROCNUM' undeclared (first use in this function)
  elf.c:344: error: `DT_EXTRANUM' undeclared (first use in this function)
  elf.c:345: error: `DT_LOOS' undeclared (first use in this function)
  elf.c:345: error: `DT_HIOS' undeclared (first use in this function)
  elf.c:346: error: `DT_LOPROC' undeclared (first use in this function)
  elf.c:346: error: `DT_HIPROC' undeclared (first use in this function)

Gerald
-- 
Gerald Pfeifer (Jerry)   gerald at pfeifer.com   http://www.pfeifer.com/gerald/



More information about the wine-devel mailing list