global symbol conflict in test/pgtypeslib/dt_test2.pgc

Поиск
Список
Период
Сортировка
Искать

global symbol conflict in test/pgtypeslib/dt_test2.pgc

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
On an HPUX machine I notice this build warning:

ld: Type mismatch for symbol "times"; resolving FUNC symbol (in file /usr/lib/pa20_64/libc.sl) to OBJECT symbol (in file dt_test2.o)

It'd probably be a good idea if dt_test2.pgc did not declare a global
symbol conflicting with a standard library function name:
http://www.opengroup.org/onlinepubs/007908799/xsh/times.html

Perhaps you could just make those arrays "static"?

			regards, tom lane

Re: global symbol conflict in

От:
Bruce Momjian <bruce@momjian.us>
Дата:
'times' changed to 'static'.

---------------------------------------------------------------------------

Tom Lane wrote:
> On an HPUX machine I notice this build warning:
> 
> ld: Type mismatch for symbol "times"; resolving FUNC symbol (in file /usr/lib/pa20_64/libc.sl) to OBJECT symbol (in file dt_test2.o)
> 
> It'd probably be a good idea if dt_test2.pgc did not declare a global
> symbol conflicting with a standard library function name:
> http://www.opengroup.org/onlinepubs/007908799/xsh/times.html
> 
> Perhaps you could just make those arrays "static"?
> 
> 			regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

-- 
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
FAQ