Git Product home page Git Product logo

Comments (13)

irnc avatar irnc commented on May 3, 2024

Have the same issue on Ubuntu 14.04 (edit: initial comment mentioned 14.10 which is incorrect).

from ios-webkit-debug-proxy.

stuartlangridge avatar stuartlangridge commented on May 3, 2024

And I do on Ubuntu 14.04.

from ios-webkit-debug-proxy.

morganrallen avatar morganrallen commented on May 3, 2024

I got this building by wrapping all asprintfs 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.

morganrallen avatar morganrallen commented on May 3, 2024

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.

 avatar commented on May 3, 2024

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.

AdrianDroid avatar AdrianDroid commented on May 3, 2024

+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.

AdaRoseCannon avatar AdaRoseCannon commented on May 3, 2024

I fixed this by using:

./configure CFLAGS='-g -O0 -D_GNU_SOURCE=1'

which let it build successfully.

from ios-webkit-debug-proxy.

artygus avatar artygus commented on May 3, 2024

@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.

 avatar commented on May 3, 2024

Thank you @artygus.

from ios-webkit-debug-proxy.

AdrianDroid avatar AdrianDroid commented on May 3, 2024

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.

zwri avatar zwri commented on May 3, 2024

Thanks, I just pushed a fix to check the "asprintf" error codes, so it should compile cleanly now.

from ios-webkit-debug-proxy.

stuartlangridge avatar stuartlangridge commented on May 3, 2024

@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.

zwri avatar zwri commented on May 3, 2024

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)

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.