컴파일 에라 메세지가 나와요

noksack의 이미지

안녕하세요
한컴 3.1ftp 버전을 설치했습니다.

일반 메세지를 출력하는 c 프로그램은 컴파일및 실행이 잘 되는데

간단한 echo client/server 소스를 컴파일 하니까...아래와 같은 에라가 납니다.
분명히 다른 리눅스 및 유닉스에서 돌아가는 거고...네트웍프로그래밍 예제소스입니다.

[root@localhost ex]# gcc -o echo_client echo_client.c
In file included from /usr/include/bits/posix1_lim.h126,
from /usr/include/limits.h144,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/limits.h132,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/syslimits.h7,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/limits.h11,
from /usr/include/bits/socket.h31,
from /usr/include/netinet/in.h212,
from /usr/include/arpa/inet.h23,
from echo_client.c10
/usr/include/bits/local_lim.h3626 linux/limits.h 그런 파일이나 디렉토리가
In file included from /usr/include/netinet/in.h212,
from /usr/include/arpa/inet.h23,
from echo_client.c10
/usr/include/bits/socket.h30524 asm/socket.h 그런 파일이나 디렉토리가

어떻게 해야되죠?

hys545의 이미지

noksack wrote:
안녕하세요
한컴 3.1ftp 버전을 설치했습니다.

일반 메세지를 출력하는 c 프로그램은 컴파일및 실행이 잘 되는데

간단한 echo client/server 소스를 컴파일 하니까...아래와 같은 에라가 납니다.
분명히 다른 리눅스 및 유닉스에서 돌아가는 거고...네트웍프로그래밍 예제소스입니다.

[root@localhost ex]# gcc -o echo_client echo_client.c
In file included from /usr/include/bits/posix1_lim.h:126,
from /usr/include/limits.h:144,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/limits.h:132,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-hancom-linux/3.2.3/include/limits.h:11,
from /usr/include/bits/socket.h:31,
from /usr/include/netinet/in.h:212,
from /usr/include/arpa/inet.h:23,
from echo_client.c:10:
/usr/include/bits/local_lim.h:36:26: linux/limits.h: 그런 파일이나 디렉토리가
In file included from /usr/include/netinet/in.h:212,
from /usr/include/arpa/inet.h:23,
from echo_client.c:10:
/usr/include/bits/socket.h:305:24: asm/socket.h: 그런 파일이나 디렉토리가

어떻게 해야되죠?


kernel=source 패키지 까세여
그리고 시디 넣고 그안에 devel 패키지 다까는게 좋을듯

즐린

noksack의 이미지

kernel-source 패키지는 자동 설치하던중에 그냥 멈춰버리던데....
그게 맞는 것인지......

glibc-kernheaders-* 패키지를 설치하니까 되는군여....감사합니다.