Chinaunix首页 | 论坛 | 博客
  • 博客访问: 650731
  • 博文数量: 90
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 2018
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-03 13:09
文章分类

全部博文(90)

文章存档

2010年(7)

2009年(23)

2008年(60)

我的朋友

分类: LINUX

2010-06-21 19:00:38

error: 'uint32_t' does not name a type




From 4895d7b0fb1b55c157be38ffb60e0fdfe8dc0642 Mon Sep 17 00:00:00 2001
From: Lynn Lin <Lin_Lynn@emc.com>
Date: Mon, 21 Jun 2010 18:25:51 +0800
Subject: [PATCH] fix gcc-4.4 compile error

---
 recipes/apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch | 39 ++++++++++++++++++++
 recipes/apt/apt-native_0.7.20.2.bb | 5 ++-
 2 files changed, 42 insertions(+), 2 deletions(-)
 create mode 100644 recipes/apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch

diff --git a/recipes/apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch b/recipes/apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch
new file mode 100644
index 0000000..eb4d5e4
--- /dev/null
+++ b/recipes/apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch
@@ -0,0 +1,39 @@
+diff -rc apt-0.7.20.2.orig/apt-pkg/acquire.cc apt-0.7.20.2/apt-pkg/acquire.cc
+*** apt-0.7.20.2.orig/apt-pkg/acquire.cc    2010-06-21 18:14:15.815760996 +0800
+--- apt-0.7.20.2/apt-pkg/acquire.cc    2010-06-21 18:15:30.865760994 +0800
+***************
+*** 24,29 ****
+--- 24,30 ----
+
+ #include <iostream>
+ #include <sstream>
++ #include <cstdio>
+
+ #include <dirent.h>
+ #include <sys/time.h>
+diff -rc apt-0.7.20.2.orig/apt-pkg/contrib/sha256.h apt-0.7.20.2/apt-pkg/contrib/sha256.h
+*** apt-0.7.20.2.orig/apt-pkg/contrib/sha256.h    2010-06-21 18:14:15.815760996 +0800
+--- apt-0.7.20.2/apt-pkg/contrib/sha256.h    2010-06-21 18:14:59.565760993 +0800
+***************
+*** 17,22 ****
+--- 17,23 ----
+ #include <string>
+ #include <cstring>
+ #include <algorithm>
++ #include <stdint.h>
+
+ using std::string;
+ using std::min;
+diff -rc apt-0.7.20.2.orig/apt-pkg/deb/dpkgpm.cc apt-0.7.20.2/apt-pkg/deb/dpkgpm.cc
+*** apt-0.7.20.2.orig/apt-pkg/deb/dpkgpm.cc    2010-06-21 18:14:15.815760996 +0800
+--- apt-0.7.20.2/apt-pkg/deb/dpkgpm.cc    2010-06-21 18:16:12.045760992 +0800
+***************
+*** 22,27 ****
+--- 22,28 ----
+ #include <sys/select.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++ #include <sys/stat.h>
+ #include <signal.h>
+ #include <errno.h>
+ #include <stdio.h>
diff --git a/recipes/apt/apt-native_0.7.20.2.bb b/recipes/apt/apt-native_0.7.20.2.bb
index a6d5277..fb7a9a5 100644
--- a/recipes/apt/apt-native_0.7.20.2.bb
+++ b/recipes/apt/apt-native_0.7.20.2.bb
@@ -1,9 +1,10 @@
 require apt-native.inc
-PR = "r1"
+PR = "r2"
 
 SRC_URI += "file://nodoc.patch \
             file://noconfigure.patch \
-     file://no-curl.patch"

+     file://no-curl.patch \

+     file://fix-gcc-4.4-compile.patch"

 
 SRC_URI[md5sum] = "e6ee1b594f6ed5fab5cb593ee46cfc21"
 SRC_URI[sha256sum] = "4dc935a520c65705795ada5942b658f6e86b22eefc7032342267272bd6566b05"
--
1.7.1


阅读(1369) | 评论(0) | 转发(0) |
0

上一篇:夭折的patch

下一篇:csdn博客

给主人留下些什么吧!~~