You are not logged in.

#1 2009-08-12 02:49:35

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Can somebody help me with this patch please.

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

#2 2009-08-12 05:35:22

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: Can somebody help me with this patch please.

Firstly, what errors are you getting? What have you tried so far?

Offline

#3 2009-08-12 06:39:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Can somebody help me with this patch please.

There's also man patch, and any number of relevant google results.

Offline

#4 2009-08-12 21:59:14

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Can somebody help me with this patch please.

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

#5 2009-08-15 11:39:11

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Can somebody help me with this patch please.

Hello thisllub!

Is the folder establishing similar by you like in the patch ?

Offline

#6 2009-08-15 12:06:31

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Can somebody help me with this patch please.

djszapi wrote:

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 wink.

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

#7 2009-08-15 17:36:32

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Can somebody help me with this patch please.

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

#8 2009-08-17 21:57:03

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Can somebody help me with this patch please.

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

Board footer

Powered by FluxBB