[Enigmail] Building enigmail on OS/2

Dave Yeo dave.r.yeo at gmail.com
Wed Jan 4 19:47:48 PST 2012


Hi, I'm trying to build enigmail trunk on OS/2. The build dies here,
G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:
In member function 'nsresult
nsPipeTransport::CopyArgsAndCreateProcess(const PRUnichar**, PRUint32,
const PRUnichar**, PRUint32, PRFileDesc*, PRFileDesc*, PRFileDesc*)':
G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:1079:
error: no matching function for call to
'nsCString_external::nsCString_external(const PRUnichar*&)'
../../../../../mozilla/dist/include/nsStringAPI.h:913: note:
candidates are: nsCString_external::nsCString_external(const char*,
PRUint32, PRUint32)
../../../../../mozilla/dist/include/nsStringAPI.h:883: note:
       nsCString_external::nsCString_external(const char*, PRUint32)
../../../../../mozilla/dist/include/nsStringAPI.h:876: note:
       nsCString_external::nsCString_external(const nsACString&)
../../../../../mozilla/dist/include/nsStringAPI.h:869: note:
       nsCString_external::nsCString_external(const nsCString_external&)
../../../../../mozilla/dist/include/nsStringAPI.h:864: note:
       nsCString_external::nsCString_external()
G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:1083:
error: invalid initialization of reference of type 'const nsAString&'
from expression of type 'nsCAutoString'
../../../../../mozilla/dist/include/nsStringAPI.h:1000: error: in
passing argument 1 of 'char* ToNewUTF8String(const nsAString&)'
make.exe[3]: *** [nsPipeTransport.o] Error
1G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:
In member function 'nsresult
nsPipeTransport::CopyArgsAndCreateProcess(const PRUnichar**, PRUint32,
const PRUnichar**, PRUint32, PRFileDesc*, PRFileDesc*, PRFileDesc*)':
G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:1079:
error: no matching function for call to
'nsCString_external::nsCString_external(const PRUnichar*&)'
../../../../../mozilla/dist/include/nsStringAPI.h:913: note:
candidates are: nsCString_external::nsCString_external(const char*,
PRUint32, PRUint32)
../../../../../mozilla/dist/include/nsStringAPI.h:883: note:
       nsCString_external::nsCString_external(const char*, PRUint32)
../../../../../mozilla/dist/include/nsStringAPI.h:876: note:
       nsCString_external::nsCString_external(const nsACString&)
../../../../../mozilla/dist/include/nsStringAPI.h:869: note:
       nsCString_external::nsCString_external(const nsCString_external&)
../../../../../mozilla/dist/include/nsStringAPI.h:864: note:
       nsCString_external::nsCString_external()
G:/mozilla/mailnews/extensions/enigmail/ipc/src/nsPipeTransport.cpp:1083:
error: invalid initialization of reference of type 'const nsAString&'
from expression of type 'nsCAutoString'
../../../../../mozilla/dist/include/nsStringAPI.h:1000: error: in
passing argument 1 of 'char* ToNewUTF8String(const nsAString&)'
make.exe[3]: *** [nsPipeTransport.o] Error 1

Replacing the ifdef XP_OS2 with ifdef 0 and the compile runs to the
finish.
After building the xpi and installing in Thunderbird everything works
except communicating with gpg.exe which I take as being due to using
single quotes instead of double quotes in the piped command.
Not sure how to fix this.
Dave


More information about the Enigmail mailing list