database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 10028 게시물 읽기
No. 10028
postgresql 컴파일 시 config.log 내용 좀 봐주세요
작성자
모모와도도
작성일
2019-01-04 12:24ⓒ
2019-01-04 12:26ⓜ
조회수
5,760

 

환경정보 : google cloud platform VM 인스턴스 CentOS 6.10 , PostgreSQL 9.5.6
 

다음과 같이 설치 시 오류없이 완료되나 생성된 config.log 파일을 error 메시지로 그랩하면 다음과 같은 메시지가 출력 됩니다.

주로 conftest 관련 오류메시지 인데요. 해당 메시지가 발생하는 원인 과 해결방법이 있을까요?

yum install gettext.x86_64 (gettext-devel.x86_64)
yum install devtoolset-6-systemtap-sdt-devel.x86_64
yum install zlib-devel readline-devel tcl-devel perl-devel python-devel \
pam-devel openldap-devel openssl-devel libxml2-devel \
libxslt-devel uuid-devel perl-ExtUtils-Embed
 
 
cd /pgsql
./configure \
   --prefix=/opt/pgsql \
   --enable-nls=ko \
   --with-tcl \
   --with-perl \
   --with-python \
   --with-gssapi \
   --with-pam \
   --with-ldap \
   --with-openssl \
   --with-ossp-uuid \
   --with-libxml \
   --with-libxslt \

 

 

 

conftest.c:23: error: (Each undeclared identifier is reported only once

conftest.c:23: error: for each function it appears in.)

conftest.c:23: error: expected ';' before 'me'

conftest.c:23: error: 'choke' undeclared (first use in this function)

conftest.c:23: error: (Each undeclared identifier is reported only once

conftest.c:23: error: for each function it appears in.)

conftest.c:23: error: expected ';' before 'me'

cc1: error: unrecognized command line option "-fexcess-precision=standard"

cc1: error: unrecognized command line option "-Wunused-command-line-argument"

conftest.c:18:28: error: ac_nonexistent.h: No such file or directory

conftest.c:18:28: error: ac_nonexistent.h: No such file or directory

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

conftest.c:68:20: error: atomic.h: No such file or directory

conftest.c:35:20: error: atomic.h: No such file or directory

conftest.c:69:17: error: dld.h: No such file or directory

conftest.c:36:17: error: dld.h: No such file or directory

conftest.c:69:22: error: fp_class.h: No such file or directory

conftest.c:36:22: error: fp_class.h: No such file or directory

conftest.c:70:20: error: ieeefp.h: No such file or directory

conftest.c:37:20: error: ieeefp.h: No such file or directory

conftest.c:72:22: error: mbarrier.h: No such file or directory

conftest.c:39:22: error: mbarrier.h: No such file or directory

conftest.c:77:23: error: sys/pstat.h: No such file or directory

conftest.c:44:23: error: sys/pstat.h: No such file or directory

conftest.c:82:24: error: sys/sockio.h: No such file or directory

conftest.c:49:24: error: sys/sockio.h: No such file or directory

conftest.c:82:21: error: sys/tas.h: No such file or directory

conftest.c:49:21: error: sys/tas.h: No such file or directory

conftest.c:85:19: error: ucred.h: No such file or directory

conftest.c:52:19: error: ucred.h: No such file or directory

conftest.c:92:23: error: sys/ucred.h: No such file or directory

conftest.c:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'

conftest.c:67: error: 'not' undeclared (first use in this function)

conftest.c:67: error: (Each undeclared identifier is reported only once

conftest.c:67: error: for each function it appears in.)

conftest.c:67: error: expected ';' before 'big'

conftest.c:79: error: invalid application of 'sizeof' to incomplete type 'union semun' 

conftest.c:81: error: expected expression before ')' token

conftest.c:82: error: expected expression before ')' token

conftest.c:85: error: 'struct sockaddr_storage' has no member named '__ss_family'

conftest.c:85: error: 'struct sockaddr_storage' has no member named '__ss_family'

conftest.c:85: error: 'struct sockaddr_storage' has no member named 'ss_len'

conftest.c:85: error: 'struct sockaddr_storage' has no member named 'ss_len'

conftest.c:85: error: 'struct sockaddr_storage' has no member named '__ss_len'

conftest.c:85: error: 'struct sockaddr_storage' has no member named '__ss_len'

conftest.c:85: error: 'struct sockaddr' has no member named 'sa_len'

conftest.c:85: error: 'struct sockaddr' has no member named 'sa_len'

conftest.c:83: error: expected expression before ')' token

conftest.c:112: error: expected expression before ')' token

conftest.c:113: error: expected expression before ')' token

conftest.c:90: error: invalid application of 'sizeof' to incomplete type 'struct cmsgcred' 

conftest.c:88: error: expected expression before ')' token

conftest.c:87: error: expected expression before ')' token

conftest.c:90: error: conflicting types for 'accept'

conftest.c:90: error: conflicting types for 'accept'

conftest.c:94: error: 'wcstombs_l' undeclared (first use in this function)

conftest.c:94: error: (Each undeclared identifier is reported only once

conftest.c:94: error: for each function it appears in.)

conftest.c:95: error: 'wcstombs_l' undeclared (first use in this function)

conftest.c:95: error: (Each undeclared identifier is reported only once

conftest.c:95: error: for each function it appears in.)

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

conftest.c:150: error: 'strlcat' undeclared (first use in this function)

conftest.c:150: error: (Each undeclared identifier is reported only once

conftest.c:150: error: for each function it appears in.)

conftest.c:151: error: 'strlcpy' undeclared (first use in this function)

conftest.c:151: error: (Each undeclared identifier is reported only once

conftest.c:151: error: for each function it appears in.)

conftest.c:121: error: 'F_FULLFSYNC' undeclared (first use in this function)

conftest.c:121: error: (Each undeclared identifier is reported only once

conftest.c:121: error: for each function it appears in.)

conftest.c:151: error: expected expression before ')' token

conftest.c:114:29: error: machine/vmparam.h: No such file or directory

conftest.c:115:22: error: sys/exec.h: No such file or directory

conftest.c:120: error: 'PS_STRINGS' undeclared (first use in this function)

conftest.c:120: error: (Each undeclared identifier is reported only once

conftest.c:120: error: for each function it appears in.)

| /* Override any GCC internal prototype to avoid an error.

configure:12147: checking for strerror

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

| /* Override any GCC internal prototype to avoid an error.

cc1: error: unrecognized command line option "-mthreads"

cc1: error: unrecognized command line option "-fthread-safe"

cc1: error: unrecognized command line option "-mt"

configure:12923: checking for strerror_r

configure:12934: checking whether strerror_r returns int

conftest.c:151: error: conflicting types for 'strerror_r'

/usr/include/string.h:438: note: previous declaration of 'strerror_r' was here

| int strerror_r(int, char *, size_t);

| int strerror_r();

conftest.c:166: error: 'int8' undeclared (first use in this function)

conftest.c:166: error: (Each undeclared identifier is reported only once

conftest.c:166: error: for each function it appears in.)

conftest.c:166: error: 'uint8' undeclared (first use in this function)

conftest.c:166: error: (Each undeclared identifier is reported only once

conftest.c:166: error: for each function it appears in.)

conftest.c:166: error: 'int64' undeclared (first use in this function)

conftest.c:166: error: (Each undeclared identifier is reported only once

conftest.c:166: error: for each function it appears in.)

conftest.c:166: error: 'uint64' undeclared (first use in this function)

conftest.c:166: error: (Each undeclared identifier is reported only once

conftest.c:166: error: for each function it appears in.)

conftest.c:166: error: expected expression before ')' token

conftest.c:168: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'

conftest.c:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'

conftest.c:175: error: '__int128' undeclared (first use in this function)

conftest.c:175: error: (Each undeclared identifier is reported only once

conftest.c:175: error: for each function it appears in.)

conftest.c:175: error: expected ';' before 'c'

conftest.c:176: error: 'a' undeclared (first use in this function)

conftest.c:177: error: 'b' undeclared (first use in this function)

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

conftest.c:180: error: 'd' undeclared (first use in this function)

conftest.c:172: error: '__ATOMIC_SEQ_CST' undeclared (first use in this function)

conftest.c:172: error: (Each undeclared identifier is reported only once

conftest.c:172: error: for each function it appears in.)

conftest.c:172: error: '__ATOMIC_RELAXED' undeclared (first use in this function)

conftest.c:172: error: '__ATOMIC_SEQ_CST' undeclared (first use in this function)

conftest.c:172: error: (Each undeclared identifier is reported only once

conftest.c:172: error: for each function it appears in.)

conftest.c:172: error: '__ATOMIC_RELAXED' undeclared (first use in this function)

conftest.c:167:20: error: intrin.h: No such file or directory

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/nmmintrin.h:31:3: error: #error "SSE4.2 instruction set not enabled"

conftest.c:173:2: error: #error __SSE4_2__ not defined

| #error __SSE4_2__ not defined

Your system has sterror_r();  it does not need strerror().

ac_cv_func_strerror=yes

ac_cv_func_strerror_r=yes

 

이 글에 대한 댓글이 총 4건 있습니다.

autoconf, automake 패키지가 없어서 그런게 아닐까? 추측합니다. 이 패키지들이 설치 되어있지 않다면, 설치하고 다시 해 보세요.

 

김상기(ioseph)님이 2019-01-04 12:54에 작성한 댓글입니다.

autoconf, automake 설치를 하였으나 동일한 오류메시지가 보입니다.

gcc 버전의 문제일거라 생각하고 gcc 버전을 4.4.7 에서 6.X 대로 올렸으나 오히려 gcc 버전 오류가 발생하여 올리지 못했습니다. postgresql 버전별로 지원하는 gcc 버전이 명시된 곳을 찾지 못하고 있는 상황 입니다.

 

모모와도도(zziwhite)님이 2019-01-04 13:11에 작성한 댓글입니다.
이 댓글은 2019-01-04 13:11에 마지막으로 수정되었습니다.

 autoconf 명령으로 configure 파일 다시 만들어서 해보세요

김상기(ioseph)님이 2019-01-07 10:39에 작성한 댓글입니다.

 안타깝게 autoconf 로 진행 시 동일한 문제가 발생 하였습니다.

autoconf 버전 문제로 판단되어 업데이트 후 다시 테스트 해본다는게...다른 일이 있어; 아직까지 진행을 못해보게 되었습니다. ^^;

모모와도도(zziwhite)님이 2019-01-18 14:16에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
10031데이터베이스의 모든 테이블에서 가장 최근 변경이 일어난 시점을 알 수 있을까요? [2]
숀파
2019-01-17
3804
10030C client library libpq 질문이요 [1]
pqpq
2019-01-10
4171
10029pg_restore 시에 archive 쌓이는 부분에 대해서 문의드립니다. [1]
숀파
2019-01-08
3746
10028postgresql 컴파일 시 config.log 내용 좀 봐주세요 [4]
모모와도도
2019-01-04
5760
10027pgadmin4 를 처음 설치하고 실행하는데 에러뜹니다 [3]
JH
2018-12-12
5033
10025CVE-2018-16850 대한 질문입니다. [4]
정종채
2018-11-22
4852
1002410.5 to 11.1 upgrade 문제 버그? [1]
upgrade
2018-11-21
4717
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다