<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)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 日韩伦理片电影在线免费观看| a毛片免费在线观看| 青青视频观看免费99| 亚洲欧洲日产国产综合网| 日本xxxx色视频在线观看免费| 丝袜熟女国偷自产中文字幕亚洲| 久久WWW免费人成—看片| 亚洲乱码无码永久不卡在线| 最近中文字幕大全免费版在线| 亚洲AV无码精品无码麻豆| 在线美女免费观看网站h| 亚洲经典在线观看| 中文字幕av无码无卡免费| 亚洲国产成人久久精品大牛影视| 免费在线观看毛片| 免费在线黄色电影| 亚洲成aⅴ人片在线影院八| 成人免费无遮挡无码黄漫视频| 337P日本欧洲亚洲大胆精品| 亚洲高清无码专区视频| 黄色网址免费在线观看| 亚洲国产精品人久久| 最近的免费中文字幕视频| 色老头综合免费视频| 久久精品亚洲日本佐佐木明希| 亚洲黄色免费网站| 精品无码专区亚洲| 亚洲成AV人片在线观看ww| 动漫黄网站免费永久在线观看| 羞羞视频免费网站含羞草| 亚洲s色大片在线观看| 黄页网站在线观看免费高清| 粉色视频在线观看www免费| 亚洲网站在线观看| 日日AV拍夜夜添久久免费| 国内精品免费视频精选在线观看 | 成熟女人特级毛片www免费| 老外毛片免费视频播放| 亚洲日韩图片专区第1页| 免费在线观看视频a| 99无码人妻一区二区三区免费|