From: Vasiljevic Z. <zv...@ar...> - 2007-10-03 09:49:55
|
I have trouble compiling this on Sun Solaris: bash-2.03$ grep PRIxPTR nsthread/* nsthread/nsthreadtest.c: printf("pthread[%" PRIxPTR "]: log: %" PRIdPTR"\n", (uintptr_t) pthread_self(), i); nsthread/nsthreadtest.c: printf("pthread: create %" PRIdPTR " = %" PRIxPTR "\n", i, (uintptr_t) tids[i]); nsthread/thread.c: snprintf(name, sizeof(name), "-thread:%" PRIxPTR "-", thrPtr->tid); nsthread/thread.c: snprintf(buf, sizeof(buf), " %" PRIxPTR " %d % jd", What is PRIxPTR and where is this defined? Cheers Zoran |
From: Vasiljevic Z. <zv...@ar...> - 2007-10-03 09:56:36
|
On 03.10.2007, at 11:48, Vasiljevic Zoran wrote: > What is PRIxPTR and where is this defined? Damn... this is NOT available on all platforms and most definitely not on Solaris 2.8! Normally this should be part of "inttypes.h". Furthermore "stdint.h" is also not available on Solaris... what a mess. |
From: Vasiljevic Z. <zv...@ar...> - 2007-10-03 10:24:10
|
On 03.10.2007, at 11:55, Vasiljevic Zoran wrote: > > Normally this should be part of "inttypes.h". > Furthermore "stdint.h" is also not available > on Solaris... what a mess. I'm now informed... The XyZ constructs are normally integer formats that are defined to handle 32/64 bit situations in fprintf-like statements. This is not found in "older" operating systems, like Solaris 2.8. Unfortunately, we still support that and we need to have a solution for it. I will have to include some configure-time fiddling that would define those if the OS doesn't. This affects really only Solaris 2.8. I do not know how it affects Windows but we will learn that pretty soon... The "stdint.h" seems like it's not something standard as it does not appear on all plafroms (Solaris does not have that at all). The funny thing is: if I remove it from the nsthread.h (where it is included) all code compiles correctly. I guess nobody really needs that explicitly. If some platform needs it, it may be that the file is auto-included.... I will hence remove that include from nsthread.h, so I have no problems on Solaris. If there are objections to that, we must discuss it and find workarrunds. For the time being I will just do as said above. Cheers Zoran |
From: Stephen D. <sd...@gm...> - 2007-10-03 14:18:35
|
On 10/3/07, Vasiljevic Zoran <zv...@ar...> wrote: > The XyZ constructs are normally integer formats > that are defined to handle 32/64 bit situations > in fprintf-like statements. This is not found > in "older" operating systems, like Solaris 2.8. Ugh. > I do not know how it affects Windows but we will > learn that pretty soon... That will be fun. I don't think any one has compiled on windows for a long time -- I haven't seen any changes to the windows specific make files since new .c files have been added. What are you compiling with on Windows? If you can make it work with mingw, that would be great. (mingw supplies it's own header files, including definitions of PRIxPTR...) We really need to nail down what platforms we support. For example, we need at least a very specific version of OSX because of poll(). We only support Linux with NPTL threads. Solaris >= 8? FreeBSD? Windows, compiler? |
From: Vasiljevic Z. <zv...@ar...> - 2007-10-03 14:30:00
|
On 03.10.2007, at 16:18, Stephen Deasey wrote: > On 10/3/07, Vasiljevic Zoran <zv...@ar...> wrote: > >> The XyZ constructs are normally integer formats >> that are defined to handle 32/64 bit situations >> in fprintf-like statements. This is not found >> in "older" operating systems, like Solaris 2.8. > > > Ugh. > > >> I do not know how it affects Windows but we will >> learn that pretty soon... > > > That will be fun. I don't think any one has compiled on windows for a > long time -- I haven't seen any changes to the windows specific make > files since new .c files have been added. > > What are you compiling with on Windows? If you can make it work with > mingw, that would be great. (mingw supplies it's own header files, > including definitions of PRIxPTR...) > As we cannot afford too much instalbility, we are tying not to follow the cvs head that eagerly... IOW, we are still hanging about a year in our production release. But in about 2 months we have a major release and we normally take the X.0 version to be very unstalble and people know that. So we are now heading towards the all-platform build... and new things pop out... > > > We really need to nail down what platforms we support. For example, we > need at least a very specific version of OSX because of poll(). We > only support Linux with NPTL threads. Solaris >= 8? FreeBSD? > Windows, compiler? At the moment we (by that I mean my company) MUST support: Solaris 2.8+ on sparc and 2.10+ on x88 Linux Suse 8.1+ (this is about 2-3 years old) Mac OSX 10.3.8+ Windows 2000/xp/vista On all Unices we stick to GDB and on Windows to Visual C++ We do not MINGW on Windows. I'm trying to get my collegue who is taking care about Windows here to get more involved with NS but this is a constat word-in-progress as he's also doing support so his spare time is rare. We could really benefit from somebody out-there that would handle Windows port... I mean we can do that here, but with a substantial delay... Cheers Zoran > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel |