<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 閱讀(716) 評(píng)論(0)  編輯  收藏


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 亚洲日韩中文字幕| 亚洲二区在线视频| 中国极品美軳免费观看| 亚洲国产精品毛片av不卡在线| 美女18一级毛片免费看| 免费观看午夜在线欧差毛片| 日韩亚洲翔田千里在线| 亚洲成片观看四虎永久| jizz日本免费| 亚洲精品蜜桃久久久久久| 玖玖在线免费视频| 亚洲视屏在线观看| 成人毛片免费观看视频在线| 国产成人va亚洲电影| 亚洲国产中文字幕在线观看| 精品无码一级毛片免费视频观看| 久久久青草青青亚洲国产免观| 9420免费高清在线视频| 国产日本亚洲一区二区三区| 夫妻免费无码V看片| h视频在线免费观看| 水蜜桃亚洲一二三四在线| 成人免费的性色视频| 欧美激情综合亚洲一二区| 久久亚洲AV无码西西人体| 四虎影视成人永久免费观看视频| 亚洲国产成人资源在线软件| 在线观看91精品国产不卡免费| 一级毛片在线完整免费观看| 亚洲短视频男人的影院| 在线观看免费a∨网站| a一级毛片免费高清在线| 亚洲高清不卡视频| 国产成人无码免费视频97| 国产婷婷成人久久Av免费高清 | 国产精品亚洲玖玖玖在线观看 | 亚洲高清免费在线观看| 国产高清视频在线免费观看| 久99久无码精品视频免费播放| 亚洲图片中文字幕| 亚洲真人日本在线|