Comments (7)
So, issue not in this - just need to patch #ifdefs for CYGWIN to be more *nix, than WINDOWS.
from radare2.
Feel free to provide a working patch so we can add cygwin into the supported ports
from radare2.
Can you try again? I have made tchar.h conditional
from radare2.
$ 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.
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.
Related bugs:
from radare2.
All fixed (except -fPIC, but that's minor, only messing building logs, not the resulting files).
from radare2.
Related Issues (20)
- radare2 fails to build on PowerPC Macintosh HOT 1
- Include refs on rcall and ucall on pdfj command HOT 13
- Null pointer dereference HOT 1
- multiple redirects not working
- Colorize bytes in hexdump/disasm that has been modified or patched in the cache
- Report error when using longopt
- Mach-O kernelcache segments are all slid by 0x1c bytes
- compilation error HOT 1
- publish checksums.txt with github releases for verification HOT 9
- Consider renaming r_file_is_directory HOT 1
- Opening new panels in visual mode can destroy other panels, or open them in background. HOT 3
- Installation error! prompting for root password. HOT 1
- WARN: Relocs has not been applied. Please use `-e bin.relocs.apply=true` or `-e bin.cache=true` next time HOT 5
- Writing on no files should result in error HOT 2
- stderr not captured into internal files
- Incorrect usage of pdj makes r2 hang forever HOT 3
- SNES disassembler plugin handles the MVN instruction wrong
- Piping and | in params HOT 1
- Optimized AES HOT 2
- drx: registers only available on x86. Use dbH for native hardware breakpoints and watchpoints. HOT 3
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 radare2.