<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) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲精品自偷自拍无码| 日韩亚洲人成在线| 一级黄色片免费观看| 免费午夜爽爽爽WWW视频十八禁 | 久久夜色精品国产亚洲AV动态图 | 麻豆成人久久精品二区三区免费| 亚洲AV无码专区国产乱码电影| a成人毛片免费观看| 亚洲高清国产拍精品26U| 久久成人免费大片| 亚洲毛片无码专区亚洲乱| 手机看黄av免费网址| 亚洲AV无码成人精品区日韩| 国产jizzjizz视频全部免费| 1000部夫妻午夜免费| 亚洲欧洲精品久久| 91精品全国免费观看含羞草| 亚洲综合久久成人69| 五月婷婷综合免费| 精品女同一区二区三区免费播放 | 亚洲国产精品无码专区影院 | 国产午夜无码视频免费网站| av网站免费线看| 亚洲精品高清国产麻豆专区| 在线播放免费播放av片| fc2免费人成在线| 亚洲最大在线视频| 国产成人免费a在线视频app | 亚洲欧美aⅴ在线资源| 中文亚洲AV片不卡在线观看| 最近中文字幕完整免费视频ww| 亚洲人成色77777在线观看| 国产免费午夜a无码v视频| 免费无码作爱视频| 亚洲国产精品免费观看| 亚洲中久无码不卡永久在线观看| 美女视频黄的免费视频网页 | 亚洲免费观看视频| 亚洲精品无码日韩国产不卡av| 免费中文字幕一级毛片| 日韩免费无码一区二区三区 |