RosBE::host-tools linker problem with GetFileSizeEx

All development related issues welcome

Moderator: Moderator Team

Post Reply
User avatar
sstasiek
Posts: 4
Joined: Sat May 30, 2015 10:45 am
Location: Poland

RosBE::host-tools linker problem with GetFileSizeEx

Post by sstasiek »

Hi everyone, i have problem with linker here.
I tried to compile host-tools on my Windows XP SP3 machine but linker throws error "unresolved external GetFileSizeEx"
E:\SVN\reactos\output-MinGW-i386\host-tools>chdefgcc
Please enter a MinGW/GCC directory (don't use quotes): C:\RosBE\i386
Please specify, if this will be the Target or Host GCC: host
Host Location: C:\RosBE\i386

Microsoft Windows XP [Version 5.1.2600]
gcc version 4.7.2 (RosBE-Windows)
gcc target: i386
GNU ld (GNU Binutils) 2.23.51.20121208
bison (GNU Bison) 2.5
flex 2.5.35
GNU Make 3.82
cmake version 2.8.12.1-ReactOS

E:\SVN\reactos\output-MinGW-i386\host-tools>ninja
[2/179] Building C object dll/win32/db...akeFiles/dbghelphost.dir/dbghelp.c.obj
In file included from ../../dll/win32/dbghelp/dbghelp_private.h:70:0,
from ../../dll/win32/dbghelp/dbghelp.c:21:
../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined [enabled by
default]
#define MAX_PATH 260
^
In file included from ../../include/host/typedefs.h:14:0,
from ../../dll/win32/dbghelp/compat.h:3,
from ../../dll/win32/dbghelp/dbghelp_private.h:70,
from ../../dll/win32/dbghelp/dbghelp.c:21:
x:\mingw\include\stdlib.h:46:0: note: this is the location of the previous defin
ition
#define MAX_PATH (260)
^
[3/179] Building C object dll/win32/db...CMakeFiles/dbghelphost.dir/dwarf.c.obj
In file included from ../../dll/win32/dbghelp/dbghelp_private.h:70:0,
from ../../dll/win32/dbghelp/dwarf.c:23:
../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined [enabled by
default]
#define MAX_PATH 260
^
In file included from ../../include/host/typedefs.h:14:0,
from ../../dll/win32/dbghelp/compat.h:3,
from ../../dll/win32/dbghelp/dbghelp_private.h:70,
from ../../dll/win32/dbghelp/dwarf.c:23:
x:\mingw\include\stdlib.h:46:0: note: this is the location of the previous defin
ition
#define MAX_PATH (260)
^
[4/179] Building C object dll/win32/db...eFiles/dbghelphost.dir/pe_module.c.obj
In file included from ../../dll/win32/dbghelp/dbghelp_private.h:70:0,
from ../../dll/win32/dbghelp/pe_module.c:24:
../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined [enabled by
default]
#define MAX_PATH 260
^
In file included from ../../include/host/typedefs.h:14:0,
from ../../dll/win32/dbghelp/compat.h:3,
from ../../dll/win32/dbghelp/dbghelp_private.h:70,
from ../../dll/win32/dbghelp/pe_module.c:24:
x:\mingw\include\stdlib.h:46:0: note: this is the location of the previous defin
ition
#define MAX_PATH (260)
^
[5/179] Building C object dll/win32/db...MakeFiles/dbghelphost.dir/module.c.obj
In file included from ../../dll/win32/dbghelp/dbghelp_private.h:70:0,
from ../../dll/win32/dbghelp/module.c:22:
../../dll/win32/dbghelp/compat.h:26:0: warning: "MAX_PATH" redefined [enabled by
default]
#define MAX_PATH 260
^
In file included from ../../include/host/typedefs.h:14:0,
from ../../dll/win32/dbghelp/compat.h:3,
from ../../dll/win32/dbghelp/dbghelp_private.h:70,
from ../../dll/win32/dbghelp/module.c:22:
x:\mingw\include\stdlib.h:46:0: note: this is the location of the previous defin
ition
#define MAX_PATH (260)
^
[6/179] Linking C executable tools/cdmake/cdmake.exe
FAILED: cmd.exe /c cd . && X:\MinGW\bin\cc.exe -fshort-wchar -Wno-multichar t
ools/cdmake/CMakeFiles/cdmake.dir/cdmake.c.obj tools/cdmake/CMakeFiles/cdmake.di
r/dirhash.c.obj tools/cdmake/CMakeFiles/cdmake.dir/llmsort.c.obj -o tools/cdmak
e/cdmake.exe -Wl,--out-implib, -Wl,--major-image-version,0,--minor-image-version
,0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -
lcomdlg32 -ladvapi32 && cd .
tools/cdmake/CMakeFiles/cdmake.dir/cdmake.c.obj:cdmake.c:(.text+0x13ec): undefin
ed reference to `GetFileSizeEx'
collect2.exe: error: ld returned 1 exit status
[6/179] Linking C static library dll/win32/dbghelp/libdbghelphost.a
ninja: build stopped: subcommand failed.
I don't know why RosBE tries to use cc.exe from 4.8.1 that i have installed in X:\MinGW even there were added all RosBE bin folders to system PATH at begining. There is no such file cc.exe(only cc1.exe) in RosBE compiler. Cmake for it's own reasons want's use cc.exe not cc1.exe so executes cc.exe founded in 4.8.1 path.
I've thunk that for some unknown reason cmake mixed newer GCC(cc.exe) but used older linker and libraries(4.7.1)
So i have removed RosBE MinGW folder(i386) and changed default GCC path in Options GUI Tool into my external 4.8.1(compiler and linker that's working for me in CodeBlocks, U++), but without sucess(same error). I have changed path by chdefgcc without success, by hand in makefiles again without sucess.
So then i have deleted all of mine MinGW pathes from system PATH, disconnected X: drive from system.
Compilation failures with "cmake version" command not found or something like that.
"configure" also throws same error even not started. But the problem is cmake version hitten by hand is working!?
I have no external cmake installed.
So then I have tried to install newest cmake.. .same error as in previous attempt(cmake version) in combination with MinGW 4.8.1 GetFileSizeEx error.

So then i tried to install RosBE Windows 10 Insider - without sucess because Windows 10 sucks so bad... Spartan crashes all the time i trie to download it :lol:
So i have installed RosBE on my 4th PC with XP SP3 also - game machine.
Without any MinGW,LLVM, CMake, Qt Creator, Borland...null nil none ever.... what was the first error?
cc1.exe = "libgmp-10.dll" not found... great!
Now GCC can't find it's bignum library, why there is no MinGW\bin\libgmp!? it should be! :)
I have copied it from MinGW 4.8.1, it could be also downloaded from:
http://www.gilgil.net/downloads/10640

After another compilation attempt... lack of libmpc-3.dll
Here is the list of dll that SHOULD BE included in RosBE Instalation guys!
libgmp-10.dll libmpc-3.dll libmfr-4.dll

List of files included in full MinGW 4.8.1 environment:
2013-09-01 03:38 149˙207 libcharset-1.dll
2013-09-02 19:36 440˙258 libexpat-1.dll
2013-10-05 19:17 112˙142 libgcc_s_dw2-1.dll
2014-04-27 00:46 1˙345˙800 libgettextlib-0-18-3.dll
2014-04-27 00:46 346˙426 libgettextpo-0.dll
2014-04-27 00:46 273˙762 libgettextsrc-0-18-3.dll
2013-08-22 13:45 684˙711 libgmp-10.dll
2013-08-22 13:45 78˙576 libgmpxx-4.dll
2013-10-05 19:17 53˙262 libgomp-1.dll
2013-09-01 03:39 1˙408˙750 libiconv-2.dll
2014-04-27 00:46 484˙613 libintl-8.dll
2010-09-25 21:16 61˙211 libltdl-7.dll
2013-09-25 14:29 179˙828 libmpc-3.dll
2013-09-25 02:50 486˙503 libmpfr-4.dll
2013-10-05 19:17 126˙478 libobjc-4.dll
2013-10-05 19:17 459˙278 libquadmath-0.dll
2013-10-05 19:17 36˙366 libssp-0.dll
2013-10-05 19:17 1˙000˙974 libstdc++-6.dll
gues what?
another attempt and linker compilation error, problem with GetFileSizeEx
I have hited configure before compilation!?
So then i decided to cleanup my SVN branch thunk or whatever...
I will post if it works soon.
Last edited by sstasiek on Sun May 31, 2015 9:27 pm, edited 5 times in total.

User avatar
EmuandCo
Developer
Posts: 4439
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by EmuandCo »

What are you trying to do with chdefgcc? TBH, I did not test these commands in the recent years anymore ^^
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

User avatar
sstasiek
Posts: 4
Joined: Sat May 30, 2015 10:45 am
Location: Poland

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by sstasiek »

Hi & Thanks for Your reply!
I have changed my first post slightly, You can read it. I have still the same problem, maybe will fix it by downloading sources again.
In meantime i figured out that RosBE lacks 3 .dll files that should be inculded! ^^
Without them GCC is not working if user don't have any GNU developement tools installed and included in PATH
Not mine but RosBE "BUG"

Secondly at least because of my problems i have installed very cool soft for editing system path.
http://www.rapidee.com/en/download
It's great! Must have! Simmilar tool should be part of ReactOS?!
There is also http://alternativeto.net/software/path- ... n-source-/
Witch probably should work in ReactOS(no MFC,.NET dependecies)

Z98
Release Engineer
Posts: 3379
Joined: Tue May 02, 2006 8:16 pm
Contact:

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by Z98 »

Windows XP, is this home or pro edition?

User avatar
EmuandCo
Developer
Posts: 4439
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by EmuandCo »

We include all dlls normally. Which are missing? And we do not add RosBE to any var. This is done @ startup of RosBE
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

User avatar
sstasiek
Posts: 4
Joined: Sat May 30, 2015 10:45 am
Location: Poland

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by sstasiek »

Success story. Sorry guys for wasteing Your time.
I should read FAQ or something?...

@EmuandCo - no dll's in i386 at all(as oposite, there are lot of dll's in RosBE\bin but none from MinGW lib*.dll),
1. This is weird and on my every RosBE 2.1 instalation - checked. Only .cmd, .ps, .exe, .h, .lib in RosBE-MinGW
2. I know RosBE is not added to var's/PATH, due problems i have added them ;)

@Z98 - All of my systems are original XP OEM SP3 Tablet 32 bit or Media Centre(XP Pro English + tablet extensions/ + media centre) on HP TC1000(Transmeta), TC1100(Pentium M ), HP 2710p(Core Duo), HP Pavilion s7600(Athlon X2 AM2), DX5150(Athlon X2 S739 DDR) and Windows 10 Insider 64 bit on 2710p (Core Duo U7700 4GB, SSD 32GB). One on of TC1100 shares D:, E:, X: (doc,ext doc, portable execs) and desktops across ethernet. So i have no problem with synchronization, doesn't need BitTorrent Sync, rsync, OneDrive, Wuala and no problem with tools except RosBE :lol: I have also unbreakable Windows Mobile 5/6.5 smartphones(HP iPAQ 6515, HTC Universal) + Blackberry OS 4.5 + Playbook OS "2.1" oh i still have Toshiba journe(CE) also (WinCE sucks so bad..) but it's almost WinAPI so i love it.
Why i use Blackberry? Because it works! Just works...always.

Yesterday i have successfully compiled host-tools after reinstaling RosBE on this clean XP Media Center SP3(so it's Pro) and downloading sources into new clean location. I have installed RosBE using default options, sources in "C:\Documents And Settings\myname\reactos" (that was big mistake)
After copying .dlls into C:\RosBE\i386\bin host-tools compiled successful, during compilation(first linking) of reactos "C:\Download" wrong path, this is due " " inside path name.
Source moved to "E:\SVN\reacotos", "chdefdir" "clean" then "configure" and it works as it should but only on this clean XP Media still not working on other(cmake version, GetFileSizeEx)

Even my story is sucessful:
1. Why RosBE tries to use home directory as path? I think it should be fixed to C:\RosBE\source or something like that...
2. Why RosBE lacks mentioned .dlls? My installer is wrong or what?
3. Why "clean" is not mentioned in "help" why Readme is so.. empty?

I think this would be my first commit to ReactOS :) Sorry again for your time wasted, im so happy now :P

User avatar
EmuandCo
Developer
Posts: 4439
Joined: Sun Nov 28, 2004 7:52 pm
Location: Germany, Bavaria, Steinfeld
Contact:

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by EmuandCo »

You seems to love and kind of commands added there... What exactly do you do on RosBE startup. From start TILL build process?
The dlls are in bin and thats where they belong to. The root is ONLY cmd and PS1, right. NO dll missing here. Could you send us the name of a dll its missing?
Source is nothing for the install folder, it's a user thing, so it stays that way.
ReactOS is still in alpha stage, meaning it is not feature-complete and is recommended only for evaluation and testing purposes.

User avatar
Black_Fox
Posts: 1584
Joined: Fri Feb 15, 2008 9:44 pm
Location: Czechia

Re: RosBE::host-tools linker problem with GetFileSizeEx

Post by Black_Fox »

EmuandCo wrote:Could you send us the name of a dll its missing?
Already did in a post above:
sstasiek wrote:cc1.exe = "libgmp-10.dll" not found... great!
sstasiek wrote:After another compilation attempt... lack of libmpc-3.dll
Here is the list of dll that SHOULD BE included in RosBE Instalation guys!
libgmp-10.dll libmpc-3.dll libmfr-4.dll

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest