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 6484 게시물 읽기
No. 6484
컴파일 방법?
작성자
신인식(ssik425)
작성일
2005-12-19 18:46
조회수
3,347

- postgresql의 api를 이용해서 c언어로 제작된 App를 static으로 컴파일 해보고 있습니다. so로 했더니 문제가 좀 있어서리..

당근 -static 옵션만 주면 될줄 알고 해봤는데 이런.. 안되네요.. 뭔가 다른게 있나싶어..

 

찾아봐도 별다른 얘기는 없구.. 답답하네요..

 

libpq를 이용해서 static으로 컴파일 해보신분 계신가요?

 

환경은 Postgresql 8.0 버전이 설치되어 있고 Fedora.4.0 입니다.

 

에러는 다음과 같습니다. 일부분 입니다. 너무 많이 나오네요.. ㅠ.ㅠ

 

/usr/src/build/565044-i386/BUILD/postgresql-8.0.3/src/interfaces/libpq/thread.c:104: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/libpq.a(ip.o)(.text+0x2be): In function `getaddrinfo_all':
/usr/src/build/565044-i386/BUILD/postgresql-8.0.3/src/interfaces/libpq/ip.c:79: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
netio.a(netio.o)(.text+0x6c2): In function `connect2addr':
netio.c: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

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

정확하지는 않지만 컴파일이 잘못 되었거나 shared library path가 잘 못 되어서 glibc를 찾지 못하는 것 같습니다.

OS 문제일 수도 있을 것 같네요.

좌우간... 메세지를 보면 glibc를 찾지 못한다는 에러들이네요.

박성철(gyumee)님이 2005-12-20 01:16에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
6488쿼리문 예상치 않은 결과가 나오네요. -ㅁ-;; [3]
KSH
2005-12-21
2835
6487DB 설계관련 꼭좀 알려주세요 [1]
김지호
2005-12-20
3104
6485pg_dumall로 백업된 파일에서 특정 DB만 복구하는 방법 [2]
dba
2005-12-20
3498
6484컴파일 방법? [1]
신인식
2005-12-19
3347
64827.3.2 (unicode) 에서 8.0.3 으로 업그레이드 시 한글문제 [2]
롱다리
2005-12-17
2655
6481배포프로그램에 postgresql을포함하고싶읍니다 [1]
초보
2005-12-16
2537
6480PITR에 대해.. [2]
백진수
2005-12-16
3202
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.017초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다