nscaife / file-windows

File and libmagic for Windows
102 stars 21 forks source link

It's not working #5

Closed mattsmacs closed 5 years ago

mattsmacs commented 5 years ago

As you can see below it only creates the libgnurx-0.dll and not the others.

x86_64-w64-mingw32-gcc -mthreads -shared -o libgnurx-0.dll -Wl,--enable-auto-image-base -Wl,--out-implib,libgnurx.dll.a -Wl,--output-def,libgnurx.def regex.o cp -p libgnurx.dll.a libregex.a ./build.sh: line 11: autoreconf: command not found ./build.sh: line 12: ./configure: No such file or directory make: No targets specified and no makefile found. Stop. cp: cannot stat 'magic/magic.mgc': No such file or directory make: No rule to make target 'clean'. Stop. ./build.sh: line 16: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. cp: cannot stat 'src/.libs/libmagic-1.dll': No such file or directory cp: cannot stat 'src/.libs/file.exe': No such file or directory mattsmacs@Pentest1:~/file-windows$ cd dist mattsmacs@Pentest1:~/file-windows/dist$ ls COPYING.file COPYING.libgnurx libgnurx-0.dll

mattsmacs commented 5 years ago

Btw this was done using an Ubuntu bash shell on a Windows 10 machine

nscaife commented 5 years ago

./build.sh: line 11: autoreconf: command not found

Did you install the prerequisites from the readme?

mattsmacs commented 5 years ago

Yes

mattsmacs commented 5 years ago

I just ran through everything again and same result

mattsmacs commented 5 years ago

Here's the full output from build x86_64-w64-mingw32-gcc -mthreads -I . -c -o regex.o regex.c In file included from regex.c:61:0: regex_internal.h:424:0: warning: "alloca" redefined

define alloca(size) __builtin_alloca (size)

In file included from /usr/share/mingw-w64/include/stdlib.h:695:0, from regex_internal.h:27, from regex.c:61: /usr/share/mingw-w64/include/malloc.h:183:0: note: this is the location of the previous definition

define alloca(x) __builtin_alloca((x))

In file included from regex.c:64:0: regcomp.c: In function ‘parse_dup_op’: regcomp.c:2513:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] postorder (elem, mark_opt_subexp, (void *) (long) elem->token.opr.idx); ^ regcomp.c: In function ‘mark_opt_subexp’: regcomp.c:3725:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] int idx = (int) (long) extra; ^ x86_64-w64-mingw32-gcc -mthreads -shared -o libgnurx-0.dll -Wl,--enable-auto-image-base -Wl,--out-implib,libgnurx.dll.a -Wl,--output-def,libgnurx.def regex.o cp -p libgnurx.dll.a libregex.a ./build.sh: line 11: autoreconf: command not found ./build.sh: line 12: ./configure: No such file or directory make: No targets specified and no makefile found. Stop. cp: cannot stat 'magic/magic.mgc': No such file or directory make: No rule to make target 'clean'. Stop. ./build.sh: line 16: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. cp: cannot stat 'src/.libs/libmagic-1.dll': No such file or directory cp: cannot stat 'src/.libs/file.exe': No such file or directory mattsmacs@Pentest1:~/file-windows/file-windows$ cd dist mattsmacs@Pentest1:~/file-windows/file-windows/dist$ ls COPYING.file COPYING.libgnurx libgnurx-0.dll mattsmacs@Pentest1:~/file-windows/file-windows/dist$

mattsmacs commented 5 years ago

Has something in the files been changed?

mattsmacs commented 5 years ago

Good talk