[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/23594] New: error: 'mkdtemp' was not declared in this scope
From: |
h0tc0d3 at gmail dot com |
Subject: |
[Bug gold/23594] New: error: 'mkdtemp' was not declared in this scope |
Date: |
Thu, 30 Aug 2018 04:02:07 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23594
Bug ID: 23594
Summary: error: 'mkdtemp' was not declared in this scope
Product: binutils
Version: 2.31
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: h0tc0d3 at gmail dot com
CC: ian at airs dot com
Target Milestone: ---
Hi. I try to compile under Mingw-w64 and have error.
make[5]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold/testsuite'
make[4]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold/testsuite'
make[4]: Entering directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold'
i686-w64-mingw32-g++ -DHAVE_CONFIG_H -I. -I../../../src/binutils-2.31.1/gold
-I../../../src/binutils-2.31.1/gold
-I../../../src/binutils-2.31.1/gold/../include
-I../../../src/binutils-2.31.1/gold/../elfcpp
-DLOCALEDIR="\"/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-binutils-multi/share/locale\""
-DBINDIR="\"/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-binutils-multi/bin\""
-DTOOLBINDIR="\"/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-binutils-multi/i686-w64-mingw32/bin\""
-DTOOLLIBDIR="\"/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-binutils-multi/i686-w64-mingw32/lib\""
-W -Wall -Wstack-usage=262144 -Wno-format -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -frandom-seed=plugin.o
-I../../../src/binutils-2.31.1/gold/../zlib -pthread -O2 -pipe -fno-ident
-I/home/nullik/mingw-gcc-8.2.0/i686-820-posix-sjlj-rt_v5/mingw32/opt/include
-I/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-zlib-static/include
-I/home/nullik/mingw-gcc-8.2.0/prerequisites/i686-w64-mingw32-static/include
-MT plugin.o -MD -MP -MF .deps/plugin.Tpo -c -o plugin.o
../../../src/binutils-2.31.1/gold/plugin.cc
../../../src/binutils-2.31.1/gold/plugin.cc: In member function 'bool
gold::Plugin_recorder::init()':
../../../src/binutils-2.31.1/gold/plugin.cc:511:7: error: 'mkdtemp' was not
declared in this scope
if (mkdtemp(dir_template) == NULL)
^~~~~~~
../../../src/binutils-2.31.1/gold/plugin.cc:511:7: note: suggested alternative:
'mktemp'
if (mkdtemp(dir_template) == NULL)
^~~~~~~
mktemp
../../../src/binutils-2.31.1/gold/plugin.cc: In function 'bool
gold::link_or_copy_file(const char*, const char*)':
../../../src/binutils-2.31.1/gold/plugin.cc:565:9: error: '::link' has not been
declared
if (::link(inname, outname) == 0)
^~~~
../../../src/binutils-2.31.1/gold/plugin.cc:565:9: note: suggested alternative:
'bind'
if (::link(inname, outname) == 0)
^~~~
bind
make[4]: *** [Makefile:1123: plugin.o] Error 1
make[4]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold'
make[3]: *** [Makefile:1146: all-recursive] Error 1
make[3]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold'
make[2]: *** [Makefile:886: all] Error 2
make[2]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi/gold'
make[1]: *** [Makefile:6052: all-gold] Error 2
make[1]: Leaving directory
'/home/nullik/mingw-gcc-8.2.0/prerequisites-build/i686-binutils-2.31.1-multi'
make: *** [Makefile:857: all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gold/23594] New: error: 'mkdtemp' was not declared in this scope,
h0tc0d3 at gmail dot com <=