Giter Site home page Giter Site logo

报错!!! about ngrok-c HOT 23 CLOSED

dosgo avatar dosgo commented on August 18, 2024
报错!!!

from ngrok-c.

Comments (23)

dosgo avatar dosgo commented on August 18, 2024

你找找你的sdk的g++编译器叫啥名字。。然后把mips-openwrt-linux-g++改成那名字。

from ngrok-c.

oe77 avatar oe77 commented on August 18, 2024

@dosgo g++编译器名字在那里可以找到??

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

这个目录找啊/home/lo/sdk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin

from ngrok-c.

oe77 avatar oe77 commented on August 18, 2024

@dosgo mipsel-openwrt-linux-uclibc-g++

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

那你修改openwrtbuildv2.sh文件,把mips-openwrt-linux-g++改成mipsel-openwrt-linux-uclibc-g++

from ngrok-c.

oe77 avatar oe77 commented on August 18, 2024

生成的ngrokc只有50k左右,我见别人生成的有400多k,作者正常吗??
lo@lo-virtual-machine:/ngrok-c-master$ sudo ./openwrtbuildv2.sh
[sudo] password for lo:
mkdir: 无法创建目录"build-mips": 文件已存在
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
build-mips/main.o: In function `proxy()':
main.cpp:(.text+0x590): warning: gethostbyname is obsolescent, use getnameinfo() instead.
lo@lo-virtual-machine:
/ngrok-c-master$

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

正常,openssl动态链接的就是这个大小。

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

400k的,那是polarssl静态链接的。

from ngrok-c.

oe77 avatar oe77 commented on August 18, 2024

作者!谢谢你!

from ngrok-c.

badsirius avatar badsirius commented on August 18, 2024

你好! dosgo。
下载15.05 ar71xx的SDK,按照教程所设置,运行openwrtbuildv2.sh,也出现上面!@oe77列出的如下信息。我以前编译1.25,1.30都不会有如此信息,就是简单一条信息而已。就可以使用编译好的ngrockc了。
请问这些反馈信息正常吗?

In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
build-mips/main.o: In function `proxy()':

main.cpp:(.text+0x590): warning: gethostbyname is obsolescent, use getnameinfo() instead.

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

一切正常。有ngrokc生成都正常,然后。。你跑下能跑,是新版都正常。

from ngrok-c.

badsirius avatar badsirius commented on August 18, 2024

dosgo,确实如你所言。编译过程出现上面我提到的信息。
但是build-mips目录,有编译好的ngrokc。

(先关闭路由中 ngrokc服务)
拉到openwrt的 usr/bin
重启ngrokc

正常使用!!,THX

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

这只是警告而已。。正常。说一个变量未定义,还有gethostbyname 过时了。。

from ngrok-c.

linktest avatar linktest commented on August 18, 2024

感觉最后一步出错最后一步
mipsel-openwrt-linux-uclibc-g++: error: build-mips/ngrok.o: No such file or directory
没有ngrokc生成

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

版本呢?1.34编译不了

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

用1.35吧

from ngrok-c.

linktest avatar linktest commented on August 18, 2024

刚用最新版,还是一样的错误啊
linux@ubuntu:/ngrok-c-master$ sudo ./openwrtbuildv2.sh
[sudo] password for linux:
mkdir: cannot create directory ‘build-mips’: File exists
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from sendmsg.cpp:11:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION sess = NULL;
^
main.cpp:337:20: warning: extra tokens at end of #endif directive [enabled by default]
#endif /
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from main.cpp:63:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
In file included from nonblocking.h:21:0,
from nonblocking.cpp:1:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
ngrok.cpp: In function 'int UdpCmd(int)':
ngrok.cpp:45:73: error: invalid conversion from 'int
' to 'socklen_t* {aka unsigned int_}' [-fpermissive]
int udpbuflen=recvfrom(udpsocket,buf,1024,MSG_PEEK ,&udpaddr,&udplen);
^
In file included from /home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/netinet/in.h:25:0,
from /home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/arpa/inet.h:23,
from ngrok.cpp:8:
/home/linux/1/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include/sys/socket.h:166:16: error: initializing argument 6 of 'ssize_t recvfrom(int, void_, size_t, int, sockaddr_, socklen_t_)' [-fpermissive]
extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
^
In file included from nonblocking.h:21:0,
from sendmsg.h:4,
from ngrok.h:6,
from ngrok.cpp:13:
sslbio.h: At global scope:
sslbio.h:14:21: warning: 'sess' defined but not used [-Wunused-variable]
static SSL_SESSION *sess = NULL;
^
mipsel-openwrt-linux-uclibc-g++: error: build-mips/ngrok.o: No such file or directory
linux@ubuntu:
/ngrok-c-master$

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

你这哪是最新版,1.35才是

from ngrok-c.

linktest avatar linktest commented on August 18, 2024

仔细看了下,main.cpp文件
using namespace std;
string VER = "1.35-(2016/5/13)";
应该是1.35

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

1.35 sslbio.h:14:21: warning: 'sess'就没sess这个变量..你用git的?

from ngrok-c.

linktest avatar linktest commented on August 18, 2024

不是,打包下载Download ZIP

from ngrok-c.

dosgo avatar dosgo commented on August 18, 2024

我检查过了...确认,,1.35包没有问题。建议你删除以前旧的任何包,,,重新下载,,编译。。我觉得你可能是目录搞错了。。或者。。ngrok.cpp没有替换。

from ngrok-c.

linktest avatar linktest commented on August 18, 2024

刚重新下载了,不到10秒,生成一个文件。应该是没问题了
linux@ubuntu:/ngrok-c-1.35-2016-5-13-$ sudo ./openwrtbuildv2.sh
[sudo] password for linux:
mkdir: cannot create directory ‘build-mips’: File exists
linux@ubuntu:
/ngrok-c-1.35-2016-5-13-$

from ngrok-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.