Comments (13)
Have the same issue on Ubuntu 14.04 (edit: initial comment mentioned 14.10 which is incorrect).
from ios-webkit-debug-proxy.
And I do on Ubuntu 14.04.
from ios-webkit-debug-proxy.
I got this building by wrapping all asprintf
s in
if(asprintf(&blah, "blah blah", something, oranother) < 0) return -1;
or
if(asprintf(&blah, "blah blah", something, oranother) < 0) return NULL;
depending on the return type.
Also Ubuntu 14.04LTS
from ios-webkit-debug-proxy.
I can submit a PR for this if desired but as my C++ isn't that strong I have no clue as to side effects this could cause.
from ios-webkit-debug-proxy.
There is another solution to this problem. You only need to remove the -Werror from CFLAGS in these Makefiles:
./Makefile
./include/Makefile
./src/Makefile
./examples/Makefile
-Werror instructs the compiler to treat warnings as errors.
from ios-webkit-debug-proxy.
+1 here ~
Ubuntu 14.04
Please help , this program help on development a lot as we don't have mac PC
from ios-webkit-debug-proxy.
I fixed this by using:
./configure CFLAGS='-g -O0 -D_GNU_SOURCE=1'
which let it build successfully.
from ios-webkit-debug-proxy.
@rojo2 nice tip, to make it easier you can just edit configure.ac and remove -Werror flag from CFLAGS="${CFLAGS} -Wall -Werror" line and re-run autogen.sh
from ios-webkit-debug-proxy.
Thank you @artygus.
from ios-webkit-debug-proxy.
I can't build with removing -Werror flag
CFLAGS="${CFLAGS} -Wall"
but it can't connect to the IPad any idea?
Listing devices on :9221
No iPhone found, is it plugged in?: Operation now in progress
Unable to attach ed299d1c2d1202368f289dc2c861d279cd2c7f8d inspector
from ios-webkit-debug-proxy.
Thanks, I just pushed a fix to check the "asprintf" error codes, so it should compile cleanly now.
from ios-webkit-debug-proxy.
@wrightt Having just tried to compile on Ubuntu 14.04, there is still an error with asprintf, but different; it may have been being concealed by the previous errors?
make[2]: Entering directory `/home/aquarius/Programs/Others/ios-webkit-debug-proxy/examples'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src -g -O2 -Wall -Werror -MT ws_echo1.o -MD -MP -MF .deps/ws_echo1.Tpo -c -o ws_echo1.o ws_echo1.c
mv -f .deps/ws_echo1.Tpo .deps/ws_echo1.Po
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../src -g -O2 -Wall -Werror -MT ws_echo_common.o -MD -MP -MF .deps/ws_echo_common.Tpo -c -o ws_echo_common.o ws_echo_common.c
ws_echo_common.c: In function ‘create_root_response’:
ws_echo_common.c:28:3: error: implicit declaration of function ‘asprintf’ [-Werror=implicit-function-declaration]
if (asprintf(&html,
^
cc1: all warnings being treated as errors
make[2]: *** [ws_echo_common.o] Error 1
from ios-webkit-debug-proxy.
Ah, thanks, I just pushed a quick fix -- it was simply missing a "#define _GNU_SOURCE" at the top.
from ios-webkit-debug-proxy.
Related Issues (20)
- can not work on ios 14.4 HOT 11
- Hi
- It broke my computer configuration
- configure: error: Package requirements (libimobiledevice-1.0 >= 1.3.0) were not met: HOT 2
- No connection with iOS 15.1 HOT 11
- In the iphone13 pro max simulator、ios 15(not real device), chrome://inspect can't detect any webview? HOT 1
- On win10, iOS 15.3 , how to solve this problem: 'could not start com.apple.webinspector'. The safari webinspector has set ‘on’. HOT 16
- ios-webkit-debug-proxy dependencies not built for the x86_64 CPU architecture HOT 2
- Hey
- provide prebuilt binaries via github actions
- No device found, is it plugged in? (Windows 11) HOT 17
- Can't connect my ios device!!! HOT 1
- make compilation error on fedora 37 HOT 2
- Unable to obtain content HOT 1
- Compile issue with libplist Version 2.3.0 HOT 1
- Passing --disable-static to ./configure breaks examples compilation HOT 1
- Is it possible to debug service worker? HOT 1
- .
- Upgrade OpenSSL version HOT 4
- Compilation error because `iwdpm_new()` declaration is different than definition signature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-webkit-debug-proxy.