Re: Building cpan module that links with proprietary libs
On Fri, May 30, 2014 at 4:36 AM, Andrew DeFaria wrote: > On 5/29/2014 6:42 PM, Larry Hall (Cygwin) wrote: >> As a >> result, you will never get code compiled with g++ to link with these >> libraries. There is no common ABI among C++ compilers. Thus, the >> libraries >> and headers of one can't be used as input to the compiler of another, even >> on the same platform. This only works for C code. So you have to either >> build the proprietary libs with Cygwin's C++ compiler or write your own >> "shim" library that wraps the necessary calls and objects in a C API, >> compile that with VS, and link your program against the APIs in your >> library. @Larry: Would this work? I think MSVC produces obj and lib files in COFF; can Cygwin's toolchain understand that? > > Being as this code is proprietary I doubt that Perforce will release it to > me to compile but I will point them at this thread...' Maybe you can convince them to build a Cygwin version (not very likely). Csaba -- GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++ The Tao of math: The numbers you can count are not the real numbers. Life is complex, with real and imaginary parts. "Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds "People disagree with me. I just ignore them." -- Linus Torvalds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Are there any SELinux tools available for Cygwin?
Hi, I'm looking into remotely managing a few machines that are running various SELinux flavours. But the management of SELinux and the audit.log files often requires tools such as: audit2allow audit2why semanage etc. Some of this code can be found here: http://userspace.selinuxproject.org/trac/browser/libselinux/src http://userspace.selinuxproject.org/trac/browser/policycoreutils Are there any Cygwin tools or packages made, that I can use to get this functionality? I want to clarify that I am fresh out of the box on using SElinux and that I'm obviously NOT looking to use SELinux on Cygwin, but would like to use the various policy editing and generators, and the audit log file analyzers, on my local Cygwin machine. Thanks in advance. -- View this message in context: http://cygwin.1069669.n5.nabble.com/Are-there-any-SELinux-tools-available-for-Cygwin-tp108952.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Update CoreUtils
Steven Penny wrote: On Thu, May 29, 2014 at 7:04 PM, Chris J. Breisch wrote: Do you? https://cygwin.com/ml/cygwin/2014-05/msg00284.html From the same thread. Amazing that you missed that. You are out of your element, mate https://cygwin.com/ml/cygwin/2014-05/msg00298.html I think you should re-read the thread. -- Chris J. Breisch -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Building cpan module that links with proprietary libs
On 05/29/2014 10:36 PM, Andrew DeFaria wrote: On 5/29/2014 6:42 PM, Larry Hall (Cygwin) wrote: I had two archives two choose from. One was for Windows and contained the .lib files. The other was for Linux and contains .a files. I first tried the Linux one but that failed with: g++ -shared P4.o -o blib/arch/auto/P4/P4.dll lib/libp4.a \ /usr/lib/perl5/5.14/x86_64-cygwin-threads/CORE/cygperl5_14.dll -L/cygdrive/a/p4perlBuild/p4api/lib -lclient -lrpc -lsupp -lp4sslstub\ collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped Makefile:531: recipe for target 'blib/arch/auto/P4/P4.dll' failed make: *** [blib/arch/auto/P4/P4.dll] Error 1 Adefaria-lt: I can give you more output if you need it. No need. Forgive me for saying this but I find it hard to believe that after all this time on the list Andrew that you don't know that trying to use Linux-compiled libraries on Cygwin isn't going to work. But I guess my surprise is not that important here. ;-) When I first when to get this to work I choose the Linux style of the package for p4api. I figured the Windows style was for ActiveState only and that'd probably not work. Hell ActiveState doesn't even use cpan, they use ppm. I didn't look inside for anything like .o, .a or .dll or .lib. I figured that it would have been source code and it would have been compiled as part of the make process. It wasn't until it failed that I saw the reference to .a's, etc. and looked into the p4api directory structure to see .lib's in the Windows copy and .a's in the Linux copy. Sure at *that* point I knew the Linux style will never work in this situation. So I tried to link with the Windows style .lib copy. Ah, I see. A circuitous route leading to a dead-end which wasn't obvious at the start. Been there, done that. As aresult, you will never get code compiled with g++ to link with these libraries. There is no common ABI among C++ compilers. Thus, the libraries and headers of one can't be used as input to the compiler of another, even on the same platform. This only works for C code. So you have to either build the proprietary libs with Cygwin's C++ compiler or write your own "shim" library that wraps the necessary calls and objects in a C API, compile that with VS, and link your program against the APIs in your library. Being as this code is proprietary I doubt that Perforce will release it to me to compile but I will point them at this thread...' That's certainly easiest if you're willing to wait. Otherwise, you don't need their source code to build a C API that uses their library. You just need their DLLs and header files, which it sounds like you already have. Of course if I'm wrong about that, then you don't have an option AFAICS. -- Larry _ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
It's back -- "gcc: error: spawn: No such file or directory"
I just upgraded my gcc to 4.8.3 and tried a compilation, and got the error above. I see that there's been some previous discussion of this error, including whether gcc is started from /usr/bin or /bin; tried both, no difference. See below: $ echo $PATH /usr/local/bin: /usr/bin: /bin: /usr/X11R6/bin: /cygdrive/c/WINDOWS/system32: /cygdrive/c/WINDOWS: /cygdrive/c/WINDOWS/system32/wbem: /cygdrive/c/program files/intel/dmix: . . . Tried starting gcc with -v option; here's the tail end of the result: . . . GNU C (GCC) version 4.8.3 (i686-pc-cygwin) compiled by GNU C version 4.8.3, GMP version 6.0.0, MPFR version 3.1.2, MPC version 1.0.2 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: a39cfdacc7868ff2412ca54ce8f22425 COLLECT_GCC_OPTIONS='-v' '-o' 'Qualcomm_enc_dec.exe' '-mtune=generic' '-march=i686' as -v -o /cygdrive/c/DOCUME~1/friedman/LOCALS~1/Temp/cca1VHLo.o /cygdrive/c/DOCUME~1/friedman/LOCALS~1/Temp/ccuVhtdU.s gcc: error: spawn: No such file or directory And all I wanted to do was compile and run some C code. Any suggestions of workarounds? Thanks in advance for any useful ideas. David F. 2014 May 30 11:18 CDT -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Building cpan module that links with proprietary libs
On 05/30/2014 04:01 AM, Csaba Raduly wrote: On Fri, May 30, 2014 at 4:36 AM, Andrew DeFaria wrote: On 5/29/2014 6:42 PM, Larry Hall (Cygwin) wrote: As a result, you will never get code compiled with g++ to link with these libraries. There is no common ABI among C++ compilers. Thus, the libraries and headers of one can't be used as input to the compiler of another, even on the same platform. This only works for C code. So you have to either build the proprietary libs with Cygwin's C++ compiler or write your own "shim" library that wraps the necessary calls and objects in a C API, compile that with VS, and link your program against the APIs in your library. @Larry: Would this work? I think MSVC produces obj and lib files in COFF; can Cygwin's toolchain understand that? What I'm suggesting is not all that different than using Windows native platform or other libraries with Cygwin. So yes, what I'm suggesting will work and is the typical approach taken to use C++ libraries built by a different compiler. It's a pain but it works. In this case, you just have to wrap the class methods you want to use in C functions, declare then 'extern "C"', __cdecl, and __declspec(dllexport) (if you decide to make your "library" a DLL). Build that with VS and include the .lib at the end of your invocation of 'gcc'. Simple. :-) -- Larry _ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: It's back -- "gcc: error: spawn: No such file or directory"
On Fri, May 30, 2014 at 11:19:37AM -0500, David Friedman wrote: >I just upgraded my gcc to 4.8.3 and tried a compilation, and got the >error above. I see that there's been some previous discussion of this >error, including whether gcc is started from /usr/bin or /bin; tried >both, no difference. See below: > >$ echo $PATH >/usr/local/bin: >/usr/bin: >/bin: >/usr/X11R6/bin: >/cygdrive/c/WINDOWS/system32: >/cygdrive/c/WINDOWS: >/cygdrive/c/WINDOWS/system32/wbem: >/cygdrive/c/program files/intel/dmix: > . . . Try removing /bin from your path entirely. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: cygwin64 install g++ v 4.6.4
On 2014-05-29 03:58, David Stacey wrote: On 29/05/14 05:19, Philapol wrote: I would like to install g++ v 4.6.4 under cygwin64 but only v 4.8.2 is available. What is the procedure to install this older version? 64-bit Cygwin is relatively new, and the earliest version of gcc that was built for 64-bit was gcc-4.8.0 (IIRC). If you need an older version then you would have to build it yourself from source. Not likely; the requisite Win64 SEH support was only introduced in 4.8, so building an earlier version simply isn't going to work. But as others have pointed out, your time would be better spent maintaining the code so that it compiles with a more modern compiler. +1. Unless you can *prove* that there is a bug in GCC (which does occasionally happen, granted), then this is usually the answer to this sort of question. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Are there any SELinux tools available for Cygwin?
On 5/30/2014 03:05, PolarStorm wrote: I'm obviously NOT looking to use SELinux on Cygwin, but would like to use the various policy editing and generators, and the audit log file analyzers, on my local Cygwin machine. There is an excellent tool for managing SELinux on remote machines, and it is packaged for Cygwin. It is called ssh. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: empty pango.modules file
On 2014-05-28 18:10, Tatsuro MATSUOKA wrote: I have notices that font is ugly for cairo related terminal on gnuplot 4.6.3 and my own build gnuplot 5.0rc-1. This sounds like you don't have the right fonts installed. I found that pango.modules in C:\cygwin\etc\pango is empty. That is normal; all the engines are built into libpango itself. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: [ANNOUNCEMENT] Updated: perl-5.18.2-1 (x86) [test] Attn Maintainers with perl reqs
On 2014-05-29 13:27, Achim Gratz wrote: Reini Urban writes: I also found out that several vendor packages are now separated on x86_64, so I’ll have to split them also for 32bit. Lot more work todo for me, but apparently some guys just went ahead. My offer for help still stands. As does mine. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: Building cpan module that links with proprietary libs
On 5/30/2014 1:01 AM, Csaba Raduly wrote: On Fri, May 30, 2014 at 4:36 AM, Andrew DeFaria wrote: On 5/29/2014 6:42 PM, Larry Hall (Cygwin) wrote: As a result, you will never get code compiled with g++ to link with these libraries. There is no common ABI among C++ compilers. Thus, the libraries and headers of one can't be used as input to the compiler of another, even on the same platform. This only works for C code. So you have to either build the proprietary libs with Cygwin's C++ compiler or write your own "shim" library that wraps the necessary calls and objects in a C API, compile that with VS, and link your program against the APIs in your library. @Larry: Would this work? I think MSVC produces obj and lib files in COFF; can Cygwin's toolchain understand that? Being as this code is proprietary I doubt that Perforce will release it to me to compile but I will point them at this thread...' Maybe you can convince them to build a Cygwin version (not very likely). I am in contact with Perforce about this. They think it's a wonderful idea and they fully want me to let them know when I've managed to accomplish this! ;-) Needless to say, Cygwin, it's Perl and having a P4Perl available for it is not necessarily in Perforce's business model. Most people just use ActiveState. That said, with 5.18 I hear the backend moves to gcc and they need to address that issue. Once addressed having a Cygwin version may be easier for them to produce. I, unfortunately, do not have a lot of time to dedicate to this as my client wants me to work on others things. Using Cygwin's Perl is a convenience for me but not a necessity, though I would love to have this working. -- Andrew DeFaria http://defaria.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: It's back -- "gcc: error: spawn: No such file or directory"
On Fri, 30 May 2014 12:51:18 -0400, Christopher Faylor wrote: > Try removing /bin from your path entirely. > cgf -- Tried it: set my path to just /usr/bin, and it still happens. dhf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: It's back -- "gcc: error: spawn: No such file or directory"
David Friedman wrote: On Fri, 30 May 2014 12:51:18 -0400, Christopher Faylor wrote: Try removing /bin from your path entirely. cgf -- Tried it: set my path to just /usr/bin, and it still happens. dhf And you have tried "gcc -v"? Or even "gcc -v -Wl,--verbose", to see what it's attempting to do? -- Chris J. Breisch -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: [ANNOUNCEMENT] Updated: perl-5.18.2-1 (x86) [test] Attn Maintainers with perl reqs
On 30/05/14 20:57, Yaakov (Cygwin/X) wrote: On 2014-05-29 13:27, Achim Gratz wrote: Reini Urban writes: I also found out that several vendor packages are now separated on x86_64, so I’ll have to split them also for 32bit. Lot more work todo for me, but apparently some guys just went ahead. My offer for help still stands. As does mine. And if there's still too much to do, I'm happy to pitch in as well ;-) Dave. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
cygwin not setting errno on "Connection refused" errors
I just updated cygwin today, and I've noticed that errno is not being set when there's a connection refused error. This appears to be true for INET and UNIX domain sockets. For example: $ ssh -p 12345 localhost ssh: connect to host localhost port 12345: No error Notice how it reports "No error" instead of "Connection refused". I'm using version 1.7.30 of cygwin64. I don't remember what version I was at before I upgraded. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Re: empty pango.modules file
--- On Sat, 2014/5/31, Yaakov (Cygwin/X) wrote: > On 2014-05-28 18:10, Tatsuro MATSUOKA wrote: > > I have notices that font is ugly for cairo related terminal on gnuplot 4.6.3 > > and my own build gnuplot 5.0rc-1. > > This sounds like you don't have the right fonts installed. > > > I found that pango.modules in C:\cygwin\etc\pango is empty. > > That is normal; all the engines are built into libpango itself. Yaakov Thank you for your reply. > That is normal; all the engines are built into libpango itself. I will struggle for fontconfig setting. Tatsuro -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple