Bug 326338

Summary: build of libxslt fails due to incorrect preprocessor instruction
Product: kde-windows Reporter: dasaan.san
Component: buildsystemAssignee: KDE-Windows <kde-windows>
Status: RESOLVED FIXED    
Severity: major CC: dasaan.san, nico.kruber
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Attachments: Patch against: emerge\portage\win32libs\libxslt\libxslt-1.1.26-20101102.diff

Description dasaan.san 2013-10-20 18:09:36 UTC
whilst emerging kdelibs the build of libxslt-1.1.28 fails

Line 1898 of %KDEROOT%\build\win32libs\libxslt-1.1.26-1\work\libxslt-1.1.28\libxslt\xsltutils.c is:
#elif HAVE_GETTIMEOFDAY

which causes a syntax error

changing the line to:
#elif defined(HAVE_GETTIMEOFDAY)

resolved the issue for me.

Reproducible: Always

Steps to Reproduce:
1. emerge kdelibs

Actual Results:  
During the build of libxslt-1.1.28 an error stating that:
#elif with no conditional detected

appears, the build then halts

Expected Results:  
libxslt-1.1.28 should have been built correctly and the emerge process should have continued to the next package
Comment 1 dasaan.san 2013-10-20 18:14:31 UTC
Created attachment 82976 [details]
Patch against: emerge\portage\win32libs\libxslt\libxslt-1.1.26-20101102.diff

Patch that fixes the malformed pre-processor command
Comment 2 Nico Kruber 2013-10-20 23:15:46 UTC
thank you for the fix - I'll integrate it next week-end (unless someone has done so by then)

which compiler are you using anyway?
did all my latest changes (updated packages) to the best of my knowledge but only with msvc2010
Comment 3 dasaan.san 2013-10-20 23:40:37 UTC
I'm building with mingw, I'll make sure to mention it in future reports
Comment 4 dasaan.san 2013-10-31 22:24:54 UTC
Fixed in commit: a3f18e16cb9fffa406de70c84b855843e10e98a7