Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MakeFile Errors - Windows 10 #29

Open
SirSwish opened this issue Dec 1, 2017 · 0 comments
Open

MakeFile Errors - Windows 10 #29

SirSwish opened this issue Dec 1, 2017 · 0 comments

Comments

@SirSwish
Copy link

SirSwish commented Dec 1, 2017

Getting some errors when running MakeFile - Windows 10 x64
Been at this for like 2 hours... Any thoughts?

C:\Users\Test\Downloads\scalpel-master>mingw32-make -f Makefile.win
g++ -Wall -g -O2 -D__WIN32 -Isrc -Itre-0.7.5-win32/lib -Ipthreads-win32 -D__WIN32 -Isrc -Itre-0.7.5-win32/lib -Ipthreads-win32 -c src/helpers.cpp src/syncqueue.cpp src/files.cpp src/scalpel.cpp src/dig.cpp src/prioque.cpp src/base_name.cpp src/input_reader.cpp -liberty -L. -Ltre-0.7.5-win32/lib -L pthreads-win32 -lpthreadGC2 -ltre-4
src/helpers.cpp:531:17: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"ERROR: Couldn't skip %"PRIu64 " bytes at the start of input file %s\n",
^
src/helpers.cpp:546:29: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stderr, "\nSkipped the first %"PRIu64 " bytes of %s...\n",
^
In file included from src/scalpel.h:54:0,
from src/helpers.cpp:23:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/scalpel.h:47:0,
from src/helpers.cpp:23:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
In file included from src/syncqueue.h:29:0,
from src/syncqueue.cpp:31:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/pthread.h:218:0,
from src/syncqueue.h:29,
from src/syncqueue.cpp:31:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
In file included from src/scalpel.h:54:0,
from src/files.cpp:23:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/scalpel.h:47:0,
from src/files.cpp:23:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
In file included from src/scalpel.h:54:0,
from src/scalpel.cpp:23:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/scalpel.h:47:0,
from src/scalpel.cpp:23:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
src/dig.cpp:381:35: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(state->auditFile, "\nSkipped the first %"PRIu64 "bytes of %s...\n",
^
src/dig.cpp:384:29: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "\nSkipped the first %"PRIu64 "bytes of %s...\n",
^
src/dig.cpp:621:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "A %s header was found at : %"PRIu64 "\n",
^
src/dig.cpp:650:29: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"Memory reallocation performed, total header storage = %"PRIu64 "\n",
^
src/dig.cpp:759:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "A %s footer was found at : %"PRIu64 "\n",
^
src/dig.cpp:787:29: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"Memory reallocation performed, total footer storage = %"PRIu64 "\n",
^
src/dig.cpp:994:33: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "Read %"PRIu64 " bytes from image file.\n", bytesread);
^
src/dig.cpp:1109:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "Total file size is %"PRIu64 " bytes\n", filesize);
^
src/dig.cpp:1540:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "" --> %"PRIu64 " files\n", currentneedle->numfilestocarve);
^
src/dig.cpp:1918:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "# of blocks in coverage blockmap is %"PRIu64 ".\n",
^
src/dig.cpp:1973:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "# of blocks in coverage blockmap is %"PRIu64 ".\n",
^
src/dig.cpp:2377:17: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"Coverage map decreased current file position by %"PRIu64 " bytes.\n",
^
src/dig.cpp:2402:17: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"Issuing coverage map-based READ, wants %"PRIu64 " bytes.\n",
^
src/dig.cpp:2428:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"fread using coverage map to skip %"PRIu64 " bytes.\n", bytestoskip);
^
src/dig.cpp:2453:25: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"fread using coverage map found %"PRIu64 " consecutive bytes.\n",
^
src/dig.cpp:2468:37: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf(stdout, "fread using coverage map read %"PRIu64 " bytes.\n",
^
src/dig.cpp:2882:32: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
if(fprintf(dbfile, "%"PRIu64 "\n", currentneedle->offsets.numheaders)
^
src/dig.cpp:2896:30: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
(dbfile, "%"PRIu64 "\n",
^
src/dig.cpp:2916:32: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
if(fprintf(dbfile, "%"PRIu64 "\n", currentneedle->offsets.numfooters)
^
src/dig.cpp:2928:30: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
(dbfile, "%"PRIu64 "\n",
^
In file included from src/scalpel.h:54:0,
from src/dig.cpp:24:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/scalpel.h:47:0,
from src/dig.cpp:24:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
In file included from src/prioque.h:47:0,
from src/prioque.cpp:40:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/pthread.h:218:0,
from src/prioque.h:47,
from src/prioque.cpp:40:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
In file included from src/scalpel.h:54:0,
from src/input_reader.cpp:24:
src/pthread.h:307:8: error: redefinition of 'struct timespec'
struct timespec {
^~~~~~~~
In file included from src/scalpel.h:47:0,
from src/input_reader.cpp:24:
c:\mingw\include\time.h:115:8: error: previous definition of 'struct timespec'
struct timespec
^~~~~~~~
Makefile.win:50: recipe for target 'libwin32_static' failed
mingw32-make: *** [libwin32_static] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant