- 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
|