링크 에러 같은데, 고수님덜 부탁합니다.

익명 사용자의 이미지

소켓 통신을 하는 프로그램을 만들었는데, 솔라리스에서 잘 돌아가는데
터보리눅스에서는 잘 안 돌아갑니다. 리눅스에서는 소켓 라이브러리를
따로 부르지 않아도 된다고 해서 소켓 라이브러리를 뺐습니다.
아래의 lsock, llog 제가 만든 라이브러리 입니다.
소스는 우선 솔라리스에서 컴파일 했으므로 문제는 없는것 같습니다.
아시는 분 리필 좀 달아 주세요.

Makefile 내용은 아래와 같습니다.
====================================================================
##########################################################
# define file path.
##########################################################
RM = rm
CC = gcc
MV = mv

##########################################################
# define object and source files by per target module.
##########################################################
OBJECTS = Server_Main.o Message_Receiver.o
HOME = /home/dragon/sl2ttslib-0.98/examples/Ums
INC = $(HOME)/inc
LIB = $(HOME)/lib
CFLAGS = -O2 -I$(INC)
GFLAGS = -L$(LIB) -lsock -llog -lpthread

##########################################################
# define library directory and library files
##########################################################
TARGET = Ctums
OBJECT = $(TARGET)

##########################################################
# create target object rule
##########################################################
$(TARGET) $(OBJECTS)
${CC} -o $(TARGET) $(OBJECTS) $(GFLAGS)

##########################################################
# clear objects
##########################################################
clean
$(RM) -f *.o core $(TARGET)

install
$(MV) $(TARGET) ./bin
====================================================================

근데 make를 하면 아래와 같은 에러가 납니다.
====================================================================
gcc -O2 -I/home/dragon/sl2ttslib-0.98/examples/Ums/inc -c -o
Server_Main.o Server_Main.c
gcc -O2 -I/home/dragon/sl2ttslib-0.98/examples/Ums/inc -c -o
Message_Receiver.o Message_Receiver.c
gcc -o Ctums Server_Main.o Message_Receiver.o -
L/home/dragon/sl2ttslib-0.98/examples/Ums/lib -lsock -llog -lpthread
collect2 ld terminated with signal 11 [Segmentation fault]
make *** [Ctums] Error 1
====================================================================

익명 사용자의 이미지

음 재가 보기엔 님께서 만드신 라이브러리에서
문제가 발생한거 같은데여...

혹시 라이브러리를 리눅스에서 제대로 컴파일 되었는지 궁금하네여 ^^*

아무레도 솔라리스와 linux포팅이 바로 되는게 아니기때문에..
솔라리스에서 만들어 돌리던 라이브러리도 아마 리눅스에서 다시 포팅해
야 하지 않을까 하네요 ^^

이상 허접 대답이었슴댜아 ^^*

익명 사용자의 이미지

감사합니다. 앞으로도 잘 부탁드립니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.