Opened 15 months ago

Last modified 15 months ago

#25334 new defect

Missing SearchAPI.h on Windows builds of Thunderbird when cross-compiling on Linux

Reported by: sukhbir Owned by:
Priority: Medium Milestone:
Component: Archived/Tor Mail Version:
Severity: Normal Keywords:
Cc: arlolra, boklm Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

31:31.93 /var/tmp/build/thunderbird-48f960ae7db5/mail/components/search/nsMailWinSearchHelper.cpp:17:23: fatal error: SearchAPI.h: No such file or directory
31:31.93 compilation terminated.
31:31.93 
31:31.93 In the directory  /var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/mail/components/search
31:31.93 The following command failed to execute properly:
31:31.93 /var/tmp/dist/mingw-w64/helpers/x86_64-w64-mingw32-g++ -std=gnu++11 -mwindows -o nsMailWinSearchHelper.o -c -DNDEBUG=1 -DTRIMMED=1 -DSTATIC_EXPORTABLE_JS_API -DMOZ_HAS_MOZGLUE -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL -I/var/tmp/build/thunderbird-48f960ae7db5/mail/components/search -I/var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/mail/components/search -I/var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/dist/include -I/var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/dist/include/nspr -I/var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/dist/include/nss -DMOZILLA_CLIENT -include /var/tmp/build/thunderbird-48f960ae7db5/obj-mingw/mozilla-config.h -MD -MP -MF .deps/nsMailWinSearchHelper.o.pp -Wall -Wc++11-compat -Wempty-body -Wignored-qualifiers -Woverloaded-virtual -Wpointer-arith -Wsign-compare -Wtype-limits -Wunreachable-code -Wwrite-strings -Wno-invalid-offsetof -Wc++14-compat -Wno-error=maybe-uninitialized -Wno-error=deprecated-declarations -Wno-error=array-bounds -Wno-format -fno-lifetime-dse -fno-exceptions -fno-strict-aliasing -mms-bitfields -fno-rtti -fno-exceptions -fno-math-errno -pipe -g -O -fomit-frame-pointer /var/tmp/build/thunderbird-48f960ae7db5/mail/components/search/nsMailWinSearchHelper.cpp

Child Tickets

Change History (3)

comment:1 Changed 15 months ago by boklm

Is it an issue in the x86_64 build only or does it also affect the i686 build?

comment:2 in reply to:  1 Changed 15 months ago by sukhbir

Replying to boklm:

Is it an issue in the x86_64 build only or does it also affect the i686 build?

Both. It's because the SearchAPI.h is missing in the included mingw-w64 headers and so I am guessing the solution is to add this file to the mingw-w64 headers?

comment:3 Changed 15 months ago by sukhbir

I added the headers and that seems to resolve this issue (as expected) but there seems to be more than one missing headers here. So I opened https://bugzilla.mozilla.org/show_bug.cgi?id=1442034 and reported it there to see what is the correct way of fixing this (and subsequent missing headers) since it involves adding the headers from from the Windows SDK to mingw-w64.

Note: See TracTickets for help on using tickets.