[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS
From: |
Peter Rosin |
Subject: |
Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS |
Date: |
Mon, 20 Sep 2010 17:49:12 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Den 2010-09-20 10:33 skrev Peter Rosin:
> Hi Ralf,
>
> Den 2010-09-18 11:45 skrev Peter Rosin:
>> Den 2010-09-17 21:14 skrev Ralf Wildenhues:
>>> As a workaround, does it work to put a declaration of the program
>>> symlist in ltdl.h as below? You might have to remove the corresponding
>>> declaration from the LTDL_SET_PRELOADED_SYMBOLS macro in that case, to
>>> avoid incompatible redeclaration.
>>
>> Doing that makes main.exe link, just as if I do main() with C linkage as
>> I asked. The test still doesn't pass though. I get this output (same result
>> as with main() with C linkage):
>>
>> $ ./main -dlopen m/module.la
>> exceptions_in_prog
>> caught: exception in program
>> exceptions_in_lib
>> caught inside lib: exception in library
>> caught: exception from library
>> exceptions_in_module
>> dlopen failed: file not found
>>
>> I haven't looked into that failure yet, but suspect that it is some
>> PATH issue or posix vs. windows abs dir thing which is unrelated to
>> this. I will not look at this until after the weekend.
>
> Now I have, and that failure was of the PEBCAK type. The test passes
> with the two patches in the followup mails. Testsuite is running on
> MinGW and Cygwin (gcc) and have completed enough of it that I don't
> think there will be any regressions.
Update: The two patches do not affect the new testsuite for neither
MinGW nor Cygwin (gcc).
Cheers,
Peter
- Linkage and LTDL_SET_PRELOADED_SYMBOLS, Peter Rosin, 2010/09/17
- Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS, Ralf Wildenhues, 2010/09/17
- Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS, Peter Rosin, 2010/09/18
- Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS, Peter Rosin, 2010/09/20
- [PATCH 1/2] tests: __declspec (dll{ex, im}port) in tests/exceptions.at, Peter Rosin, 2010/09/20
- Re: [PATCH 1/2] tests: __declspec (dll{ex, im}port) in tests/exceptions.at, Bob Friesenhahn, 2010/09/20
- Re: [PATCH 1/2] tests: __declspec (dll{ex, im}port) in tests/exceptions.at, Peter Rosin, 2010/09/20
- [PATCH 2/2] libltdl: Make sure preloaded symbols are declared extern "C"., Peter Rosin, 2010/09/20
- Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS,
Peter Rosin <=
- Re: Linkage and LTDL_SET_PRELOADED_SYMBOLS, Bob Friesenhahn, 2010/09/20