ld crash when linking libkorganizerprivate.dll
Bernhard Reiter
bernhard at intevation.de
Mon May 19 10:00:29 CEST 2008
On Monday 19 May 2008 08:41, Jaroslaw Staniek wrote:
> Bernhard Reiter said the following, On 2008-05-19 00:03:
> > I am trying to build kdepim
> > (the rel+debug build type)
> > When linking libkorgnizerprivate.dll, the ld crashes.
> > I get a windows screen and the log says exit code 5.
> > Any ideas what to do with this?
>
> I've found this, no idea if helps:
> http://lists-archives.org/mingw-users/08175-ld-crashes-when-linking.html
> and the answer
> http://lists-archives.org/mingw-users/08176-ld-crashes-when-linking.html
Yes, it helped. Thanks for the hints!
Details for the technical interested:
The "answer" above states
The problem was that I linked
2 times with the same library: -llibrary -llibrary.
With this information I did examine my link command in detail checking
for duplication of libraries. First to see the full command I had to
set VERBOSE=1
then I've called mingw32-make and caught the output to file > X 2>&1.
Now I cutted out the command, used search and replace for " " and added a line
break. Sorted the file via "sort" on unix. Sorted a copy unique and "diff"ed
them. This showed a few doubles:
F:\kderoot-current\lib\libQtNetwork4.a
-F:\kderoot-current\lib\libQtNetwork4.a
F:\kderoot-current\lib\libQtSvg4.a
F:\kderoot-current\lib\libQtXml4.a
F:\kderoot-current\lib\libstreamanalyzer.dll.a
@@ -170,13 +167,10 @@
-lgdi32
-lkabc
-lkdecore
--lkdecore
--lkdeui
-lkdeui
-lkfile
-lkimproxy
-lkio
--lkio
Also I saw that very similiar libraries were linked in from a second
directory. Those are probably more deadly than the dublicates above.
I removed these dublicates and put the command in x.bat.
Went to the korganizer subdirectory and issued it manually as "x.bat"
-> no crash anymore. Hypothesis proven.
--
Managing Director - Owner: www.intevation.net (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20080519/5b2576b1/attachment.pgp
More information about the Kde-windows
mailing list