Menu

#5 m68k-bdm-1.3.0

open
nobody
None
5
2005-05-31
2005-05-31
Anonymous
No

I am trying to compile the BDM library (m68k-bdm-
1.3.0) using MinGW (tryed with versions: 3.0.0-1, 3.1.0-
1, 3.2.0-rc-3) and MSYS (version 1.0.10-1). I get the
following error:

m68k-bdm-1.3.0/flashlib/bdmfilt.h:15 error: syntax error
before "caddr_t"

and several other errors and warning. See the attached
file.

Thanks, regards,

Andrea

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Hello,

    I tried it to compile with MinGW 4.1.1 and MSYS 1.0.10.
    Still get the same error message. The file types.h in
    include/sys/ of MinGW doesn't contain the type information
    for caddr_t and others. Under Unix/Linux, this seem to be
    contained in the Kernel header.

    Where do I get this from for Win2k?

    Thanks and regards
    Olaf (olaf.brust@de.opel.com)

     
  • fisher

    fisher - 2005-09-13

    Logged In: YES
    user_id=1343586

    Hello,
    I try to build m68-bdm-1.3.0 in windows xp with MinGW-4.1.1
    and MSYS-1.0.10 but failed.
    Who can help me?
    (See error messages below.)

    THANKS!

    FISHER
    NEW8051@21CN.COM

    FISHER@SKY /d/bdm-win/m68k-bdm-1.3.0
    $ ./configure --with-bfd-include-dir=/d/bdm-win/gdb-6.1/bfd --
    with-libbfd=libbfd.a --
    with-libiberty=libiberty.a
    checking build system type... i686-pc-mingw32
    checking host system type... i686-pc-mingw32
    checking target system type... i686-pc-mingw32
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.exe
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables... .exe
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking for ranlib... ranlib
    checking for a BSD-compatible install... /bin/install -c
    checking for flex... no
    checking for lex... no
    checking for yywrap in -lfl... no
    checking for yywrap in -ll... no
    checking for gcc... (cached) gcc
    checking for ar... ar
    checking for as... as
    checking for ranlib... (cached) ranlib
    checking for ld... ld
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating flashlib/Makefile
    config.status: creating lib/Makefile
    config.status: creating server/Makefile
    config.status: creating test/Makefile
    config.status: creating bdmabstraction/Makefile
    config.status: creating utils/Makefile
    config.status: executing depfiles commands

    FISHER@SKY /d/bdm-win/m68k-bdm-1.3.0
    $ make
    Making all in lib
    make[1]: Entering directory `/d/bdm-win/m68k-bdm-1.3.0/lib'
    if gcc -DPACKAGE_NAME=\"m68k-bdm\" -
    DPACKAGE_TARNAME=\"m68k-bdm\" -
    DPACKAGE_VERSION=\"1.3 .0\" -
    DPACKAGE_STRING=\"m68k-bdm\ 1.3.0\" -
    DPACKAGE_BUGREPORT=\"bdm-
    devel@lists.sourcefor ge.net\" -
    DPACKAGE=\"m68k-bdm\" -DVERSION=\"1.3.0\" -I. -I. -
    I./../driver -DBDM_IOPERM -
    DBDM_DEVICE_REMOTE -DBDM_DEVICE_LOCAL -g -O2 -
    MT bdmIO.o -MD -MP -
    MF ".deps/bdmIO.Tpo" -c -o
    bdmIO.o bdmIO.c; \ then mv -f ".deps/bdmIO.Tpo" ".deps/bdmIO.Po"; else rm -
    f ".deps/bdmIO.Tpo"; exit 1; fi
    if gcc -DPACKAGE_NAME=\"m68k-bdm\" -
    DPACKAGE_TARNAME=\"m68k-bdm\" -
    DPACKAGE_VERSION=\"1.3 .0\" -
    DPACKAGE_STRING=\"m68k-bdm\ 1.3.0\" -
    DPACKAGE_BUGREPORT=\"bdm-
    devel@lists.sourcefor ge.net\" -
    DPACKAGE=\"m68k-bdm\" -DVERSION=\"1.3.0\" -I. -I. -
    I./../driver -DBDM_IOPERM -
    DBDM_DEVICE_REMOTE -DBDM_DEVICE_LOCAL -g -O2 -
    MT bdmRemote.o -MD -MP -
    MF ".deps/bdmRemo te.Tpo" -c -o
    bdmRemote.o bdmRemote.c; \ then mv -f ".deps/bdmRemote.Tpo" ".deps/bdmRemote.Po";
    else rm -f ".deps/bdmRemote.Tpo";
    exit 1; fi
    rm -f libBDM.a
    ar cru libBDM.a bdmIO.o bdmRemote.o
    ranlib libBDM.a
    make[1]: Leaving directory `/d/bdm-win/m68k-bdm-1.3.0/lib'
    Making all in flashlib
    make[1]: Entering directory `/d/bdm-win/m68k-bdm-
    1.3.0/flashlib'
    if gcc -DPACKAGE_NAME=\"m68k-bdm\" -
    DPACKAGE_TARNAME=\"m68k-bdm\" -
    DPACKAGE_VERSION=\"1.3 .0\" -
    DPACKAGE_STRING=\"m68k-bdm\ 1.3.0\" -
    DPACKAGE_BUGREPORT=\"bdm-
    devel@lists.sourcefor ge.net\" -
    DPACKAGE=\"m68k-bdm\" -DVERSION=\"1.3.0\" -I. -I. -
    I./../driver -I./../lib - I/d/bdm-win/gdb-
    6.1/bfd -g -O2 -g -O2 -MT bdmfilt.o -MD -MP -
    MF ".deps/bdmfilt.Tpo" -c -o
    bdmfilt.o bdmfilt.c; \ then mv -f ".deps/bdmfilt.Tpo" ".deps/bdmfilt.Po"; else rm -
    f ".deps/bdmfilt.Tpo"; exit 1 ; fi
    In file included from bdmfilt.c:1:
    ./bdmfilt.h:15: error: syntax error before "caddr_t"
    ./bdmfilt.h:15: warning: no semicolon at end of struct or union
    ./bdmfilt.h:16: warning: data definition has no type or storage
    class
    ./bdmfilt.h:18: error: syntax error before "flags"
    ./bdmfilt.h:18: warning: data definition has no type or storage
    class
    ./bdmfilt.h:19: error: syntax error before "caddr_t"
    ./bdmfilt.h:22: error: syntax error before '}' token
    ./bdmfilt.h:22: warning: data definition has no type or storage
    class
    ./bdmfilt.h:30: error: syntax error before '*' token
    ./bdmfilt.h:30: warning: data definition has no type or storage
    class
    ./bdmfilt.h:33: error: syntax error before '*' token
    bdmfilt.c:7: error: syntax error before '*' token
    bdmfilt.c:7: warning: data definition has no type or storage
    class
    bdmfilt.c:10: error: syntax error before '*' token
    bdmfilt.c: In function `bdmfilt_wrb_filt':
    bdmfilt.c:14: error: `u_int' undeclared (first use in this function)
    bdmfilt.c:14: error: (Each undeclared identifier is reported
    only once
    bdmfilt.c:14: error: for each function it appears in.)
    bdmfilt.c:14: error: syntax error before "part_size"
    bdmfilt.c:15: error: `size' undeclared (first use in this function)
    bdmfilt.c:17: error: `filt' undeclared (first use in this function)
    bdmfilt.c:18: error: `in_adr' undeclared (first use in this
    function)
    bdmfilt.c:22: error: `part_size' undeclared (first use in this
    function)
    bdmfilt.c:23: error: `bl_ptr' undeclared (first use in this
    function)
    make[1]: *** [bdmfilt.o] Error 1
    make[1]: Leaving directory `/d/bdm-win/m68k-bdm-
    1.3.0/flashlib'
    make: *** [all-recursive] Error 1

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.