Re: Solaris getopt_long and PostgreSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Solaris getopt_long and PostgreSQL
Дата
Msg-id 18115.1238516512@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Solaris getopt_long and PostgreSQL  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: Solaris getopt_long and PostgreSQL
Список pgsql-hackers
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> Yeah correct, I overlooked that optreset is also defined as a extern. 
> There is updated patch.

On looking at this I still can't see how it's not broken.  You are
effectively assuming that getopt_long.c must define those variables.
But surely getopt_long.c should be assuming that getopt.c defines them.
Aren't we likely to end up with the situation that everyone is
extern'ing them?

What appears to me to be happening is that Solaris' linker is failing to
merge global variable definitions when it should (must) do so.  We need
to find out why rather than solve it with a patch that will certainly
break other platforms.

If you can't come up with a real solution, we might have to do this
with "#ifndef SOLARIS" or something similar.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: string_to_array with empty input
Следующее
От: justin
Дата:
Сообщение: Re: [GENERAL] string_to_array with empty input