Re: BUG #6585: Can't compile from source code

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: mit <mit(at)akamit(dot)com>
Cc: Pg Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #6585: Can't compile from source code
Date: 2012-04-12 18:29:52
Message-ID: 1334254932-sup-3474@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Excerpts from mit's message of jue abr 12 14:37:48 -0300 2012:
> The following bug has been logged on the website:
>
> Bug reference: 6585
> Logged by: Andrey Mitroshin
> Email address: mit(at)akamit(dot)com
> PostgreSQL version: 9.1.3
> Operating system: AIX 7.1.0
> Description:
>
> This affects versions from 9.0.0
> Version 8.4.7 is not affected
> gcc -v
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.6.3/lto-wrapper
> Target: powerpc-ibm-aix7.1.0.0
> Configured with: ../gcc-4.6.3/configure --with-as=/usr/bin/as
> --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
> --prefix=/opt/freeware --mandir=/opt/freeware/man
> --infodir=/opt/freeware/info --enable-threads
> --enable-version-specific-runtime-libs --disable-nls
> --enable-decimal-float=dpd --host=powerpc-ibm-aix7.1.0.0

> ld: 0711-317 ERROR: Undefined symbol: .mbstowcs_l

Hmm. It seems we use HAVE_WCSTOMBS_L as a hint that both mbstowcs_l and
wcstombs_l are present. I guess it's most common that both exist
simultaneously, but perhaps it's not impossible that AIX only has
wcstombs_l and not mbstowcs_l.

Or it could just be a missing linker flag.

--
Álvaro Herrera <alvherre(at)commandprompt(dot)com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-04-12 19:55:01 Re: BUG #6585: Can't compile from source code
Previous Message mit 2012-04-12 17:37:48 BUG #6585: Can't compile from source code