메뉴 건너뛰기

조회 수 10744 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

[문제점]

php 5.2.17 configure 진행 후 make 진행시에 오류가 발생했음

/usr/local/src/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type

    ret = buf->buffer->use;

                     ^

In file included from /usr/local/src/php-5.2.17/main/php.h:38:0,

                 from /usr/local/src/php-5.2.17/ext/dom/node.c:26:

/usr/local/src/php-5.2.17/ext/dom/node.c:1955:40: error: dereferencing pointer to incomplete type

     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);

                                        ^

/usr/local/src/php-5.2.17/Zend/zend_API.h:472:14: note: in definition of macro ‘ZVAL_STRINGL’

   char *__s=(s); int __l=l; \

              ^

/usr/local/src/php-5.2.17/ext/dom/node.c:1955:5: note: in expansion of macro ‘RETVAL_STRINGL’

     RETVAL_STRINGL((char *) buf->buffer->content, ret, 1);

make: *** [ext/dom/node.lo] 오류 1


참고 블로그 : https://github.com/phpbrew/phpbrew/issues/492

Patch File Download : https://code.google.com/p/php52-backports/issues/detail?id=16


[해결 방법]

패치 파일 다운로드 후 php 소스 파일과 같은 경로로 이동. 적용

# patch -p0 < ./libxml29_compat.patch 

(Stripping trailing CRs from patch; use --binary to disable.)

patching file ext/dom/node.c

Hunk #1 succeeded at 1950 (offset 55 lines).

(Stripping trailing CRs from patch; use --binary to disable.)

patching file ext/dom/documenttype.c

Hunk #1 succeeded at 215 (offset 10 lines).

(Stripping trailing CRs from patch; use --binary to disable.)

patching file ext/simplexml/simplexml.c

Hunk #1 succeeded at 1343 (offset -74 lines).


List of Articles
번호 제목 날짜 조회 수
117 rsync 와 ssh 를 이용한 네트워크 백업하기 2014.02.27 7747
116 rsync ssh를 이용한 서버 백업 2016.03.18 9006
115 root 계정 su 명령 제한 file 2023.01.20 136
114 Root Disk를 Mirroring하는 방법 2016.07.22 8410
113 Rocky Linux 8에 docker 설치하기 file 2024.04.23 0
112 rdate명령어 사용법과 옵션 file 2017.11.22 6300
111 qmail 587 포트 추가 2014.03.26 7388
110 Proftp 설치 2014.03.26 7022
109 php_screw를 이용한 php 소스 암호화 하기 2019.02.14 1420
108 php_fpm 관련 자료 2017.09.20 5318
107 PHPIZE를 이용한 openSSL PHP 확장 모듈 설치 2016.09.11 8063
106 php.ini 파일에서 timezone 설정 2015.07.16 7754
105 php-mbstring 설치 2015.07.16 7776
104 PHP-5.3 이상 Zend 설치 2015.07.30 8698
» php-5.2.17 make시에 오류 발생 make: *** [ext/dom/node.lo] 오류 1 2016.03.18 10744
102 php 리다이렉트 2016.03.18 8302
101 php sockets 동적 모듈 설치 ( php socket ) 2016.03.18 8324
100 php http include 2016.03.18 7685
99 OpenSSH chroot 설정 file 2014.02.27 8742
98 Nikto - 웹 취약점 스캐너 도구 file 2016.04.22 9232
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved