[Webkit-unassigned] [Bug 76538] New: [Qt][WK2] Broken build with undefined reference to shm_open and shm_unlink

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 18 06:37:56 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=76538

           Summary: [Qt][WK2] Broken build with undefined reference to
                    shm_open and shm_unlink
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: luciano.wolf at openbossa.org
                CC: vestbo at webkit.org


When compiling latest WebKit2 under Ubuntu 11.10 I was facing some errors with SharedMemoryUnix.o. 

/home/luck/work/webkit/WebKitBuild/Release/Source/WebKit2/release/libWebKit2.a(SharedMemoryUnix.o): In function `WebKit::SharedMemory::create(unsigned long)':
SharedMemoryUnix.cpp:(.text._ZN6WebKit12SharedMemory6createEm+0x1fb): undefined reference to `shm_open'
SharedMemoryUnix.cpp:(.text._ZN6WebKit12SharedMemory6createEm+0x30e): undefined reference to `shm_unlink'
SharedMemoryUnix.cpp:(.text._ZN6WebKit12SharedMemory6createEm+0x459): undefined reference to `shm_unlink'
collect2: ld returned 1 exit status

After some investigation we find out that the problem was related to linker parameter's order. -lrt should come after -lWebKit2. I'm attaching a patch that ensures the right order of these parameters.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list