<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)航:
     
    主站蜘蛛池模板: 亚洲综合视频在线| 久久福利青草精品资源站免费| 嫖丰满老熟妇AAAA片免费看| 亚洲精品免费视频| 午夜老司机永久免费看片| 亚洲AV无码精品无码麻豆| 黄色网址在线免费| 久久国产亚洲观看| 黄色成人免费网站| 国产成人亚洲精品| 全免费A级毛片免费看网站| 国产精品亚洲а∨天堂2021| 国产免费av片在线无码免费看| 亚洲av成人一区二区三区观看在线| 又粗又大又硬又爽的免费视频| 男男gvh肉在线观看免费| 久久影视国产亚洲| 中文字幕免费不卡二区| 亚洲酒色1314狠狠做| 噜噜嘿在线视频免费观看| 青草青草视频2免费观看| 国产福利电影一区二区三区,亚洲国模精品一区 | 亚洲精品国产综合久久久久紧| 国产精品免费播放| fc2免费人成在线| 亚洲视频在线一区二区三区| 最近免费中文字幕大全| 暖暖免费中文在线日本| 久久精品亚洲日本佐佐木明希| 色se01短视频永久免费| 一个人晚上在线观看的免费视频 | 亚洲精品无码成人片在线观看| 亚洲免费视频一区二区三区| 久久亚洲中文字幕精品有坂深雪| 美女视频黄免费亚洲| 成人国产网站v片免费观看| 2022年亚洲午夜一区二区福利 | 亚洲综合网站色欲色欲| 18禁止看的免费污网站| 狼色精品人妻在线视频免费| 国产AV无码专区亚洲AV男同|