Hi Eric!

Eric B Munson wrote:
> On Fri, 21 Jan 2011, Andrew Hastings wrote:
> 
>> Add general support for static linking to the test suite.
>> Build a static version of the shmoverride_linked test; this acts as a test
>>   case for a recent patch that allows shmget() to be used in static
>>   executables linked against libhugetlbfs.
>> Correct runtests.py to run all cases of shmoverride:  with and without
>>   LD_PRELOAD, with and without HUGETLB_SHM, with and without prelinking.
>>
>> Signed-off-by: Andrew Hastings <[email protected]> on behalf of Cray Inc.
> 
> When I apply this patch I an seeing build failures in the test suite.
> 
>        LD32 (lib test) obj32/shmoverride_linked_static
> ../obj32/libhugetlbfs.a(shm.o): In function `shmget':
> /home/emunson/libhugetlbfs/shm.c:43: undefined reference to `dlsym'
> /home/emunson/libhugetlbfs/shm.c:44: undefined reference to `dlerror'
> collect2: ld returned 1 exit status
> 
> 
> I believe that I have all of the required -static packages installed,
> is there something I am missing?
> 
> Eric

Do you have the "[PATCH V2] shm.c: Allow static linking with shmget()" patch 
applied?  The dlsym() call should be line shm.c:43 pre-patch, and line 
shm.c:105 post-patch.

-Andrew

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to