yar1k |
|
Темы:
4
Сообщения:
10
Участник с: 15 марта 2010
|
Использую abs. В файле /var/abs/community/exim/PKGBUILD вношу дополнительные строки, чтобы пакет собирался с поддержкой pgsql: sed ‘s|^# LOOKUP_PGSQL=yes|LOOKUP_PGSQL=yes|’ | \ и тут я не знаю как правильно подключить include и libs, гуглил очень много и пробовал различные вариации, остановился на таком варианте: sed ‘s|^# LOOKUP_INCLUDE.*$|LOOKUP_INCLUDE=-I/usr/include/postgresql|’ | \ sed ‘s|^# LOOKUP_LIBS.*$|LOOKUP_LIBS=-L /usr/lib/postgresql|’ | \ делаю makepkg и получаю вот такое сообщение(вырезал кусок): gcc -o exim lookups/lookups.a(pgsql.o): In function `pgsql_tidy': pgsql.c:(.text+0x1dc): undefined reference to `PQfinish' lookups/lookups.a(pgsql.o): In function `perform_pgsql_search': pgsql.c:(.text+0x464): undefined reference to `PQsetdbLogin' pgsql.c:(.text+0x46e): undefined reference to `PQstatus' pgsql.c:(.text+0x493): undefined reference to `PQerrorMessage' pgsql.c:(.text+0x4b0): undefined reference to `PQfinish' pgsql.c:(.text+0x4ca): undefined reference to `PQsetClientEncoding' pgsql.c:(.text+0x4e2): undefined reference to `PQsetNoticeProcessor' pgsql.c:(.text+0x53b): undefined reference to `PQexec' pgsql.c:(.text+0x546): undefined reference to `PQresultStatus' pgsql.c:(.text+0x564): undefined reference to `PQcmdTuples' pgsql.c:(.text+0x5b7): undefined reference to `PQresultStatus' pgsql.c:(.text+0x5bf): undefined reference to `PQresStatus' pgsql.c:(.text+0x5cc): undefined reference to `PQresultErrorMessage' pgsql.c:(.text+0x60f): undefined reference to `PQnfields' pgsql.c:(.text+0x61d): undefined reference to `PQntuples' pgsql.c:(.text+0x691): undefined reference to `PQgetlength' pgsql.c:(.text+0x6ad): undefined reference to `PQgetvalue' pgsql.c:(.text+0x6e9): undefined reference to `PQgetvalue' pgsql.c:(.text+0x70e): undefined reference to `PQfname' pgsql.c:(.text+0x7a6): undefined reference to `PQclear' collect2: ld returned 1 exit status make[1]: *** [exim] Error 1 make[1]: Leaving directory `/var/abs/community/exim/src/exim-4.71/build-Linux-i386' make: *** [all] Error 2 ==> ERROR: Build Failed. Aborting... Связано ли это с неправильным редактирование конфигурации PKGBUILD или у меня не хватает каких-то пакетов в системе я не знаю. Что можете посоветовать? Спасибо за любые ответы! |
amigo |
|
Темы:
35
Сообщения:
2126
Участник с: 05 февраля 2007
|
PKGBUILD полностью приведите, пожалуйста.
Разберемся, голубчик!
|
yar1k |
|
Темы:
4
Сообщения:
10
Участник с: 15 марта 2010
|
Спасибо за внимание! Пока мой пост одобрялся модератором я нашел правильное решение. Для поддержки exim+postgresql добавляем всего 3 строки в файл /var/abs/community/exim/PKGBUILD: sed ‘s|^# LOOKUP_PGSQL=yes|LOOKUP_PGSQL=yes|’ | \ sed ‘s|^# LOOKUP_INCLUDE.*$|LOOKUP_INCLUDE=-I/usr/include/postgresql|’ | \ sed ‘s|^# LOOKUP_LIBS.*$|LOOKUP_LIBS=-L /usr/lib/postgresql -lpq|’ | \ Здесь я выложил полностью PKGBUILD http://dl.dropbox.com/u/1465661/archlin … l/PKGBUILD |