Re: writing a foreign data wrapper for hdfs, but getting and undefined symbol error for hdfsConnect

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: writing a foreign data wrapper for hdfs, but getting and undefined symbol error for hdfsConnect
Дата
Msg-id 29474.1319579418@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: writing a foreign data wrapper for hdfs, but getting and undefined symbol error for hdfsConnect  ("Rob_pg" <robert7390@comcast.net>)
Список pgsql-general
"Rob_pg" <robert7390@comcast.net> writes:
> Thanks for the tip, I altered the gcc invocation as follows:

> Here are the two gcc invocations originally creating the shared library:

> gcc -Wall -fPIC -c mylibrary.c -o mylibrary.o \
> -I $(A) -I $(B) -I $(C) -I $(E) -lhdfs

> gcc -I $(A) -I $(B) -I $(C) -I $(E) -shared\
> -Wl,-soname,mylibrary.so -o mylibrary.so mylibrary.o

> Here's the new invocations: I added "-lhdfs" to the second gcc invocation.

Yeah, -l is useless when building a .o file; gcc will just ignore it.
(Conversely, there's not much point in -I switches in a link step.)

            regards, tom lane

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

Предыдущее
От:
Дата:
Сообщение: explicit deadlock-victim-priority mechanism
Следующее
От: Andrew Hammond
Дата:
Сообщение: Re: missing chunk 0 for toast value ...