Jump to content
Sign in to follow this  
kakawkin

Не могу скомпилировать postgresql со своими патчами

Recommended Posts

В общем задача следующая - требуется скачать исходник postgresql, далее требуется засунуть патчи и все это скомпилировать.

Мои шаги были следующи:

1. apt-get source postgresql - скачал исходник postgresql

2. apt-get install pbuilder cdbs - установил pbuilder. Читал что его надо ибо он сам все зависимости скачивет пока ты спокойно отдыхаешь

3. pbuilder create - создал окружени для сборки пакетов

4. pbuilder update - это то, формальность, и новых пакетов конечно-же н нашлось

5. pdebuild - перешол в каталог с исходниками и ввел эту комманду

Все проходит, много бкаф и в самом конце выдает следующее:

Цитата:

In file included from mchar_io.c:1:

mchar.h:7:27: error: unicode/uchar.h: No such file or directory

mchar.h:8:29: error: unicode/ustring.h: No such file or directory

In file included from mchar_io.c:1:

mchar.h:14: error: expected specifier-qualifier-list before 'UChar'

mchar.h:31: error: expected specifier-qualifier-list before 'UChar'

mchar.h:47: error: expected declaration specifiers or '...' before 'UChar'

mchar.h:48: warning: type defaults to 'int' in declaration of 'UChar'

mchar.h:48: error: expected ';', ',' or ')' before '*' token

mchar.h:49: error: expected ')' before '*' token

mchar.h:50: error: expected ')' before '*' token

mchar.h:51: error: expected ')' before '*' token

mchar.h:53: error: expected ')' before '*' token

mchar_io.c: In function 'mchar_strip':

mchar_io.c:69: warning: implicit declaration of function 'u_countChar32'

mchar_io.c:69: error: 'MChar' has no member named 'data'

mchar_io.c:69: error: 'MChar' has no member named 'data'

mchar_io.c:69: error: 'UChar' undeclared (first use in this function)

mchar_io.c:69: error: (Each undeclared identifier is reported only once

mchar_io.c:69: error: for each function it appears in.)

mchar_io.c:73: warning: implicit declaration of function 'U16_FWD_N'

mchar_io.c:73: error: 'MChar' has no member named 'data'

mchar_io.c:73: error: 'MChar' has no member named 'data'

mchar_io.c:74: error: 'MChar' has no member named 'data'

mchar_io.c:80: error: 'MChar' has no member named 'data'

mchar_io.c:81: warning: implicit declaration of function 'u_isspace'

mchar_io.c:81: error: 'MChar' has no member named 'data'

mchar_io.c:84: error: 'MChar' has no member named 'data'

mchar_io.c: In function 'mchar_in':

mchar_io.c:100: error: 'MChar' has no member named 'data'

mchar_io.c:100: error: 'UChar' undeclared (first use in this function)

mchar_io.c:101: error: 'MChar' has no member named 'data'

mchar_io.c:101: error: too many arguments to function 'Char2UChar'

mchar_io.c:102: error: 'MChar' has no member named 'data'

mchar_io.c: In function 'mchar_out':

mchar_io.c:113: error: 'MChar' has no member named 'data'

mchar_io.c:113: error: 'UChar' undeclared (first use in this function)

mchar_io.c:114: error: 'MChar' has no member named 'data'

mchar_io.c:121: warning: implicit declaration of function 'UChar2Char'

mchar_io.c:121: error: 'MChar' has no member named 'data'

mchar_io.c: In function 'mvarchar_in':

mchar_io.c:165: error: 'MVarChar' has no member named 'data'

mchar_io.c:165: error: 'UChar' undeclared (first use in this function)

mchar_io.c:166: error: 'MVarChar' has no member named 'data'

mchar_io.c:166: error: too many arguments to function 'Char2UChar'

mchar_io.c:167: error: 'MVarChar' has no member named 'data'

mchar_io.c:169: error: 'MVarChar' has no member named 'data'

mchar_io.c:169: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mvarchar_out':

mchar_io.c:179: error: 'MVarChar' has no member named 'data'

mchar_io.c:179: error: 'UChar' undeclared (first use in this function)

mchar_io.c:184: error: 'MVarChar' has no member named 'data'

mchar_io.c:184: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mvarchar_strip':

mchar_io.c:195: error: 'MVarChar' has no member named 'data'

mchar_io.c:195: error: 'MVarChar' has no member named 'data'

mchar_io.c:195: error: 'UChar' undeclared (first use in this function)

mchar_io.c:199: error: 'MVarChar' has no member named 'data'

mchar_io.c:200: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mvarchar':

mchar_io.c:210: error: 'MVarChar' has no member named 'data'

mchar_io.c:210: error: 'MVarChar' has no member named 'data'

mchar_io.c:210: error: 'UChar' undeclared (first use in this function)

mchar_io.c: In function 'mvarchar_mchar':

mchar_io.c:237: error: 'MVarChar' has no member named 'data'

mchar_io.c:237: error: 'MChar' has no member named 'data'

mchar_io.c:238: error: 'MVarChar' has no member named 'data'

mchar_io.c:238: error: 'MChar' has no member named 'data'

mchar_io.c:239: error: 'MChar' has no member named 'data'

mchar_io.c:239: error: 'MVarChar' has no member named 'data'

mchar_io.c:239: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mchar_mvarchar':

mchar_io.c:255: error: 'MChar' has no member named 'data'

mchar_io.c:255: error: 'MChar' has no member named 'data'

mchar_io.c:255: error: 'UChar' undeclared (first use in this function)

mchar_io.c:263: error: 'MVarChar' has no member named 'data'

mchar_io.c:265: error: 'MChar' has no member named 'data'

mchar_io.c:267: error: 'MVarChar' has no member named 'data'

mchar_io.c:267: error: 'MChar' has no member named 'data'

mchar_io.c:267: error: 'MChar' has no member named 'data'

mchar_io.c:269: warning: implicit declaration of function 'FillWhiteSpace'

mchar_io.c:269: error: 'MVarChar' has no member named 'data'

mchar_io.c:272: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mchar_send':

mchar_io.c:286: error: 'MChar' has no member named 'data'

mchar_io.c:286: error: 'UChar' undeclared (first use in this function)

mchar_io.c:287: error: 'MChar' has no member named 'data'

mchar_io.c:293: error: 'MChar' has no member named 'data'

mchar_io.c:297: error: 'white' undeclared (first use in this function)

mchar_io.c: In function 'mchar_recv':

mchar_io.c:322: error: 'MChar' has no member named 'data'

mchar_io.c:323: error: 'MChar' has no member named 'data'

mchar_io.c:326: error: 'MChar' has no member named 'data'

mchar_io.c: In function 'mvarchar_send':

mchar_io.c:338: error: 'MVarChar' has no member named 'data'

mchar_io.c:338: error: 'UChar' undeclared (first use in this function)

mchar_io.c:342: error: 'MVarChar' has no member named 'data'

mchar_io.c: In function 'mvarchar_recv':

mchar_io.c:362: error: 'MVarChar' has no member named 'data'

mchar_io.c:363: error: 'MVarChar' has no member named 'data'

mchar_io.c:365: error: 'MVarChar' has no member named 'data'

make[3]: *** [mchar_io.o] Error 1

make[3]: Leaving directory `/tmp/buildd/postgresql-8.4-18.4.4-ailant/contrib/mchar'

make[2]: *** [all] Error 2

make[2]: Leaving directory `/tmp/buildd/postgresql-8.4-18.4.4-ailant/contrib'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/tmp/buildd/postgresql-8.4-18.4.4-ailant'

make: *** [debian/stamp-makefile-build] Error 2

dpkg-buildpackage: error: debian/rules build gave error exit status 2

E: Failed autobuilding of package

I: unmounting dev/pts filesystem

I: unmounting proc filesystem

I: cleaning the build env

I: removing directory /var/cache/pbuilder/build//26103 and its subdirectories

В чем проблема не подскажите конкретно ?

P.S. В убунте не слишком давно - но малые знания delphi 7 подсказывают что фаил mchar_io.c устарел и не имеет инекоторых идентификаторов/переменных и именно по этому его стоит обновить, но возможно я и ошибаюсь

Просто в чем проблема то - собирается не в системе самой а в окружении, т.е. невозможно управлять тем какие пакеты находятся ибо он сам их докачивает.

А в системе я собирать пробовал - собирается 1 пакет, устанавливается - и эффекта ноль вообще(

Share this post


Link to post
Share on other sites
В общем задача следующая - требуется скачать исходник postgresql, далее требуется засунуть патчи и все это скомпилировать.

Мои шаги были следующи:

1. apt-get source postgresql - скачал исходник postgresql

2. apt-get install pbuilder cdbs - установил pbuilder. Читал что его надо ибо он сам все зависимости скачивет пока ты спокойно отдыхаешь

3. pbuilder create - создал окружени для сборки пакетов

4. pbuilder update - это то, формальность, и новых пакетов конечно-же н нашлось

5. pdebuild - перешол в каталог с исходниками и ввел эту комманду

Все проходит, много бкаф и в самом конце выдает следующее:

Цитата:

In file included from mchar_io.c:1:

mchar.h:7:27:
error: unicode/uchar.h: No such file or directory

mchar.h:8:29: error: unicode/ustring.h: No such file or directory

Вот проблема.

Share this post


Link to post
Share on other sites

это я понял. Это из-за нехватки одного пакета - НО!

1. Собирая в самой убунте - 1 пакет токо и всё, и то нрабочий.

2. Pbuilder - он распаковывает "чистую систему", устанавивает пакет и делает на основе новых появившихся файлов пакеты.

Т.е. единственный выход - как-то изменить состав этого окружения чтобы там присутствовали эти пакеты.

Не подскажите как сделать так грамотно ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...