'glibc'에 해당되는 글 3건

  1. 2010.03.17 VLC 크로스컴파일 - 멀고도 험하다 ㅠ.ㅠ
  2. 2010.03.15 glibc 타겟보드 컴파일 2
  3. 2010.03.11 glibc 컴파일하기
프로그램 사용/VLC2010. 3. 17. 14:38
build server는 Fedora Core6를 쓰고  glibc2.5를 사용한다.
그리고 target 역시 glibc2.5를 사용한다.


그런데.. vlc-1.0.5는 glibc2.5-2.8은 thread-safe 하지 않다고 거부한다 ㄱ-

아래와 같은 에러가 발생하는데
libtool: link: warning: library `/opt/STM/STLinux-2.2/devkit/sh4/target/usr/lib/libdbus-1.la' was moved.
...
../src/.libs/libvlc.so: undefined reference to `__vasprintf_chk'
../src/.libs/libvlc.so: undefined reference to `__asprintf_chk'
collect2: ld returned 1 exit status
내가 사용하는 타켓의 경로도 아니고.
묘한 곳에서 묘한 녀석을 링킹하면서 에러를 발생한다.

간단한 해결책이라고 생각했던 녀석으로
위의 la 파일의 libdir 변수를 수정해도 libtool: link: warning 하나만 사라질뿐 여전히 컴파일은 되지 않는다.
# libdbus-1.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.5.10 (1.1220.2.130 2004/09/19 12:13:49)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='libdbus-1.so.2'

# Names of this library.
library_names='libdbus-1.so.2.0.0 libdbus-1.so.2 libdbus-1.so'

# The name of the static archive.
old_library='libdbus-1.a'

# Libraries that this one depends upon.
dependency_libs='-lnsl'

# Version information for libdbus-1.
current=2
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/usr/lib'

그리고 지뢰밭을 피하는 방법으로 자주 검색되던 아래의 글역시
결과적으로 모든 la 파일의 내용을 변경해주어야 하는 번거로움이 생긴다.

[링크 : http://www.metastatic.org/text/libtool.html]

그런데, 저 wasprintf 가 머하는 녀석인가 검색을 해봤더니
glibc2.8에서 지원하는 함수라고 한다. 현재 사용하는건 2.5 버전이니 당연히 저런 함수가 존재할리 없고
그런 이유로 glibc를 업그레이드 하기 전에는 딱히 방법이 없어 보인다.

[링크 : http://infomaru.com/?mid=os_linux_basic&listStyle=gallery&document_srl=6197]

'프로그램 사용 > VLC' 카테고리의 다른 글

x264 와 h264의 관계?  (0) 2010.04.15
VLC nightly build  (0) 2010.04.13
VLC GLIBC runtime error  (0) 2010.03.16
VLC 1.0.5 컴파일시 magic.h 오류  (0) 2010.03.10
x264 , libavcodec 다운로드  (0) 2010.02.24
Posted by 구차니
회사일/STLinux2010. 3. 15. 11:32
STLinux2.3용 타겟에서 glibc 크로스 컴파일은 안되고
타겟보드에서 직접 컴파일을 시도했다.

음.. 일단 옵션은

./configure --disable-sanity-checks --without-selinux

두가지를 주고 했다.
--disable-sanity-checks 를 하지 않으면
*** On GNU/Linux systems the GNU C Library should not be installed into
*** /usr/local since this might make your system totally unusable.
*** We strongly advise to use a different prefix.  For details read the FAQ.
*** If you really mean to do this, run configure again using the extra
*** parameter `--disable-sanity-checks'.
이런 에러가 발생한다.

원래 sanity check는
Optional Features:
  --disable-sanity-checks really do not use threads (should not be used except
                          in special situations) [default=yes]
thread를 사용하지 않도록 하는 거라는데 음..
/usr/local에 설치하도록 강요하는게 왜 .. 이 옵션일까?




항상 그러하듯 OOM은 어쩔수 없는 ㄱ-
gcc   -nostdlib/-nostarfiles -r -o /ro-t/glibcbuild/libc_pic.vs \
         -Wl,-d -Wl,--whoce-archie /root/glibc/build/lib2_pic.a

# cd glibc/build
# sh4-linux-gcc   -nostdlib -nostartfiles -r -o libc_pic.os \
         -Wl,-d -Wl,--whole-archive libc_pic.a

'회사일 > STLinux' 카테고리의 다른 글

stlinux iso 다운로드  (0) 2011.11.24
VLC 와 pkg-config  (0) 2010.03.09
ffmpeg 크로스컴파일시 오류발생 (STLinux2.2)  (2) 2010.03.08
python 2.5.4 컴파일시 bzip 에러  (0) 2010.02.25
python2.4 on STLinux with google api(gdata)  (0) 2010.02.23
Posted by 구차니
Linux2010. 3. 11. 13:30
이 녀석은 특이하게(?) 도 build 용 디렉토리를 따로 구성해야 한다.
그냥 configure 치면 다음과 같은 에러가 발생한다.

"configure: error: you must configure in a separate build directory"

추천 방법은
# git clone git://sourceware.org/git/glibc.git
# cd glibc
# mkdir build
# cd build
# ../configure
소스를 받고 그 아래와 디렉토리를 만들어 그 곳에서 상위의 configure를 호출하는 것이다.

만약, configure에서 --prefix, --exec-prefix 를 설정해주었다면
make install 시에 그 위치로 설치된다.

하지만, 각종 실행파일의 기본 경로가 --exec-prefix로 고정되서 삽입되는 듯한데 어쩌리오..
# cat Changelog.10
2138 Line
2000-01-04  Ulrich Drepper  <drepper@cygnus.com>

        * Makefile (install): Pass $(install_root) to ldconfig.
        Patch by Akira YOSHIYAMA <yosshy@tkf.att.ne.jp>.

ldconfig 에만 install_root을 넣나본데,
이녀석은 configure에서 설정가능한 항목이 존재하지 않는다.
config.make 파일을 수정해야 하는데, 이값을 넣지 않으면 -prefix 값이 들어가는것으로 생각된다.


[링크 : http://kldp.org/node/39946]
[링크 : http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html#Configuring-and-compiling]

'Linux' 카테고리의 다른 글

MIME + nautilus(GNOME)  (0) 2010.03.15
glibc는.. 설치시 매~~~우 주의를 요합니다 ㄱ-  (0) 2010.03.11
*.la 파일 - libtool  (0) 2010.03.09
fribidi - Unicode BIDIrectional Algorithm  (0) 2010.03.09
chkconfig  (0) 2010.03.06
Posted by 구차니