Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Apr 2011 19:11:08 +0000
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Evan Martin <evan@chromium.org>
Cc:        chromium@freebsd.org, Andriy Gapon <avg@freebsd.org>
Subject:   Re: extra -lc in generated build files [Re: [solved] chromium doesn't open any page]
Message-ID:  <BANLkTim3q4X4czkvcj6VNM_huyjV_mFLww@mail.gmail.com>
In-Reply-To: <BANLkTi=sK_yPW8yvOb_PBtFLXk3r0n=F8g@mail.gmail.com>
References:  <BANLkTikA9kAvBaZOC0TNxEegNE3NfOJyPw@mail.gmail.com> <BANLkTi=%2B3RZ%2BU%2BRTwxRDgBd2PFnSKcqGdA@mail.gmail.com> <BANLkTi=sK_yPW8yvOb_PBtFLXk3r0n=F8g@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

2011/4/17 Baptiste Daroussin <bapt@freebsd.org>:
> 2011/4/17 Baptiste Daroussin <bapt@freebsd.org>:
>> 2011/4/17 Evan Martin <evan@chromium.org>:
>>> On Sun, Apr 17, 2011 at 11:38 AM, Baptiste Daroussin <bapt@freebsd.org> wrote:
>>>>> I am responsible for the code that generates the .mk files.  Can you
>>>>> paste the area around the file that contains the -lc flag?  I will
>>>>> help diagnose where it's coming from.
>>>>
>>>> Here they are:
>>>>
>>>> app/app_unittests.target.mk.bak:        -lc \
>>>> chrome/automated_ui_tests.target.mk.bak:        -lc \
>>>
>>> Hm, it seems most likely that we're picking that up from a pkg-config file.
>>>
>>> Can you try something like:
>>>
>>> $ grep -- -lc /usr/lib/pkgconfig/*
>>>
>>> (you might need to adjust the paths, I'm on Linux, sorry)
>>> to see if any libraries we use are including it?
>>>
>>> You can see the list of packages imported via pkg-config by looking at
>>> build/linux/system.gyp in the Chrome tree.
>>>
>>> $ grep libs-only-l build/linux/system.gyp
>>>              '<!@(<(pkg-config) --libs-only-l gtk+-2.0 gthread-2.0)',
>>>              '<!@(<(pkg-config) --libs-only-l gtk+-unix-print-2.0)',
>>>                  '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")',
>>>                  '<!@(<(pkg-config) --libs-only-l nss)',
>>>              '<!@(<(pkg-config) --libs-only-l freetype2)',
>>>              '<!@(<(pkg-config) --libs-only-l fontconfig)',
>>>              '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
>>>              '<!@(<(pkg-config) --libs-only-l gconf-2.0)',
>>>              '<!@(<(pkg-config) --libs-only-l x11)',
>>>            '<!@(<(pkg-config) --libs-only-l xi)',
>>>              '<!@(<(pkg-config) --libs-only-l xext)',
>>>                  '<!@(<(pkg-config) --libs-only-l gnome-keyring-1)',
>>>          '<!@(<(pkg-config) --libs-only-l dbus-glib-1)',
>>>              '<!@(<(pkg-config) --libs-only-l ibus-1.0)',
>>>
>>
>> none provides -lc
>>
>> regards,
>> bapt
>>
>
> ok this is provided by one of our changes: s/ldl/lc/ I'll see how to
> change that cleanly
>

this is it, I am doing some testing on the fix and commit it if it is ok.

Thanks all.

Bapt


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTim3q4X4czkvcj6VNM_huyjV_mFLww>