so화일의 버젼 naming convention
글쓴이: funky4u / 작성시간: 수, 2003/11/05 - 8:35오후
현재 폰트엔진인 freetype이 2.1.5까지 나와 있는걸로 아는데
(http://sourceforge.net/project/showfiles.php?group_id=3157)
제 리눅세에 있는 freetype의 so화일은 아래와 같습니다.
libfreetype.so.6.3.1
6.3.1의 의미가 무엇인가요?
so file에서 version naming규칙이 궁금합니다.
Forums:
Re: so화일의 버젼 naming convention
보통 major.minor.patch-level 식으로 사용합니다.
흔히 RPM과 같이 의존성을 체크하기 위한 용도로 사용됩니다.
버전 숫자 정하는 부분은 찾아보면 문서화된 규칙이 있을 법도 하지만,
그런 것 없이도 ls -al /usr/lib 해보면 대강 감이 오지 않나요?
----
http://nohmad.tumblr.com/
일반적으로 package 를 발표하는 버전과 shared object의
일반적으로 package 를 발표하는 버전과 shared object의 버전은 다를 수 있습니다.
shared object의 버전은 호환성때문에 도입된것입니다.
정확히는 shared object의 파일명에 붙어 있는 것이 버전이 아니라, elf file 내에 기록된 SONAME 이라는 것이 버전이 됩니다.
objdump -p /lib/libc.so.6
readelf -V /lib/libc.so.6
따라서, 아무리 파일명을 바꾸어도 그것이 버전하고는 상관없음을 알 수 있습니다. 단지 구별하기 쉽게하기 위해 넣는 것일 뿐입니다.
아뭏든, 패키지 버전과 so 버전은 다를 수 있습니다.
---
http://coolengineer.com
조금 더 말씀드리면...공유라이브러리의 name은 세가지가 있습니
조금 더 말씀드리면...
공유라이브러리의 name은 세가지가 있습니다.
soname과 realname 그리고 linker name(program library howto에 나오는 명칭) 입니다.
libfreetype.so.6.3.1 파일은 realname 입니다.
libfreetype.so.6 는 soname이며 이는 realname을 가리키는 symbolic link입니다.
soname은 라이브러리의 인터페이스 변경시에 증가되는 버전넘버인 major version number만을 포함합니다.
soname을 elf에 넣으려면, 라이브러리 제작시에 링크옵션으로 -soname=libfreetype.so.6 이렇게 지정하면 됩니다.
libfreetype.so 는 linker name이며 대부분 soname을 가리키는 symbolic link 입니다.
우리 모두 리얼리스트가 되자. 그러나 가슴에 이룰 수 없는 꿈을 가지자
댓글 달기