bugAdonthell - Bugs: bug #58135, Make fails.

 
 

bug #58135: Make fails.

Submitter:  Giorgos Kostopoulos <giorgos67>
Submitted:  Tue 07 Apr 2020 08:42:58 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  In Progress
Privacy:  Public Assigned to:  ksterker
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 07 Apr 2020 11:56:59 PM UTC, comment #2: 

Indeed!  :-)

Deleting the offending file and installing Swing, did the trick! ;-)

Giorgos Kostopoulos <giorgos67>
Tue 07 Apr 2020 09:30:24 PM UTC, comment #1: 

It looks like SDL 2.0.6 or higher is required to compile the code as it is distributed.

The file that breaks compilation is generated by SWIG, and is included for convenience (one less dependency), but apparently that's not so great for backwards compatibility.

The easiest way forward might be to just delete the offending lines from src/py_adonthell_wrap.cc.

Better yet would be to delete the whole file, so it will be newly generated and matches what's on your system. The only precondition is to install 'swig' and then run ./configure && make again.

You might have to run make twice, in case it fails to locate the newly generated file immediately after it has been generated (another reason to distribute it in the first place).


A general fix will require a bit of thought, however.

Kai

Kai Sterker <ksterker>
Group administrator
Tue 07 Apr 2020 08:42:58 PM UTC, original submission:  

(On a Debian oldstable based distro), after successfully completing configure, make fails, complaining that "Makefile:720: recipe for target 'py_adonthell_wrap.o' failed".

The full console output, is here:

make  all-recursive
make[1]: Entering directory '/home/giorgos/TEMPG/adonthell-0.3.8'
Making all in m4
make[2]: Entering directory '/home/giorgos/TEMPG/adonthell-0.3.8/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/giorgos/TEMPG/adonthell-0.3.8/m4'
Making all in po
make[2]: Entering directory '/home/giorgos/TEMPG/adonthell-0.3.8/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/giorgos/TEMPG/adonthell-0.3.8/po'
Making all in src
make[2]: Entering directory '/home/giorgos/TEMPG/adonthell-0.3.8/src'
Making all in .
make[3]: Entering directory '/home/giorgos/TEMPG/adonthell-0.3.8/src'
  CXX      achievements.o
  CXX      adonthell.o
  CXX      animation.o
  CXX      audio.o
  CXX      character_base.o
  CXX      character.o
  CXX      data_screen.o
  CXX      dialog.o
  CXX      dialog_screen.o
  CXX      drawable.o
  CXX      drawing_area.o
  CXX      event.o
  CXX      event_handler.o
  CXX      event_list.o
  CXX      fileops.o
  CXX      game.o
  CXX      gamedata.o
  CXX      gamedate.o
  CXX      gametime.o
  CXX      image.o
  CXX      input.o
  CXX      label.o
  CXX      label_input.o
  CXX      landmap.o
  CXX      lex.prefs.o
  CXX      map_event.o
  CXX      map_event_handler.o
  CXX      mapsquare_walkable.o
  CXX      mapcharacter.o
  CXX      mapsquare.o
  CXX      mapobject.o
  CXX      mapview.o
  CXX      nls.o
  CXX      path.o
  CXX      pnm.o
  CXX      prefs.o
  CXX      python_class.o
  CXX      py_adonthell_wrap.o
py_adonthell_wrap.cc: In function ‘PyObject* SDLK_APP1_swigconstant(PyObject*, PyObject*)’:
py_adonthell_wrap.cc:10034:75: error: ‘SDLK_APP1’ was not declared in this scope
   SWIG_Python_SetConstant(d, "SDLK_APP1",SWIG_From_int(static_cast< int >(SDLK_APP1)));
                                                                           ^~~~~~~~~
py_adonthell_wrap.cc: In function ‘PyObject* SDLK_APP2_swigconstant(PyObject*, PyObject*)’:
py_adonthell_wrap.cc:10045:75: error: ‘SDLK_APP2’ was not declared in this scope
   SWIG_Python_SetConstant(d, "SDLK_APP2",SWIG_From_int(static_cast< int >(SDLK_APP2)));
                                                                           ^~~~~~~~~
py_adonthell_wrap.cc: In function ‘PyObject* SDLK_AUDIOREWIND_swigconstant(PyObject*, PyObject*)’:
py_adonthell_wrap.cc:10056:82: error: ‘SDLK_AUDIOREWIND’ was not declared in this scope
   SWIG_Python_SetConstant(d, "SDLK_AUDIOREWIND",SWIG_From_int(static_cast< int >(SDLK_AUDIOREWIND)));
                                                                                  ^~~~~~~~~~~~~~~~
py_adonthell_wrap.cc: In function ‘PyObject* SDLK_AUDIOFASTFORWARD_swigconstant(PyObject*, PyObject*)’:
py_adonthell_wrap.cc:10067:87: error: ‘SDLK_AUDIOFASTFORWARD’ was not declared in this scope
   SWIG_Python_SetConstant(d, "SDLK_AUDIOFASTFORWARD",SWIG_From_int(static_cast< int >(SDLK_AUDIOFASTFORWARD)));
                                                                                       ^~~~~~~~~~~~~~~~~~~~~
Makefile:720: recipe for target 'py_adonthell_wrap.o' failed
make[3]: * [py_adonthell_wrap.o] Error 1
make[3]: Leaving directory '/home/giorgos/TEMPG/adonthell-0.3.8/src'
Makefile:740: recipe for target 'all-recursive' failed
make[2]: * [all-recursive] Error 1
make[2]: Leaving directory '/home/giorgos/TEMPG/adonthell-0.3.8/src'
Makefile:509: recipe for target 'all-recursive' failed
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory '/home/giorgos/TEMPG/adonthell-0.3.8'
Makefile:405: recipe for target 'all' failed
make: * [all] Error 2

Giorgos Kostopoulos <giorgos67>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ksterker (Posted a comment)
  • -email is unavailable- added by giorgos67 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-07 ksterker StatusNone In Progress
        Assigned toNone ksterker

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code