Problems building current release on Windows XP with Devlibs41
Tried to upgrade today, found inkscape now needs devlibs 41. Got that, modified mingwenv.bat to point to it. Ran btool. It got down to what looks like the final link and then blew up with:
============================= Make error line 460: LINK problem: build\libinkscape.a(main-cmdlineact.o):main-cmdlineact.cpp:(.text+0x1aa): undefined reference to `__printf__' build\libinkscape.a(init.o):init.cpp:(.text+0xac): undefined reference to `Inkscape::Extension::Internal::VsdInput::init()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x20): undefined reference to `libwpg::WPGFileStream::WPGFileStream(char const *)' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x84): undefined reference to `libwpg::WPGString::WPGString()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x90): undefined reference to `libwpg::WPGraphics::generateSVG(WPXInputStream* , libwpg::WPGString&)' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xa6): undefined reference to `libwpg::WPGString::~WPGString()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xb8): undefined reference to `libwpg::WPGString::cstr() const' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xd0): undefined reference to `libwpg::WPGString::cstr() const' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xfa): undefined reference to `libwpg::WPGString::~WPGString()' build\libinkscape.a(FontFactory.o):FontFactory.cpp:(.text+0xff8): undefined reference to `__printf__' collect2: ld returned 1 exit status
Suggestions?
Thanks,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
On 8-12-2012 2:22, mathog wrote:
Tried to upgrade today, found inkscape now needs devlibs 41. Got that, modified mingwenv.bat to point to it. Ran btool. It got down to what looks like the final link and then blew up with:
============================= Make error line 460: LINK problem: build\libinkscape.a(main-cmdlineact.o):main-cmdlineact.cpp:(.text+0x1aa): undefined reference to `__printf__' build\libinkscape.a(init.o):init.cpp:(.text+0xac): undefined reference to `Inkscape::Extension::Internal::VsdInput::init()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x20): undefined reference to `libwpg::WPGFileStream::WPGFileStream(char const *)' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x84): undefined reference to `libwpg::WPGString::WPGString()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0x90): undefined reference to `libwpg::WPGraphics::generateSVG(WPXInputStream* , libwpg::WPGString&)' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xa6): undefined reference to `libwpg::WPGString::~WPGString()' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xb8): undefined reference to `libwpg::WPGString::cstr() const' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xd0): undefined reference to `libwpg::WPGString::cstr() const' build\libinkscape.a(wpg-input.o):wpg-input.cpp:(.text+0xfa): undefined reference to `libwpg::WPGString::~WPGString()' build\libinkscape.a(FontFactory.o):FontFactory.cpp:(.text+0xff8): undefined reference to `__printf__' collect2: ld returned 1 exit status
Suggestions?
Certain you did a btool -clean?
-Johan
On 08-Dec-2012 04:29, Johan Engelen wrote:
Certain you did a btool -clean?
Certain that I did not, because "-clean" doesn't work:
C:\progs\inkscape6>btool -clean BuildTool error: Unknown option:-clean
Just nuked the build directory and build.dep that should do the same thing. Let you know in a couple of hours when the btool run completes.
Thanks,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
Still no joy (XP SP3 32 bit).
1. removed build directory 2. removed build.dep 3. mingwenv (points to devlibs41) 4. btool (wait long time) it completes without any errors. 5. build\inkscape boom 6. cd build gdb (gdb) file inkscape.exe inkscape.dbg Reading symbols from C:\progs\inkscape6\build/inkscape.exe...(no debugging symbols found)...done. Reading symbols from C:\progs\inkscape6\build/inkscape.dbg...done. (gdb) run Starting program: C:\progs\inkscape6\build/inkscape.exe [New thread 3456.0x668] [New thread 3456.0xe74] [New thread 3456.0x2cc]
Program exited with code 03. (gdb) bt No stack. (gdb) quit
There was a "boom" after the 3rd "New thread" where it popped up a dialog:
"Microsoft Visual C++ Runtime Library
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for further information".
Close that and
"Inkscape has encountered an internal error and will close now."
Then the Program exited and below messages appeared in the console.
Not a lot to go on here. No part of the GUI appeared before inkscape crashed.
inkscape r11712 gcc 4.6.2 devlibs 41 AMD dual core CPU Windows XP SP3 32 bit
There were a few minor patches on top of that, none of which should have taken affect that early. Just in case, reverted them, rebuilt, and it still did the same thing.
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
Was able to pull a tiny bit more information by using GDB, ^C after the second thread message, and then step 100:
***************************************************** (gdb) file inkscape.exe inkscape.dbg Reading symbols from C:\progs\inkscape6\build/inkscape.exe...(no debugging symbols found)...done. Reading symbols from C:\progs\inkscape6\build/inkscape.dbg...done. (gdb) run Starting program: C:\progs\inkscape6\build/inkscape.exe [New thread 3568.0xdc0] [New thread 3568.0x684] Quit (expect signal SIGINT when the program is resumed) (gdb) step 100 Single stepping until exit from function ntdll!DbgUiConnectToDbg, which has no line number information. Single stepping until exit from function ntdll!ZwMapViewOfSection, which has no line number information. Single stepping until exit from function snwprintf, which has no line number information. Single stepping until exit from function ntdll!RtlInitAnsiString, which has no line number information. Single stepping until exit from function ntdll!RtlAppendStringToString, which has no line number information. Single stepping until exit from function strchr, which has no line number information. Single stepping until exit from function ntdll!RtlAppendStringToString, which has no line number information. [New thread 3568.0x804]
Program exited with code 03.
***********************************************
It doesn't tell me anything useful though.
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
On 10-12-2012 17:58, mathog wrote:
On 08-Dec-2012 04:29, Johan Engelen wrote:
Certain you did a btool -clean?
Certain that I did not, because "-clean" doesn't work:
C:\progs\inkscape6>btool -clean BuildTool error: Unknown option:-clean
For future reference, it's "btool clean".
-Johan
inkscape r11712
I would suggest trying a newer Inkscape build, there have been a lot of changes since then, both in Inkscape and in devlibs
have you tried tdm-gcc 4.6.1, that works for me.
- Alvin
-- View this message in context: http://inkscape.13.n6.nabble.com/Problems-building-current-release-on-Window... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Figured it out - dumb mistake on my part mixed with completely useless error reporting about the problem in inkscape. I had tried to start it with
build\inkscape
and not
inkscape\inkscape
Of course it couldn't find anything in build\share and blew up. But since it was built with the default -mwindows switch the relevant error message never appeared in the console and only the mysterious VC++ message did. Found the issue after changing -mwindows to -mconsole in build.xml and rebuilding. With -mconsole there was an error message about a file with a build\share path not being found, and since there is no build\share, my error was revealed.
Sorry about the noise.
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech
On Mon, Dec 10, 2012 at 8:58 AM, mathog <mathog@...1176...> wrote:
On 08-Dec-2012 04:29, Johan Engelen wrote:
Certain you did a btool -clean?
Certain that I did not, because "-clean" doesn't work:
C:\progs\inkscape6>btool -clean BuildTool error: Unknown option:-clean
I seem to recall there was no "-" and that "btool clean" should be it. Forgive me if I'm wrong, it's been years since I built on windows regularly.
Cheers, Josh
participants (4)
-
alvinpenner
-
Johan Engelen
-
Josh Andler
-
mathog