pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Compiling with gcc-4.7 (Re: Can't build cairo on HEAD
Hi,
I have some reason to use gcc-4.7.
So I've setup for NetBSD/amd64 6.1_RC2 with gcc-4.7 compiler.
With this environment, I got the same error on cairo-1.12.14nb1.
+------------------
| => Bootstrap dependency digest>=20010302: found digest-20121220
| ===> Skipping vulnerability checks.
| WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
| WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg
fetch-pkg-vulnerabilities'.
| ===> Building for cairo-1.12.14nb1
| /usr/bin/make all-recursive
| Making all in src
| /usr/bin/make all-am
| CC cairo-analysis-surface.lo
| In file included from /usr/include/string.h:114:0,
| from cairoint.h:59,
| from cairo-analysis-surface.c:37:
| /usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/string.h:38:17:
| fatal error: ssp.h: No such file or directory
| compilation terminated.
| *** Error code 1
+------------------------
And I have work around for this point as attached below. With
these work around, I get another problem as:
+------------------------
| .libs/cairo-arc.o: In function `gets':
| cairo-arc.c:(.text+0x6c0): multiple definition of `gets'
| .libs/cairo-analysis-surface.o:cairo-analysis-surface.c:(.text+0x350): first
defined here
| .libs/cairo-arc.o: In function `fgets':
| cairo-arc.c:(.text+0x6d0): multiple definition of `fgets'
| .libs/cairo-analysis-surface.o:cairo-analysis-surface.c:(.text+0x360): first
defined here
+------------------------
I don't think this can be resolution anyway, but just FYI:
--- usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/string.h.orig
2013-05-06 10:59:43.000000000 +0900
+++ usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/string.h
2013-05-06 16:54:44.000000000 +0900
@@ -35,7 +35,7 @@ see the files COPYING3 and COPYING.RUNTI
#ifndef _SSP_STRING_H
#define _SSP_STRING_H 1
-#include <ssp.h>
+#include <ssp/ssp.h>
#include_next <string.h>
#if __SSP_FORTIFY_LEVEL > 0
--- usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/stdio.h.orig
2013-05-06 16:59:35.000000000 +0900
+++ usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/stdio.h
2013-05-06 17:00:03.000000000 +0900
@@ -35,7 +35,7 @@ see the files COPYING3 and COPYING.RUNTI
#ifndef _SSP_STDIO_H
#define _SSP_STDIO_H 1
-#include <ssp.h>
+#include <ssp/ssp.h>
#include_next <stdio.h>
#if __SSP_FORTIFY_LEVEL > 0
--- usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/unistd.h.orig
2013-05-06 10:59:43.000000000 +0900
+++ usr/pkg_bulk/gcc47/lib/gcc/x86_64--netbsd/4.7.3/include/ssp/unistd.h
2013-05-06 17:10:26.000000000 +0900
@@ -35,7 +35,7 @@ see the files COPYING3 and COPYING.RUNTI
#ifndef _SSP_UNISTD_H
#define _SSP_UNISTD_H 1
-#include <ssp.h>
+#include <ssp/ssp.h>
#include_next <unistd.h>
#if __SSP_FORTIFY_LEVEL > 0
---
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.
Home |
Main Index |
Thread Index |
Old Index