회사일2010. 3. 11. 10:53
겨우겨우 컴파일 해놓고 보니.. 이런 레알 십라 ㄱ-

# vlc
VLC media player 1.0.5 Goldeneye
LibVLC has detected an unusable buggy GNU/libc version.
Please update to version 2.8 or newer.
Aborted

이런건 좀.. 컴파일이나 configure 레벨에서 경고를 하던가 에러를 내던가
경고도 눈에 좀 팍팍들어 오게 하던가!!! ㅠ.ㅠ



..
요즘 대세는 git인가 ㄱ-
예전에 git를 소스로 깔아놓아서 다행.. 안했음 또 삽질삽질 - 무한 삽질!!
[링크 : http://www.gnu.org/software/libc/]

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

SH4 관련 정보  (0) 2010.05.03
oscam - open source CAM  (4) 2010.04.06
인증서 복사하기  (0) 2010.03.04
H.26x MPEG2, MPEG4  (6) 2010.01.19
ERP, SCM, CRM, EIS, MIS, DSS  (0) 2009.12.17
Posted by 구차니
프로그램 사용/VLC2010. 3. 10. 16:28
컴파일 하다보니 요런 에러를 뱉어 주신다.
혹시나 해서 모든 헤더파일을 검색해서 아래와 같은 정의는 Fedora Core 6에도 존재하지 않는다.
도대체.. FC6에서는 VLC도 설치 못하는건가?

아무튼, 아래의 *_SUPER_MAGIC 선언을 포함한 헤더는
/usr/include/linux/magic.h 에 존재해야 하며
/usr/include/magic.h 를 링크한다고 해서 되진않는다.

#ifndef __LINUX_MAGIC_H__
#define __LINUX_MAGIC_H__

#define ADFS_SUPER_MAGIC        0xadf5
#define AFFS_SUPER_MAGIC        0xadff
#define AFS_SUPER_MAGIC                0x5346414F
#define AUTOFS_SUPER_MAGIC      0x0187
#define CODA_SUPER_MAGIC        0x73757245
#define CRAMFS_MAGIC            0x28cd3d45      /* some random number */
#define CRAMFS_MAGIC_WEND       0x453dcd28      /* magic number with the wrong endianess */
#define DEBUGFS_MAGIC          0x64626720
#define SYSFS_MAGIC             0x62656572
#define SECURITYFS_MAGIC        0x73636673
#define SELINUX_MAGIC           0xf97cff8c
#define RAMFS_MAGIC             0x858458f6      /* some random number */
#define TMPFS_MAGIC             0x01021994
#define HUGETLBFS_MAGIC         0x958458f6      /* some random number */
#define SQUASHFS_MAGIC          0x73717368
#define EFS_SUPER_MAGIC         0x414A53
#define EXT2_SUPER_MAGIC        0xEF53
#define EXT3_SUPER_MAGIC        0xEF53
#define XENFS_SUPER_MAGIC       0xabba1974
#define EXT4_SUPER_MAGIC        0xEF53
#define BTRFS_SUPER_MAGIC       0x9123683E
#define HPFS_SUPER_MAGIC        0xf995e849
#define ISOFS_SUPER_MAGIC       0x9660
#define JFFS2_SUPER_MAGIC       0x72b6
#define ANON_INODE_FS_MAGIC     0x09041934

#define MINIX_SUPER_MAGIC       0x137F          /* original minix fs */
#define MINIX_SUPER_MAGIC2      0x138F          /* minix fs, 30 char names */
#define MINIX2_SUPER_MAGIC      0x2468          /* minix V2 fs */
#define MINIX2_SUPER_MAGIC2     0x2478          /* minix V2 fs, 30 char names */
#define MINIX3_SUPER_MAGIC      0x4d5a          /* minix V3 fs */

#define MSDOS_SUPER_MAGIC       0x4d44          /* MD */
#define NCP_SUPER_MAGIC         0x564c          /* Guess, what 0x564c is :-) */
#define NFS_SUPER_MAGIC         0x6969
#define OPENPROM_SUPER_MAGIC    0x9fa1
#define PROC_SUPER_MAGIC        0x9fa0
#define QNX4_SUPER_MAGIC        0x002f          /* qnx4 fs detection */

#define REISERFS_SUPER_MAGIC    0x52654973      /* used by gcc */
                                        /* used by file system utilities that
                                           look at the superblock, etc.  */
#define REISERFS_SUPER_MAGIC_STRING     "ReIsErFs"
#define REISER2FS_SUPER_MAGIC_STRING    "ReIsEr2Fs"
#define REISER2FS_JR_SUPER_MAGIC_STRING "ReIsEr3Fs"

#define SMB_SUPER_MAGIC         0x517B
#define USBDEVICE_SUPER_MAGIC   0x9fa2
#define CGROUP_SUPER_MAGIC      0x27e0eb

#define FUTEXFS_SUPER_MAGIC     0xBAD1DEA

#define STACK_END_MAGIC         0x57AC6E9D

#define DEVPTS_SUPER_MAGIC      0x1cd1
#define SOCKFS_MAGIC            0x534F434B

#endif /* __LINUX_MAGIC_H__ */


[링크 : http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/include/linux/magic.h]

libtool: compile:  gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -DSYS_LINUX -I/usr/local/include -D_FI
LE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=access_fi
le -DMODULE_NAME_IS_access_file -DMODULE_STRING=\"access_file\" -O2 -ffast-math -funroll-loops -fomit-frame-pointer -Wall -Wextra -W
sign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -
Werror-implicit-function-declaration -MT libaccess_file_plugin_la-file.lo -MD -MP -MF .deps/libaccess_file_plugin_la-file.Tpo -c fil
e.c  -fPIC -DPIC -o .libs/libaccess_file_plugin_la-file.o
In file included from ../../include/vlc_common.h:516,
                 from file.c:33:
../../include/vlc_mtime.h:80: warning: 'error' attribute directive ignored
../../include/vlc_mtime.h:90: warning: 'warning' attribute directive ignored
../../include/vlc_mtime.h:108: warning: 'error' attribute directive ignored
file.c: In function 'IsRemote':
file.c:142: error: 'AFS_SUPER_MAGIC' undeclared (first use in this function)
file.c:142: error: (Each undeclared identifier is reported only once
file.c:142: error: for each function it appears in.)
file.c:143: error: 'CODA_SUPER_MAGIC' undeclared (first use in this function)
file.c:144: error: 'NCP_SUPER_MAGIC' undeclared (first use in this function)
file.c:145: error: 'NFS_SUPER_MAGIC' undeclared (first use in this function)
file.c:146: error: 'SMB_SUPER_MAGIC' undeclared (first use in this function)


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

VLC 크로스컴파일 - 멀고도 험하다 ㅠ.ㅠ  (0) 2010.03.17
VLC GLIBC runtime error  (0) 2010.03.16
x264 , libavcodec 다운로드  (0) 2010.02.24
vlc-1.0.5 cross compile  (3) 2010.02.09
VLC cross compile시 오류 (vlc-1.0.4)  (0) 2010.02.03
Posted by 구차니
눈이 와서 그런걸꺼야




그렇게 믿고 싶을뿐 ㄱ-

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

비오는 사무실에서  (4) 2010.03.20
직업병 - 안구인식  (0) 2010.03.17
직장일기 - 20100303  (0) 2010.03.03
일하기 싫어서 미친짓!  (0) 2010.02.24
회사에 나갔다.  (8) 2010.02.21
Posted by 구차니
Linux2010. 3. 9. 18:31
library 디렉토리를 보면
*.so
*.la
파일이 보인다.

so는 shared Object 이고
la는 머의 약자일려나?

2010.03.10 추가
la는 libtool archive ?

3.4 How to create a .la library (a.k.a. a libtool archive)?
[링크 : http://www.kdevelop.org/mediawiki/index.php/FAQ]

아무튼, la 파일은 텍스트 파일로, libtool에 의해서 사용되며,
라이브러리 정보를 포함하고 있다.

# cat /usr/lib/libgpg-error.la
# libgpg-error.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='libgpg-error.so.0'

# Names of this library.
library_names='libgpg-error.so.0.2.1 libgpg-error.so.0 libgpg-error.so'

# The name of the static archive.
old_library='libgpg-error.a'

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

# Version information for libgpg-error.
current=2
age=2
revision=1

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



[링크 : ttp://filext.com/file-extension/LA]

'Linux' 카테고리의 다른 글

glibc는.. 설치시 매~~~우 주의를 요합니다 ㄱ-  (0) 2010.03.11
glibc 컴파일하기  (0) 2010.03.11
fribidi - Unicode BIDIrectional Algorithm  (0) 2010.03.09
chkconfig  (0) 2010.03.06
ltrace, strace  (0) 2010.03.06
Posted by 구차니
핸드폰등의 기기를 네트워크가 안되는 녀석의 모뎀인것 처럼 사용하는 기술을 테더링이라고 한다.
USB 꼽으면 CDMA modem 이라고 나오는데
굳이 CDMA 가 아니더라도 , wifi 형태의 공유기 처럼 작동할수도 있는거고
블루투스로 무선랜 공유기가 될수도 있는거고

머.. 이렇고 그렇고 그런거 인듯

A user of a laptop, PDA or other data device that lacks a wireless card may use tethering to gain access to the Internet. Although tethering is often a simple process, in some countries it may void a phone's warranty or violate the terms of a cellular service plan.

누굴 위한 법일까..

[링크 : http://ko.wikipedia.org/wiki/테더링]
[링크 : http://en.wikipedia.org/wiki/Tethering]
[링크 : http://media.daum.net/digital/view.html?cateid=100031&newsid=20100309103905451&p=inews24]

'이론 관련 > 네트워크 관련' 카테고리의 다른 글

FEC - Forwarding equivalence class  (0) 2015.01.09
CIDR - Classless Inter-Domain Routing  (0) 2013.08.07
802.11n 108Mbps 150Mbps  (0) 2012.12.22
whois  (0) 2011.05.23
IP address 구역  (2) 2011.05.23
Posted by 구차니
Linux2010. 3. 9. 18:18
GNU FriBidi is an implementation of the Unicode Bidirectional Algorithm (bidi).

fri는 free의 말장난인가?
아무튼, bidi는 양방향의미라는데 음.. 유니코드를 양방향으로 라니.. 무슨 의미일려나?

The latest stable release in the 0.10 series is fribidi-0.10.9.tar.gz (md5sum, signed by Behdad Esfahbod) from August 9, 2007. This release is based on Unicode 5.0.0 character database.

2바이트를 1바이트로(예를들면 ISO-8859?)
1바이트를 2바이트로 변환해주는 녀석인가?

[링크 : http://fribidi.org/]

'Linux' 카테고리의 다른 글

glibc 컴파일하기  (0) 2010.03.11
*.la 파일 - libtool  (0) 2010.03.09
chkconfig  (0) 2010.03.06
ltrace, strace  (0) 2010.03.06
bash 환경설정 - 모든 유저를 한번에 설정하기  (0) 2010.03.04
Posted by 구차니
영화 2012를 보면
언론에서야 아니라고 하지만, 실제로는 뒤에서 인류생존계획을 발동하는 모습이 보이는데
이것의 영향일까.. 사람들이 과학자들이 아니라고 발표해도 안믿기 시작했다.


언론의 조작을 받지않게 된건 좋은것 일수도 있지만,
역설적으로 이러한 2중 트릭일 가능성은 없을려나?

아무튼, 문득 2012년 지구가 망하면 좋겠다라는 생각은 하면서도
이러한 공포는 무지에서 온게 아닐까 생각이 된다.


가정 1. 예전에도 이런 지진은 많았지만 언론에 많이 나오지 않았었기에 우리가 몰랐다
가정 2. 지진은 많이 났었지만, 인간 비거주 지역에(예를들어 바다) 났었다.


머.. 솔찍히 어느쪽이든지 간에,
인간이라는 종이 멸종한다고 해서 세상의 멸망이라는 편협한 생각이란..
인류가 망하는게 섭리라면 망해야지 머
돈 많아서 살아남는 인류가 제 2의 인류가 되는 그런 우울한 시나리오 따윈 ㄱ-

[링크 : http://media.daum.net/digital/view.html?cateid=1042&newsid=20100309021106388&p=newsis]
Posted by 구차니
회사일/STLinux2010. 3. 9. 15:55
pkg-config는 라이브러리의 컴파일 당시 옵션이나
링킹시 필요한 옵션을 알려주는 역활을 하는 녀석이라고 한다.

아무튼 pkg-config가 존재하지 않는 시스템에서(예를 들어 STLinux Target)
vlc를 컴파일하려고 하니 에러가 발생한다(Fedora Core 6에는 존재한다.)

이러니 별별 변수를 다 쓰고
/usr/local/lib/pkg-config/*.pc
파일까지 복사해줘도 안되지 ㄱ-

vlc 컴파일 옵션중
# ./configure --help | grep AVCODEC
  AVCODEC_CFLAGS
              C compiler flags for AVCODEC, overriding pkg-config
  AVCODEC_LIBS
              linker flags for AVCODEC, overriding pkg-config
이녀석을 설정해도 안되고,
컴파일 시에도 이러한 에러가 나오지만 무시하고 넘어간다.
checking pkg-config is at least version 0.9.0... ./configure: line 23831: pkg-config: command not found
no

중요한건
혹시 모를
PKG_CONFIG_PATH 경로를 확인해야 한다는 점이다.
FC6에서는 /usr/local/lib/pkgconfig 였는데
타겟에서는 /lib/pkgconfig 였다 ㄱ-

pkg-config is a helper tool used when compiling applications and libraries. It helps you insert the correct compiler options on the command line so an application can use  gcc -o test test.c `pkg-config --libs --cflags glib-2.0`  for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance.

[링크 : http://pkg-config.freedesktop.org/wiki/]

[링크 : http://pkgconfig.freedesktop.org/releases/]
          pkg-config-0.23.tar.gz    16-Jan-2008 14:54     1.0M
[링크 : http://forum.videolan.org/viewtopic.php?f=2&t=68869]
[링크 : http://kldp.org/node/47612]
Posted by 구차니
프로그램 사용/vi2010. 3. 9. 12:19
원타임 종료 라고 하면 먼가 있어 보일려나? ^^;

아무튼 여러개 문서를 열어 놓을 경우

:qa
:q all

하면 한번에 종료가 된다.

[링크 : http://www.ilug.or.kr/?mid=lec_tip&page=3&document_srl=42573]
Posted by 구차니
회사일/STLinux2010. 3. 8. 17:22
STLinux2.2에서 크로스 컴파일을 시도하는데
sh4-linux-gcc -DHAVE_AV_CONFIG_H -I. -I"/home/morpheuz/st7109/target_ori/root/ffmpeg" --sysroot=/home/morpheuz/st7109/target_ori -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-tree-vectorize        -MMD -MF ffserver.d -MT ffserver.o -c -o ffserver.o ffserver.c

libavcodec/vorbis_dec.c:1409: warning: no previous prototype for 'vorbis_inverse_coupling'
libavcodec/vorbis_dec.c: In function 'vorbis_decode_init':
libavcodec/vorbis_dec.c:575: warning: 'book_idx' is used uninitialized in this function
libavcodec/vorbis_dec.c:998: internal compiler error: in schedule_insns, at sched-rgn.c:2605
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:https://bugzilla.stlinux.com> for instructions.
make: *** [libavcodec/vorbis_dec.o] Error 1 
요런 에러가 발생한다.

물론, 컴파일도 제대로 완료되지 못하고 결과물도 생성되지 않는다.
버그리폿하려다가 그냥 STLinux2.3에 들어있는 sh4-linux-gcc로 하니 문제없이 해결!

뭥미? ㄱ-




아무튼, PATH 변수의 경로를 바꾸는 법이 있다지만, 귀차니즘으로 인해
config.mak 파일의 CC= AS= 등에
전부 절대경로로 바꾸어 넣어주었다.

# ./configure --enable-shared --target-os=linux --arch=sh4 --cross-prefix=sh4-linux- --enable-cross-compile

# vi config.mak
CC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AS=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
LD=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
DEPCC=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-gcc
AR=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ar
RANLIB=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-ranlib
STRIP=/opt/STM/STLinux-2.3/devkit/sh4/bin/sh4-linux-strip

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

glibc 타겟보드 컴파일  (2) 2010.03.15
VLC 와 pkg-config  (0) 2010.03.09
python 2.5.4 컴파일시 bzip 에러  (0) 2010.02.25
python2.4 on STLinux with google api(gdata)  (0) 2010.02.23
cross compiled python2.4 on STLinux2.3  (2) 2010.02.23
Posted by 구차니