Opened 5 years ago

Closed 5 years ago

#59485 closed defect (fixed)

py27-gyoto: error: use of undeclared identifier 'Py_DecodeLocale'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: paumard
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: Gyoto

Description

py27-gyoto fails to build:

mk_video.C:39:16: error: use of undeclared identifier 'Py_DecodeLocale'
    wargv[k] = Py_DecodeLocale(argv[k], &sz);
               ^
mk_video.C:42:3: error: no matching function for call to 'PySys_SetArgv'
  PySys_SetArgv(argc, wargv);
  ^~~~~~~~~~~~~
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/sysmodule.h:13:18: note: candidate function not viable: no known conversion from 'wchar_t *[argc]' to 'char **' for 2nd argument
PyAPI_FUNC(void) PySys_SetArgv(int, char **);
                 ^
mk_video.C:51:5: error: use of undeclared identifier 'PyMem_RawFree'; did you mean 'PyMem_Free'?
    PyMem_RawFree(wargv[k]);
    ^~~~~~~~~~~~~
    PyMem_Free
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymem.h:54:18: note: 'PyMem_Free' declared here
PyAPI_FUNC(void) PyMem_Free(void *);
                 ^
3 errors generated.

Change History (1)

comment:1 Changed 5 years ago by paumard

Resolution: fixed
Status: assignedclosed

In f8dbf6dbd4eaa5d9c31e335294a047fa4c308b94/macports-ports (master):

Gyoto: drop Python 2.7 support

Gyoto 1.4.x does not support Python 2.

Closes: #59485

Note: See TracTickets for help on using tickets.