Sorry, I used to use "LDFLAGS" with ld in customized makefile, but it actually should use with gcc, so "LDFLAGS=-wl,--no-as-needed" should work.<div><br></div><div>Nevo<br><br><div class="gmail_quote">On 29 December 2010 04:03, Nikita B. Zuev <span dir="ltr"><<a href="mailto:nikitazu@gmail.com">nikitazu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Well as Matthew Flatt suggested I compiled 5.0.99.5 so the problem is<br>
solved... I think.<br>
But for the purpose of finding The Truth, I still tried to make 5.0.2)))<br>
<br>
[nikitazu@oni build]$ LDFLAGS=--no-as-needed ../configure<br>
checking for gcc... gcc<br>
checking for C compiler default output file name...<br>
configure: error: C compiler cannot create executables<br>
See `config.log' for more details.<br>
<br>
I've attached config.log, maybe there is something with my gcc....<br>
<br>
<br>
Anyway, I'm glad that now I can work in racket on my laptop, thanks<br>
everyone your for help!<br>
<br>
<br>
2010/12/28 Nevo <<a href="mailto:sakur.deagod@gmail.com">sakur.deagod@gmail.com</a>>:<br>
<div><div></div><div class="h5">> I actually meant config.log. But that's okay... Can you try to do<br>
> "LDFLAGS="--no-as-needed ./configure" ?<br>
><br>
> On 12/28/2010 07:00 PM, Nikita B. Zuev wrote:<br>
>><br>
>> mailing list is not very happy receiving long attachments))<br>
>><br>
>> two files in attachment:<br>
>> racket.configure.log - the output of `configure'<br>
>> racket.build.log - the output of `make'<br>
>><br>
>><br>
>> 28 декабря 2010 г. 11:05 пользователь Nevo<<a href="mailto:sakur.deagod@gmail.com">sakur.deagod@gmail.com</a>><br>
>> написал:<br>
>>><br>
>>> From the error you provided, it seems being related with gcc argument<br>
>>> passed<br>
>>> to the linker "as-needed", but I'm not sure so. It might be more useful<br>
>>> to<br>
>>> provide configure log.<br>
>>> - nevo<br>
>>><br>
>>> On 28 December 2010 15:13, Nikita B. Zuev<<a href="mailto:nikitazu@gmail.com">nikitazu@gmail.com</a>> wrote:<br>
>>>><br>
>>>> Thanks, but I have them all installed, because without them configure<br>
>>>> script was failing. Looks like I need to experiment with their<br>
>>>> versions.<br>
>>>><br>
>>>> Maybe someone can point me to where I can change makefile to follow<br>
>>>> this instruction:<br>
>>>><br>
>>>>>> /usr/bin/ld: note: 'FcMatrixScale' is defined in DSO<br>
>>>>>> /usr/lib/libfontconfig.so.1 so try adding it to the linker command<br>
>>>>>> line<br>
>>>><br>
>>>> I'm not very much into C and makefiles)))<br>
>>>><br>
>>>><br>
>>>> 27 декабря 2010 г. 18:54 пользователь Todd O'Bryan<br>
>>>> <<a href="mailto:toddobryan@gmail.com">toddobryan@gmail.com</a>> написал:<br>
>>>>><br>
>>>>> I made a list of which libs you need. Unfortunately, it was a long<br>
>>>>> time ago, so I'm not going to point you to it, until I update it. (It<br>
>>>>> still talks about DrScheme.)<br>
>>>>><br>
>>>>> Here's the list of libs:<br>
>>>>><br>
>>>>> gcc<br>
>>>>> g++<br>
>>>>> libcairo2-dev<br>
>>>>> libgl1-mesa-dev<br>
>>>>> libglu1-mesa-dev<br>
>>>>> libxaw7-dev<br>
>>>>> libxext-dev<br>
>>>>> libxft-dev<br>
>>>>> libxmu-dev<br>
>>>>> libxt-dev<br>
>>>>> make<br>
>>>>><br>
>>>>> I'm not sure which versions are necessary, and the names may be<br>
>>>>> slightly different. These worked on the latest Ubuntu.<br>
>>>>><br>
>>>>> Todd<br>
>>>>><br>
>>>>> On Mon, Dec 27, 2010 at 8:35 AM, Nikita B. Zuev<<a href="mailto:nikitazu@gmail.com">nikitazu@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>>><br>
>>>>>> I'm trying to compile racket 5.0.2 from source code on my laptop.<br>
>>>>>> `make' complains:<br>
>>>>>><br>
>>>>>> g++ -L../../wxxt/utils/image/src -L../../wxxt/contrib/xpm/lib -pthread<br>
>>>>>> -L../../racket -L../wxs -L../../wxxt/src -o ../gracket3m grmain.o<br>
>>>>>> ../libgracket3m.a ../../racket/libracket3m.a -lSM -lICE -lXaw -lXmu<br>
>>>>>> -lXt -lX11 -lXext -lGL -lXrender -lXft -lcairo -lpng -lz -ljpeg<br>
>>>>>> -ldl -lm -ldl -lm -rdynamic ../../wxxt/contrib/xpm/lib/libXpm.a<br>
>>>>>> /usr/bin/ld: ../libgracket3m.a(Font.o): undefined reference to symbol<br>
>>>>>> 'FcMatrixScale'<br>
>>>>>> /usr/bin/ld: note: 'FcMatrixScale' is defined in DSO<br>
>>>>>> /usr/lib/libfontconfig.so.1 so try adding it to the linker command<br>
>>>>>> line<br>
>>>>>> /usr/lib/libfontconfig.so.1: could not read symbols: Invalid operation<br>
>>>>>> collect2: выполнение ld завершилось с кодом возврата 1<br>
>>>>>><br>
>>>>>> full log is in attachment<br>
>>>>>><br>
>>>>>> os - linux fedora 14<br>
>>>>>> arch - i686<br>
>>>>>> i think problem is in this package: libXft-devel-2.1.14-1.fc14.2.i686<br>
>>>>>> (before I installed it, racket compiled but fonts were broken)<br>
>>>>>><br>
>>>>>> Some days ago I've successfully build same version of racket on debian<br>
>>>>>> so I think maybe problem is in installed libs. I don't know where to<br>
>>>>>> look from here, can someone please help?<br>
>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Regards,<br>
>>>>>> Nikita B. Zuev<br>
>>>>>><br>
>>>>>> _________________________________________________<br>
>>>>>> For list-related administrative tasks:<br>
>>>>>> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
>>>>>><br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Regards,<br>
>>>> Nikita B. Zuev<br>
>>>> _________________________________________________<br>
>>>> For list-related administrative tasks:<br>
>>>> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
>><br>
>><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
Regards,<br>
<font color="#888888">Nikita B. Zuev<br>
</font></blockquote></div><br></div>