[ccache] fcntl - windows build broken

2013-01-08 Thread Patrick von Reth
Hi
http://gitweb.samba.org/?p=ccache.git;a=commitdiff
;h=6b6a109779033ffbb8ddab7cca6574f24c2e4bfb
broke the windows build because the FD_ flags are not available on windows,
see https://groups.google.com/forum/?fromgroups
=#!topic/beanstalk-talk/Re9AZ8GbtuA

Cheers

Patrick
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] [PATCH] added-option-to-use-bundled-zlib

2012-08-02 Thread Patrick von Reth
Added option to make it possible to build ccache with the included zlib.
Its use full for windows so it makes it possible to provide a fully
independent ccache build.

Cheers

Patrick


0002-added-option-to-use-bundled-zlib.patch
Description: Binary data
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] [PATCH] make git revision detection code work if building outside of src dir

2012-08-02 Thread Patrick von Reth
This fixes git description if building outside of src.


0001-make-git-version-macro-work-if-compiled-outside-of-s.patch
Description: Binary data
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] Implemented x_realpath on windows and make master compile on windows again.

2012-07-31 Thread Patrick von Reth
diff --git a/util.c b/util.c
index 70d72ae..762aa43 100644
--- a/util.c
+++ b/util.c
@@ -955,7 +955,7 @@ x_realpath(const char *path)
 HANDLE pathHandle = CreateFile(path, GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
 GetFinalPathNameByHandle(pathHandle, ret, maxlen,
FILE_NAME_NORMALIZED);
 CloseHandle(pathHandle);
-p = x_strdup(ret+4);// strip the \\?\ from the file name
+p = ret+4;// strip the \\?\ from the file name
 #else
/* yes, there are such systems. This replacement relies on
   the fact that when we call x_realpath we only care about
symlinks */


would probably be better

On 31 July 2012 15:00, Patrick von Reth  wrote:

> This will also increase the required mingw version.
> I have build it with mingw-w64 crt and headers version 3b but 2.0 should
> be enough.
>
>
> On 31 July 2012 14:58, Patrick von Reth  wrote:
>
>> Hi
>>
>> I implemented x_realpath on windows to make the curent version compile on
>> windows again.
>> But with the patch you will nead atleast Windows Wista, it won't work on
>> windows XP anymore.
>> Thats also the reason why you need to put
>> "
>> #define _WIN32_WINNT 0x0600
>> "
>> In the config.h
>>
>> I tried to add
>> "
>>
>>
>> AC_CANONICAL_HOST
>>
>> case $host in
>>   *mingw32* | *cygwin* | *wince* | *mingwce*)
>> AC_DEFINE(_WIN32_WINNT,0x0600,
>>   We require at least Windows Vista)
>> esac
>>
>> "
>>
>>  to the configure.ac but always got configure: error: cannot run /bin/sh 
>> /q/ccache-src/config.sub maybe you can find a better way.
>>
>>
>> Cheers
>>
>>
>> Patrick
>>
>>
>
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] Implemented x_realpath on windows and make master compile on windows again.

2012-07-31 Thread Patrick von Reth
This will also increase the required mingw version.
I have build it with mingw-w64 crt and headers version 3b but 2.0 should be
enough.

On 31 July 2012 14:58, Patrick von Reth  wrote:

> Hi
>
> I implemented x_realpath on windows to make the curent version compile on
> windows again.
> But with the patch you will nead atleast Windows Wista, it won't work on
> windows XP anymore.
> Thats also the reason why you need to put
> "
> #define _WIN32_WINNT 0x0600
> "
> In the config.h
>
> I tried to add
> "
>
>
> AC_CANONICAL_HOST
>
> case $host in
>   *mingw32* | *cygwin* | *wince* | *mingwce*)
> AC_DEFINE(_WIN32_WINNT,0x0600,
>   We require at least Windows Vista)
> esac
>
> "
>
>  to the configure.ac but always got configure: error: cannot run /bin/sh 
> /q/ccache-src/config.sub maybe you can find a better way.
>
>
> Cheers
>
>
> Patrick
>
>
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


[ccache] Implemented x_realpath on windows and make master compile on windows again.

2012-07-31 Thread Patrick von Reth
Hi

I implemented x_realpath on windows to make the curent version compile on
windows again.
But with the patch you will nead atleast Windows Wista, it won't work on
windows XP anymore.
Thats also the reason why you need to put
"
#define _WIN32_WINNT 0x0600
"
In the config.h

I tried to add
"


AC_CANONICAL_HOST

case $host in
  *mingw32* | *cygwin* | *wince* | *mingwce*)
AC_DEFINE(_WIN32_WINNT,0x0600,
  We require at least Windows Vista)
esac

"

 to the configure.ac but always got configure: error: cannot run
/bin/sh /q/ccache-src/config.sub maybe you can find a better way.


Cheers


Patrick


0001-implemented-x_realpath-for-windows.patch
Description: Binary data
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] ccache compilation under MinGW/MSys lots of undefined reference to `cc_log` messages

2011-08-16 Thread Patrick von Reth
Thanks Jonathan

RevĀ 206b0c182b8fbe1e115039507c4356ee1316a7fa works great but master is
broken again(same error)

And it would be real cool if you could add a flag like --with-included-zlib.

Greetings

Patrick

On 15 August 2011 13:50, Jonathan Martens  wrote:
>
> On 14-8-2011 19:53, Joel Rosdahl wrote:
>>
>> Thanks! I did the fix by fixing the ifdefs instead of moving the code to
>> match the ifdefs; hope that's OK.
>
> That's OK by me, it fixes compilation, however the -fprofile related merge 
> following this commit brakes compilation again.
>
> Kind regards,
>
> Jonathan
> ___
> ccache mailing list
> ccache@lists.samba.org
> https://lists.samba.org/mailman/listinfo/ccache
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] ccache compilation under MinGW/MSys lots of undefined reference to `cc_log` messages

2011-08-08 Thread Patrick von Reth
The problem is that the internal zlib works great but if it finds a zlib
build on your system it links against it and so I would need to ship zlib
to.
But on Windows one  static x86 build of ccache can be used on every system
:)

Patrick

On 8 August 2011 21:29, Jonathan Martens  wrote:

> On 8-8-2011 18:30, Patrick von Reth wrote:
>
>> You rock its great.
>> If now a flag for not linking against a dynamic zlib would be added I
>> even could provide binary builds.
>>
>
> What is the issue with that? Why do you need that? I can compile fine using
> the included zlib library.
>
>
> Kind regards,
>
> Jonathan
> __**_
> ccache mailing list
> ccache@lists.samba.org
> https://lists.samba.org/**mailman/listinfo/ccache<https://lists.samba.org/mailman/listinfo/ccache>
>
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] ccache compilation under MinGW/MSys lots of undefined reference to `cc_log` messages

2011-08-08 Thread Patrick von Reth
You rock its great.
If now a flag for not linking against a dynamic zlib would be added I even
could provide binary builds.

Cheers

Patrick

On 8 August 2011 17:36, Jonathan Martens  wrote:

> On 5-8-2011 11:14, Patrick von Reth wrote:
>
>> I have build b453d43ac0dc7097bb8afb74db70cc**f5cde3a914, git head isn't
>> working since a while.
>>
>
> I have figured it out, it was due to some reordering in util.c done in
> March this year. I have fixed this in my repository in the win32 branch (
> https://github.com/jmartens/**ccache/commits/win32<https://github.com/jmartens/ccache/commits/win32>
> ).
>
> Here is the pull request to have it merged into the official repository:
>
> https://github.com/jrosdahl/**ccache/pull/3<https://github.com/jrosdahl/ccache/pull/3>
>
>
> Kind regards,
>
> Jonathan
> __**_
> ccache mailing list
> ccache@lists.samba.org
> https://lists.samba.org/**mailman/listinfo/ccache<https://lists.samba.org/mailman/listinfo/ccache>
>
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache


Re: [ccache] ccache compilation under MinGW/MSys lots of undefined reference to `cc_log` messages

2011-08-05 Thread Patrick von Reth
I have build b453d43ac0dc7097bb8afb74db70ccf5cde3a914, git head isn't
working since a while.

Here is a log
http://paste.kde.org/~windows/106729/

And btw is there a flag to disable dynamic linking against zlib?

Greetings

Patrick

On 3 August 2011 15:39, Jonathan Martens  wrote:

> Today I tried to compile ccache under MinGW/MSys as I would like to use it
> on a Windows machine.
>
> I am using gcc 4.5.2 under MinGW/MSys:
>
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=D:\MinGW\bin\gcc.**exe
> COLLECT_LTO_WRAPPER=d:/mingw/**bin/../libexec/gcc/mingw32/4.**
> 5.2/lto-wrapper.exe
> Target: mingw32
> Configured with: ../gcc-4.5.2/configure --enable-languages=c,c++,ada,**
> fortran,obj
> c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared
> --enable-libgo
> mp --disable-win32-registry --enable-libstdcxx-debug
> --enable-version-specific-r
> untime-libs --disable-werror --build=mingw32 --prefix=/mingw
> Thread model: win32
> gcc version 4.5.2 (GCC)
>
> I have found that funcions that are defined in ccache.h are actually not
> all in ccache.c, cc_log is in util.c
>
> Could the error be related to that?
>
> Kind regards,
>
> Jonathan
> __**_
> ccache mailing list
> ccache@lists.samba.org
> https://lists.samba.org/**mailman/listinfo/ccache
>
___
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache