[csw-users] gcc and autoconf

Philip Herron herron.philip at googlemail.com
Mon Nov 5 18:05:20 CET 2012


Just trying to package subversion 1.7.7 think i am going to do a fresh
install again because i realised i was using a 32 bit vm want to be
able to use 64 bit if want. Maybe i didnt install some of the packages
from your repo properly. And it was picking up the sunstudio -mt flag
somewhere like you said.

On 5 November 2012 17:01, Maciej (Matchek) Bliziński <maciej at opencsw.org> wrote:
> 2012/11/5 Philip Herron <redbrain at gcc.gnu.org>
>>
>> Hey all
>>
>> Trying to use the gcc4core package all is fine, then trying to
>> ./configure subversion i get as far as Expat and it fails but Expat is
>> on my system aswell.
>>
>> The error is:
>>
>> gcc -c -g -O2   -mt  -D_LARGEFILE64_SOURCE -DNE_LFS    -DSOLARIS2=9
>> -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE64_SOURCE
>> conftest.c >&5
>> cc1: error: unrecognized command line option '-mt'
>>
>> -mt is being passed to everything.
>>
>> I dont understand why this is happening. Has anyone else come across
>> this in using ./configure for gcc compiler on solaris to configur
>> packages.
>
>
> Hi Phil,
>
> From the top of my head, things like this one might be caused by a
> dependency. For example, expat wants to link against another library, and
> calls its foo-config utility to find out the compilation flags that are
> needed need to link against that library. If the dependency was compiled
> with Solaris Studio, its foo-config utility will return flags that are
> understood by Solaris Studio, but not necessarily by GCC. One way to go
> about this is to get Solaris Studio and use it to compile expat. Another way
> is to rebuild everything with GCC. Yet another way is to hack the expat
> build system to cut out the -mt flag.
>
> I see that the expat library is available from our repository[1]. Could you
> explain more about what is your larger goal?
>
> Maciej
>
> [1] http://www.opencsw.org/packages/libexpat_dev/
>
> _______________________________________________
> users mailing list
> users at lists.opencsw.org
> https://lists.opencsw.org/mailman/listinfo/users


More information about the users mailing list