FREEDOM. FRIENDS. FEATURES. FIRST.
페도라 한국 사용자 모임

컴파일 에러..

게시판 질문게시판 컴파일 에러..

  • This topic has 4개 답변, 4명 참여, and was last updated 10 years, 10 months 전에 by robinkim. This post has been viewed 18 times
  • 만든이
    게시글
  • #13209
    robinkim
    참가자
    • 게시글4
    • 댓글2
    • 총합6
    • ★★
    @robinkim82

    안녕하세요.

     

    컴파일하다가 에러가 나서 이렇게 질문글 올립니다.

     

    kaffe라는 자바vm프로그램을 크로스컴파일해서 arm보드에 올리는 작업중인데요.

     

    아직 리눅스에는 문외한이라 정확한 문제를 모르겠네요..;;;

     

    아래는 크로스컴파일중에 생긴 에러입니다. 물론 호스트PC에는 정상적으로 컴파일이 되어서 설치를 하였습니다.

     

    아래에서 .so 하고 .la의 파일형식은 무엇인가요?

     

    그리고 아래에서 libgconfpeer.so란 파일을 못찾아서 나는 에러인가요?

     

    답변부탁드립니다~

     

     

    Making all in java-util
    make[5]: Entering directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni/java-util'
    /bin/sh ../../../libtool --tag=CC   --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I../../../include  -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib  -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -MT java_util_VMTimeZone.lo -MD -MP -MF .deps/java_util_VMTimeZone.Tpo -c -o java_util_VMTimeZone.lo java_util_VMTimeZone.c
    mkdir .libs
     arm-linux-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -MT java_util_VMTimeZone.lo -MD -MP -MF .deps/java_util_VMTimeZone.Tpo -c java_util_VMTimeZone.c  -fPIC -DPIC -o .libs/java_util_VMTimeZone.o
    mv -f .deps/java_util_VMTimeZone.Tpo .deps/java_util_VMTimeZone.Plo
    /bin/sh ../../../libtool --tag=CC   --mode=link arm-linux-gcc -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Wstrict-prototypes -pedantic -Werror -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -module -version-info 0:0:0 -no-undefined  -o libjavautil.la -rpath /usr/local/rg/jre/lib/arm java_util_VMTimeZone.lo 
    arm-linux-gcc -shared  .libs/java_util_VMTimeZone.o   -pthread -Wl,-soname -Wl,libjavautil.so.0 -o .libs/libjavautil.so.0.0.0
    (cd .libs && rm -f libjavautil.so.0 && ln -s libjavautil.so.0.0.0 libjavautil.so.0)
    (cd .libs && rm -f libjavautil.so && ln -s libjavautil.so.0.0.0 libjavautil.so)
    creating libjavautil.la
    (cd .libs && rm -f libjavautil.la && ln -s ../libjavautil.la libjavautil.la)
    make[5]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni/java-util'
    Making all in gconf-peer
    make[5]: Entering directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni/gconf-peer'
    /bin/sh ../../../libtool --tag=CC   --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I../../../include  -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib  -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Werror -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -MT GConfNativePeer.lo -MD -MP -MF .deps/GConfNativePeer.Tpo -c -o GConfNativePeer.lo GConfNativePeer.c
    mkdir .libs
     arm-linux-gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Werror -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -MT GConfNativePeer.lo -MD -MP -MF .deps/GConfNativePeer.Tpo -c GConfNativePeer.c  -fPIC -DPIC -o .libs/GConfNativePeer.o
    mv -f .deps/GConfNativePeer.Tpo .deps/GConfNativePeer.Plo
    /bin/sh ../../../libtool --tag=CC   --mode=link arm-linux-gcc -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Werror -DORBIT2=1 -pthread -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -Wall -W -Wextra -fno-strict-aliasing -fno-omit-frame-pointer -fsigned-char -pthread -g -O2 -module -version-info 0:0:0 -no-undefined -lgconf-2 -lglib-2.0   -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -avoid-version  -o libgconfpeer.la -rpath /usr/local/rg/jre/lib/arm GConfNativePeer.lo ../../../native/jni/classpath/native_state.lo ../../../native/jni/classpath/jcl.lo
    arm-linux-gcc -shared  .libs/GConfNativePeer.o ../../../native/jni/classpath/.libs/native_state.o ../../../native/jni/classpath/.libs/jcl.o  -lgconf-2 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0  -pthread -pthread -Wl,-soname -Wl,libgconfpeer.so -o .libs/libgconfpeer.so
    /opt/iwmmxt-1.0.0/lib/gcc/arm-linux/3.4.3/../../../../arm-linux/bin/ld: cannot find -lgconf-2
    collect2: ld returned 1 exit status
    make[5]: *** [libgconfpeer.la] ?오류 1
    make[5]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni/gconf-peer'
    make[4]: *** [all-recursive] ?오류 1
    make[4]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native/jni'
    make[3]: *** [all-recursive] ?오류 1
    make[3]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath/native'
    make[2]: *** [all-recursive] ?오류 1
    make[2]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib/external/classpath'
    make[1]: *** [all-recursive] ?오류 1
    make[1]: Leaving directory `/root/kaffe/kaffe-1.1.8/libraries/javalib'
    make: *** [all-recursive] ?오류 1
    [root@localhost kaffe-1.1.8]#

3 답변 글타래를 보이고 있습니다
  • 글쓴이
    답변
    • #14655
      ELem
      참가자
      • 게시글67
      • 댓글672
      • 총합739
      • ★★
      @Bardisch

      so파일은 Shared Object라고 대략 Windows의 DLL이랑 비슷하다고 보시면 될 듯 합니다.
      la파일은 GNU Libtool 파일입니다. http://filext.com/file-extension/LA 여기 참조하세요..

      ARM쪽으로 컴파일하는건 잘 모르겠네요 흑...
      (그러고보니 전에 아는 형이 iPod Touch에 데비안 깔고 ARM으로 아파치 돌린다고 컴파일해대고 의존성 잡아대고 했던게 기억나네요 ㅎㄷㄷ;;)

    • #14656
      태랑
      키 마스터
      • 게시글207
      • 댓글878
      • 총합1085
      • ★★
      @admin

      어지러운 에러메세지들 ㅎㄷㄷ

      오픈소스를 응원합니다 Blog https://hoing.io
      Senior Database Administrator(Mysql, Oracle)

      사이트 이용 문의 사항은 댓글이나 admin@fedoralinux.or.kr 로 메일주세요

    • #14657
      enshahar
      참가자
      • 게시글2
      • 댓글1
      • 총합3
      • ★★
      @parresia

      -lgconf-2로 라이브러리를 링크하려고 하는데 gconf-2.a가 라이브러리 검색 경로 안에 없어서 생긴 에러입니다.

      호스트머신에서는 아마도 gconf-2가 기본으로 깔려 있겠지만, 타겟(암)에서는 없을겁니다.

      gconf-2를 타겟에 맞춰 컴파일하거나 gconf-2의 암 바이너리를 찾아서 툴체인에서 찾을 수 있게 설정을 해주시거나,

      gconf-2 소스를 받아서 해당 소스파일들을 프로젝트에 따로 포함시키고, makefile을 수정해서 사용해주셔야 할 것입니다.

    • #14658
      robinkim
      참가자
      참가자
      • 게시글4
      • 댓글2
      • 총합6
      • ★★
      @robinkim82

      Bardisch님, 태랑님, enshahar님 답변 감사드립니다~

3 답변 글타래를 보이고 있습니다
  • 답변은 로그인 후 가능합니다.