<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    Unix Network Programming Source Code Configure Issue on Ubuntu 11.04

    http://my.chinaunix.net/space.php?uid=25795468&do=blog&id=296771 cd lib # build the basic library that all programs need make # use "gmake" everywhere on BSD/OS systems cd <some-directory-of-your-choosing> gunzip -c unpv12e.tar.gz | tar -xvf - cd unpv12e ./configure # try to figure out all implementation differences cd lib # build the basic library that all programs need make # use "gmake" everywhere on BSD/OS systems cd ../libfree # continue building the basic library make cd ../libgai # the getaddrinfo() and getnameinfo() functions make cd ../libroute # only if your system supports 4.4BSD style routing sockets make # only if your system supports 4.4BSD style routing sockets cd ../libxti # only if your system supports XTI make # only if your system supports XTI cd ../intro # build and test a basic client program make daytimetcpcli ./daytimetcpcli 127.0.0.1"Unix Network Programming" is one of the most classic book in computer science, I plan to read it these days, but there are some issues I encountered when I tried to running the first sample code in this book.

    1. The source code can be downloaded from
    2. The following is the Read Me / Configure file:
        cd <some-directory-of-your-choosing>
        gunzip -c unpv12e.tar.gz | tar -xvf -
    
        cd unpv12e
        ./configure    # try to figure out all implementation differences
    
        cd lib         # build the basic library that all programs need
        make           # use "gmake" everywhere on BSD/OS systems
    
        cd ../libfree  # continue building the basic library
        make
    
        cd ../libgai   # the getaddrinfo() and getnameinfo() functions
        make
    
        cd ../libroute # only if your system supports 4.4BSD style routing sockets
        make           # only if your system supports 4.4BSD style routing sockets
    
        cd ../libxti   # only if your system supports XTI
        make           # only if your system supports XTI
    
        cd ../intro    # build and test a basic client program
        make daytimetcpcli
        ./daytimetcpcli 127.0.0.1

    3. Execute ./configure
    The Terminal will show an error: struct_in_pktinfo is redefined.
    The is because the struct in_pktinfo is already defined by system, so we have to comment the struct_in_pktinfo code in unp.h

    4.
        cd lib         # build the basic library that all programs need
        make           # use "gmake" everywhere on BSD/OS systems
    get_rtaddrs.c: In function ‘get_rtaddrs’:
    ref to stack flow article: http://stackoverflow.com/questions/1520649/what-package-do-i-need-to-install-for-using-routing-sockets
    copy if_dl.h to /usr/include/net

    5.
    get_rtaddrs.c:21:18: error: ‘RTAX_MAX’ undeclared (first use in this function)
    get_rtaddrs.c:21:18: note: each undeclared identifier is reported only once for each function it appears in
    get_rtaddrs.c:24:4: error: ‘struct sockaddr’ has no member named ‘sa_len’
    get_rtaddrs.c:24:4: error: ‘struct sockaddr’ has no member named ‘sa_len’
    get_rtaddrs.c:24:4: error: ‘struct sockaddr’ has no member named ‘sa_len’
    get_rtaddrs.c:24:4: error: ‘struct sockaddr’ has no member named ‘sa_len’

    See this document:
    http://my.chinaunix.net/space.php?uid=25795468&do=blog&id=296771





    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2011-08-19 02:59 Chan Chen 閱讀(720) 評論(0)  編輯  收藏


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲国产成人九九综合| 亚洲综合色婷婷七月丁香| 亚洲小说图片视频| 97精品免费视频| 91亚洲导航深夜福利| 四虎成人精品永久免费AV| 久久综合日韩亚洲精品色| 日本免费中文字幕| 久久亚洲精品国产精品| 1000部拍拍拍18勿入免费视频软件 | 免费看黄的成人APP| 亚洲成人激情在线| 最近中文字幕高清免费中文字幕mv | 免费一区二区无码东京热| 国产亚洲婷婷香蕉久久精品 | 国产AV无码专区亚洲Av| 一级毛片在线观看免费| 亚洲三级在线观看| 可以免费观看一级毛片黄a| www成人免费视频| 亚洲人成影院在线| 日韩欧美一区二区三区免费观看| 在线亚洲高清揄拍自拍一品区| 国产视频精品免费| 精品人妻系列无码人妻免费视频| 久久久久亚洲精品影视| 麻豆一区二区免费播放网站 | 亚洲人成网站999久久久综合| www国产亚洲精品久久久 | 1000部免费啪啪十八未年禁止观看| 亚洲人成电影网站久久| 免费一级大黄特色大片| 免费av片在线观看网站| 亚洲人成77777在线播放网站不卡| 免费在线观看亚洲| 午夜老司机永久免费看片| 亚洲国产成人综合精品| 亚洲精品~无码抽插| 成年人在线免费观看| 三上悠亚在线观看免费| 天堂亚洲国产中文在线|