Error: ' uint32_t ' does not name a type with GCC 4.4 compile

Source: Internet
Author: User
Tags curl diff

Since the GCC 4.4 compiler has done some cleanup on C + + Includer, we must display some header files, and apt-native in openembedded cannot be compiled under GCC 4.4. I submitted a patch to fix, commit link:http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id= 709663f88c8b03a14c51b5135bea373fc80efb87

Author Lynn Lin <Lin_Lynn@emc.com> 2010-06-21 10:25:51 (GMT) committer Lynn Lin <Lin_Lynn@emc.com> 2010-06-23 11:14:01 (GMT) commit 709663f88c8b03a14c51b5135bea373fc80efb87 (patch) Tree 81f0b58279f90a5437fc5789bec0f4b0bd451db0 Parent 4d20a9779111f4dc2634511114d6b245a6601eb9 (diff) Apt-native:fix gcc-4.4 compile error diffstat-rw-r--r--recipes /apt/apt-0.7.20.2/fix-gcc-4.4-compile.patch 39-rw-r--r--recipes/apt/apt-native_0.7.20.2.bb 5 2 files changed, 42 Insertions, 2 deletions 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---a/dev/null +++ b/recipes/apt/apt-0.7.20.2/ Fix-gcc-4.4-compile.patch @@ -0,0 +1,39 @@ -0,0 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> + #includ E <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> + + usin G 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 <s Ys/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 " 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.