ndmsystems / sstp-client

SSTP Client for Linux
GNU General Public License v2.0
5 stars 2 forks source link

sstp-plugin.c:331:17: error: ‘path_preup’ undeclared #3

Open kovalroma opened 4 years ago

kovalroma commented 4 years ago

First I put

autoreconf -f -i

Then

./configure

This error appears on ./make command

Making all in src/pppd-plugin
make[2]: Entering directory '/home/roman/sstp-client/src/pppd-plugin'
  CC       sstp_pppd_plugin_la-sstp-plugin.lo
sstp-plugin.c: In function ‘sstp_phasechange’:
sstp-plugin.c:331:17: error: ‘path_preup’ undeclared (first use in this function                                                                                                             ); did you mean ‘path_ipup’?
     script_sstp(path_preup);
                 ^~~~~~~~~~
                 path_ipup
sstp-plugin.c:331:17: note: each undeclared identifier is reported only once for                                                                                                              each function it appears in
Makefile:450: recipe for target 'sstp_pppd_plugin_la-sstp-plugin.lo' failed
make[2]: *** [sstp_pppd_plugin_la-sstp-plugin.lo] Error 1
make[2]: Leaving directory '/home/roman/sstp-client/src/pppd-plugin'
Makefile:551: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/roman/sstp-client'
Makefile:398: recipe for target 'all' failed
make: *** [all] Error 2
inste commented 4 years ago

Yes, you need to export const char* path_preup from pppd to build this module.

kovalroma commented 4 years ago

Hello and thank you for you reply. I am not very familiar with configure&make tools. Can I ask you to write more details ? What should I put in terminal ?

inste commented 4 years ago

Just comment this line - sstp-plugin.c:331 - everything will be ok. It is used only for internal integration purposes.

ycruzz commented 3 years ago

I have the same problem, where do I have to comment on that line?

[root@Herus sstp-client-ndm-1.0.12]# make make all-recursive make[1]: se ingresa al directorio /home/ycruz/Descargas/sstp-client-ndm-1.0.12' Making all in src/libsstp-log make[2]: se ingresa al directorio/home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-log' make[2]: No se hace nada para all'. make[2]: se sale del directorio/home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-log' Making all in src/libsstp-api make[2]: se ingresa al directorio /home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-api' make[2]: No se hace nada paraall'. make[2]: se sale del directorio /home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-api' Making all in src/libsstp-compat make[2]: se ingresa al directorio/home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-compat' make[2]: No se hace nada para all'. make[2]: se sale del directorio/home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/libsstp-compat' Making all in src/pppd-plugin make[2]: se ingresa al directorio /home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/pppd-plugin' CC sstp_pppd_plugin_la-sstp-plugin.lo sstp-plugin.c: In function 'sstp_phasechange': sstp-plugin.c:331:17: error: 'path_preup' undeclared (first use in this function) script_sstp(path_preup); ^ sstp-plugin.c:331:17: note: each undeclared identifier is reported only once for each function it appears in make[2]: *** [sstp_pppd_plugin_la-sstp-plugin.lo] Error 1 make[2]: se sale del directorio/home/ycruz/Descargas/sstp-client-ndm-1.0.12/src/pppd-plugin' make[1]: [all-recursive] Error 1 make[1]: se sale del directorio `/home/ycruz/Descargas/sstp-client-ndm-1.0.12' make: [all] Error 2