On Mon, 24 Jan 2011, Andrew Hastings wrote: > 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.
I am not sure why it was broken before, but all is well now, I have applied this. Thanks, Eric
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Libhugetlbfs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel
