[Webkit-unassigned] [Bug 138420] New: Undefined reference to `environ' to linking libgtest.so on FreeBSD

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 5 06:25:53 PST 2014


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

            Bug ID: 138420
           Summary: Undefined reference to `environ' to linking
                    libgtest.so on FreeBSD
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lantw44 at gmail.com

I got this error when compiling WebKit trunk with debug on FreeBSD:

Linking CXX shared library ../../../lib/libgtest.so
CMakeFiles/gtest.dir/__/__/ThirdParty/gtest/src/gtest-death-test.cc.o: In function `testing::internal::GetEnviron()':
/usr/home/lantw44/webkit/source/WebKit/Source/ThirdParty/gtest/src/gtest-death-test.cc:846: undefined reference to `environ'

It seems it is caused by the -Wl,--no-undefined flag added in Source/cmake/OptionsCommon.cmake. The environ symbol is not defined in libc.so.7, but it exists in crt1.o.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141105/d13ab2c3/attachment-0002.html>


More information about the webkit-unassigned mailing list