You are not logged in.
This is a patch from the AUR entry for openwbem. http://aur.archlinux.org/packages.php?ID=9739
I don't know how to apply it without error.
--- openwbem-3.2.2/src/common/OW_TempFileStream.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_TempFileStream.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_String.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_String.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_StringBuffer.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_StringBuffer.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_IstreamBufIterator.hpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_IstreamBufIterator.hpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_DataStreams.hpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_DataStreams.hpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_BaseStreamBuffer.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_BaseStreamBuffer.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <cstdio>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_StringStream.hpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_StringStream.hpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,6 @@
+#include <cstdio>
+#include <stdio.h>
+#include <stdlib.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/cim/OW_CIMDateTime.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/cim/OW_CIMDateTime.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_LogMessagePatternFormatter.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_LogMessagePatternFormatter.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <limits.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/mof/OW_MOFCompiler.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/mof/OW_MOFCompiler.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,4 @@
+#include <limits.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/common/OW_PosixFile.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/common/OW_PosixFile.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/repositories/hdb/OW_AssocDb.hpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/repositories/hdb/OW_AssocDb.hpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/providerifcs/npi/OW_FTABLERef.hpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/providerifcs/npi/OW_FTABLERef.hpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/src/providerifcs/cmpi/common/cmpiBrokerEnc.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/providerifcs/cmpi/common/cmpiBrokerEnc.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*
*
* cmpiBrokerEnc.cpp
--- openwbem-3.2.2/src/providerifcs/cmpi/common/cmpiInstance.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/providerifcs/cmpi/common/cmpiInstance.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*
*
* cmpiInstance.cpp
--- openwbem-3.2.2/src/cimom/server/OW_PlatformSignal.cpp 2009-06-27 12:07:07.266960644 +0200
+++ openwbem-3.2.2/src/cimom/server/OW_PlatformSignal.cpp 2009-06-27 12:07:36.020235534 +0200
@@ -1,3 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <cstdio>
+#include <cstring>
+#include <string.h>
/*******************************************************************************
* Copyright (C) 2001-2004 Vintela, Inc. All rights reserved.
*
--- openwbem-3.2.2/configure 2006-10-20 01:08:04.000000000 +0200
+++ openwbem-3.2.2/configure 2009-06-27 13:00:22.272285434 +0200
@@ -6711,7 +6711,6 @@
ostream.h \
istream \
istream.h \
-hash_map \
ext/hash_map \
cxxabi.h \Offline
Firstly, what errors are you getting? What have you tried so far?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
There's also man patch, and any number of relevant google results.
Offline
I have tried patch -p1 < openwbem.patch
a number of results like
**** malformed patch at line 7: @@ -1,3 +1,4 @@I had a bit of a read and used Google to get as far as I did.
I haven't done much patching. I thought I might have been using the wrong tools or something.
I moved on using vim and a couple of macros.
There are a few other problems with the build as well.
When that was finally finished heartbeat wouldn't build anyway.
I decided to try a build of SUSE studio with all of the packages in it.
That way I can use the xCat SUSE binary as well.
THanks
Offline
Hello thisllub!
Is the folder establishing similar by you like in the patch ?
Offline
Is the folder establishing similar by you like in the patch ?
The error does not point at a wrong path or anything like that - at all
.
There is an option for patch to ignore spaces (consult the manual, I don't know it by heart). Try if that fixes it, the spaces can be pesky sometimes.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
I am not sure, but i believe, gcc 4.4.1 introduces some more problems of that kind. I am currently trying to make another patch for this.
edit: look into AUR.
Last edited by Stefan Husmann (2009-08-15 18:22:09)
Offline
Thanks.
I would like to get it working with Arch.
I managed to build DRBD the hard way but heartbeat gave me errors I currently don't have the time / patience to investigate.
I will revisit it with pacemaker soon and see if that works.
Offline