Build error with latests change

Kelly O'Hair kelly.ohair at oracle.com
Tue Mar 8 08:15:42 PST 2011


We have added a shared library and executable verification step after being built or copied into the image.

See the tail end of jdk/make/common/shared/Defs-{solaris,windows,linux}.gmk
the define is called binary_file_verification and this is where we would like to list the shared library dependencies
and verify certain attributes of the shared libraries. This will add to our build logs and also verify that we have
built the native shared libraries and executables consistently.

It can be empty, but I'd prefer to put something there on all platforms.
Sometimes it is not possible, like with cross compilations.

The ldd utility is used to list the dependencies, readobj/dump is used to print the dynamic runpath settings
and nm is used to check to see if the library has been versioned with a particular name (mapfile or version script
used at link time).  I don't know what the Mac/BSD equivalents are.

-kto


On Mar 8, 2011, at 7:47 AM, Henri Gomez wrote:

> Sadly, I don't have reply here or on bsd-port list ;(
> 
> 2011/3/8 David Schlosnagle <schlosna at gmail.com>:
>> I did a pull and update last night after seeing the recent pushes to
>> macosx-port-dev, and I also ran into these compilation failures.
>> 
>> - Dave
>> 
>> On Tue, Mar 8, 2011 at 9:05 AM, Henri Gomez <henri.gomez at gmail.com> wrote:
>>> Did we are alone to build these sources ?
>>> 
>>> I'm more than worried to see such errors commited in HG ;(
>>> 
>>> 2011/3/8 Stephen Bannasch <stephen.bannasch at deanbrook.org>:
>>>> At 10:40 AM +0100 3/8/11, Henri Gomez wrote:
>>>>> Hi to all,
>>>>> 
>>>>> Latests change in HG broke the build :
>>>> 
>>>> ...
>>>> 
>>>>> /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/build/macosx-universal/lib/libjsig.dylib:
>>>>>       @rpath/libjsig.dylib (compatibility version 1.0.0, current version 1.0.0)
>>>>>       /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
>>>>> version 125.2.1)
>>>>> RUNPATH for: /Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/build/macosx-universal/lib/libjsig.dylib
>>>>> make[4]: *** [/Users/henri/Documents/jenkins/data/jobs/openjdk-1.7-macosx-universal/workspace/build/macosx-universal/lib/libjsig.dylib]
>>>>> Error 1
>>>>> make[3]: *** [all] Error 1
>>>>> make[2]: *** [all] Error 1
>>>>> make[1]: *** [jdk-build] Error 2
>>>>> 
>>>>> Did someone got the same problem ?
>>>> 
>>>> I have the same problem looking for the RUNPATH for libjsig.dylib on bsd-port
>>>> 
>>> 
>> 



More information about the macosx-port-dev mailing list