Giter Site home page Giter Site logo

Comments (7)

XVilka avatar XVilka commented on May 22, 2024

So, issue not in this - just need to patch #ifdefs for CYGWIN to be more *nix, than WINDOWS.

from radare2.

radare avatar radare commented on May 22, 2024

Feel free to provide a working patch so we can add cygwin into the supported ports

from radare2.

radare avatar radare commented on May 22, 2024

Can you try again? I have made tchar.h conditional

from radare2.

XVilka avatar XVilka commented on May 22, 2024
$ make
make -C libr/util
make[1]: Entering directory '/cygdrive/d/Work/radare/radare2/libr/util'
gcc -c  -MD   -fPIC -g -Wall -D__CYGWIN__=1 -I/cygdrive/d/Work/radare/radare2/libr/include -DGIT_TAP=\"0.9.8-rc2-74-g4b7796d\" -o mem.o mem.c
mem.c:1:0: warning: -fPIC ignored for target (all code is position independent)
 /* radare - LGPL - Copyright 2007-2014 - pancake */
 ^
In file included from /usr/include/cygwin/sys_time.h:13:0,
                 from /usr/include/sys/time.h:61,
                 from /cygdrive/d/Work/radare/radare2/libr/include/r_types.h:89,
                 from /cygdrive/d/Work/radare/radare2/libr/include/r_util.h:6,
                 from mem.c:3:
/usr/include/sys/select.h:31:5: error: conflicting types for 'select'
 int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
     ^
In file included from /cygdrive/d/Work/radare/radare2/libr/include/r_types.h:42:0,
                 from /cygdrive/d/Work/radare/radare2/libr/include/r_util.h:6,
                 from mem.c:3:
/usr/include/w32api/winsock.h:299:34: note: previous declaration of 'select' was here
   WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
                                  ^
/cygdrive/d/Work/radare/radare2/libr/../global.mk:44: recipe for target 'mem.o' failed
make[1]: *** [mem.o] Error 1
make[1]: Leaving directory '/cygdrive/d/Work/radare/radare2/libr/util'
Makefile:24: recipe for target 'all' failed
make: *** [all] Error 2

from radare2.

radare avatar radare commented on May 22, 2024

Try removing the include select.h on windows this is inside winsock. If it works put it inside an #ifndef cygwin and try again/pullreq

On 24 Jun 2014, at 21:24, Anton Kochkov [email protected] wrote:

$ make
make -C libr/util
make[1]: Entering directory '/cygdrive/d/Work/radare/radare2/libr/util'
gcc -c -MD -fPIC -g -Wall -D__CYGWIN__=1 -I/cygdrive/d/Work/radare/radare2/libr/include -DGIT_TAP="0.9.8-rc2-74-g4b7796d" -o mem.o mem.c
mem.c:1:0: warning: -fPIC ignored for target (all code is position independent)
/* radare - LGPL - Copyright 2007-2014 - pancake /
^
In file included from /usr/include/cygwin/sys_time.h:13:0,
from /usr/include/sys/time.h:61,
from /cygdrive/d/Work/radare/radare2/libr/include/r_types.h:89,
from /cygdrive/d/Work/radare/radare2/libr/include/r_util.h:6,
from mem.c:3:
/usr/include/sys/select.h:31:5: error: conflicting types for 'select'
int select __P ((int __n, fd_set __readfds, fd_set __writefds,
^
In file included from /cygdrive/d/Work/radare/radare2/libr/include/r_types.h:42:0,
from /cygdrive/d/Work/radare/radare2/libr/include/r_util.h:6,
from mem.c:3:
/usr/include/w32api/winsock.h:299:34: note: previous declaration of 'select' was here
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^
/cygdrive/d/Work/radare/radare2/libr/../global.mk:44: recipe for target 'mem.o' failed
make[1]: * [mem.o] Error 1
make[1]: Leaving directory '/cygdrive/d/Work/radare/radare2/libr/util'
Makefile:24: recipe for target 'all' failed
make: *
* [all] Error 2


Reply to this email directly or view it on GitHub.

from radare2.

XVilka avatar XVilka commented on May 22, 2024

Related bugs:

from radare2.

XVilka avatar XVilka commented on May 22, 2024

All fixed (except -fPIC, but that's minor, only messing building logs, not the resulting files).

from radare2.

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.