Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SWIG error when using make #4092

Open
mohannadjamal opened this issue Sep 28, 2024 · 0 comments
Open

SWIG error when using make #4092

mohannadjamal opened this issue Sep 28, 2024 · 0 comments

Comments

@mohannadjamal
Copy link

Describe the bug

I get the following error on Windows 10 when running make in python SWIG
C:\Users\MOHANN~1\AppData\Local\Temp\cciE8lgl.o:cc_mingw.c:(.text+0x5f): undefined reference to pj_ansi_strxcpy'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:43: gcc.exe] Error 1`

Steps to reproduce

  1. Add config_site.h to pjlib/include/pj/ including the config_site_sample.h
  2. Build project using Visual Studio 2022
  3. Go to pjsip-apps/src/swig/python/
  4. Run make
  5. Get the error

PJSIP version

2.14.1

Context

This issue happens on Windows 10, with SWIG version 4.0.0 or SWIG version 4.2.1, GCC version (MinGW.org GCC-6.3.0-1) 6.3.0 ,Python version 3.12.5.

Log, call stack, etc

'sed' is not recognized as an internal or external command,
operable program or batch file.
gcc -o gcc.exe cc_mingw.c
cc_mingw.c: In function 'find_gcc':
cc_mingw.c:44:5: warning: implicit declaration of function 'pj_ansi_strxcpy' [-Wimplicit-function-declaration]
     pj_ansi_strxcpy(spath, p, sizeof(spath));
     ^~~~~~~~~~~~~~~
C:\Users\MOHANN~1\AppData\Local\Temp\cciE8lgl.o:cc_mingw.c:(.text+0x5f): undefined reference to `pj_ansi_strxcpy'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:43: gcc.exe] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant