[PATCH] compile on Solaris 11

Vladimir Voskresensky - Oracle vladimir.voskresensky at oracle.com
Mon Oct 7 04:09:30 PDT 2013


when build sources as is with gcc 4.6.3 the first error is:
----------
In file included from /export/devarea/LLVM/llvm/lib/Support/Path.cpp:1020:0:
/export/devarea/LLVM/llvm/lib/Support/Unix/Path.inc: In function ‘std::string 
llvm::sys::fs::getMainExecutable(const char*, void*)’:
/export/devarea/LLVM/llvm/lib/Support/Unix/Path.inc:274:3: error: ‘Dl_info’ was 
not declared in this scope
/export/devarea/LLVM/llvm/lib/Support/Unix/Path.inc:274:11: error: expected ‘;’ 
before ‘DLInfo’
/export/devarea/LLVM/llvm/lib/Support/Unix/Path.inc:275:31: error: ‘DLInfo’ was 
not declared in this scope
/export/devarea/LLVM/llvm/lib/Support/Unix/Path.inc:275:37: error: ‘dladdr’ was 
not declared in this scope
----------

after applying fix for Unix.h the next error is:
----------
In file included from /export/devarea/LLVM/llvm/lib/Support/Unix/Program.inc:39:0,
                  from /export/devarea/LLVM/llvm/lib/Support/Program.cpp:63:
/usr/include/spawn.h:52:14: error: expected ‘,’ or ‘...’ before ‘argv’
/usr/include/spawn.h:60:14: error: expected ‘,’ or ‘...’ before ‘argv’
In file included from /export/devarea/LLVM/llvm/lib/Support/Program.cpp:63:0:
/export/devarea/LLVM/llvm/lib/Support/Unix/Program.inc: In function ‘bool 
Execute(llvm::sys::ProcessInfo&, llvm::StringRef, const char**, const char**, 
const llvm::StringRef**, unsigned int, std::string*)’:
/export/devarea/LLVM/llvm/lib/Support/Unix/Program.inc:243:79: error: cannot 
convert ‘char**’ to ‘char*’ for argument ‘5’ to ‘int posix_spawn(pid_t*, const 
char*, const posix_spawn_file_actions_t*, const posix_spawnattr_t*, char*)’
----------

This one is fixed by patching Program.inc

Thanks,
Vladimir.

On 10/ 7/13 02:22 AM, Rafael Espíndola wrote:
> What were the errors?
>
> On 6 October 2013 15:56, Vladimir Voskresensky
> <voskresensky.vladimir at gmail.com> wrote:
>> Hello,
>>
>> I would like a review for this patch.
>> It fixes compilation on Solaris 11.
>>
>> Thanks,
>> Vladimir.
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>>




More information about the cfe-commits mailing list