+ Post New Thread
Results 1 to 13 of 13
*nix Thread, CLI MSN in Technical; Trying to get a cli msn client to work Mor-Pah Studios I think I have all the required libs, but ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    CLI MSN

    Trying to get a cli msn client to work Mor-Pah Studios

    I think I have all the required libs, but make is failing with this error

    Code:
    ...
    if gcc -DHAVE_CONFIG_H -I. -I. -I./src/headers     -g -O2 -MT tcp_sock.o -MD -MP -MF ".deps/tcp_sock.Tpo" -c -o tcp_sock.o `test -f 'src/tcp_sock.c' || echo './'`src/tcp_sock.c; \
            then mv -f ".deps/tcp_sock.Tpo" ".deps/tcp_sock.Po"; else rm -f ".deps/tcp_sock.Tpo"; exit 1; fi
    src/tcp_sock.c: In function 'tcp_socket':
    src/tcp_sock.c:56: warning: incompatible implicit declaration of built-in function 'exit'
    src/tcp_sock.c: In function 'tcp_sockdcon':
    src/tcp_sock.c:156: error: invalid lvalue in assignment
    make: *** [tcp_sock.o] Error 1
    Ive done a quick google but cant see much. Anyone think what might be wrong?

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,403
    Thank Post
    638
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    I don't know what or why that error is, but if you're open to suggestions for alternatives then have a look at tmsnc.

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    I used to use tmsnc and it works pretty well.

    Don't know why that one won't build though, guess you're missing a lib. This is what I don't like about Gentoo's packaging, AIUI it requires you to build every package, which is such a waste of build time and duplication of effort. Binary package managers build once and distribute the results, which is much less wasteful but has its own problems too.

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,689
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Hi,

    Edit line 156 as follows:

    tcp_sock[sock_num] |= (int) 0;
    It then compiles OK but segfaults on load as follows:

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fbdc2c7d710 (LWP 7495)]
    0x00007fbdc1e97af0 in strlen () from /lib/libc.so.6
    (gdb)
    The developers a personal friend of mine, I'll get in touch with him and see what we can do.

  5. Thanks to kmount from:

    RabbieBurns (12th February 2009)

  6. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    gentoo is fine for installing stuff in the repositories, its just other stuff that's not can become a PITA.

    Ill try tmsnc, thanks for the heads up

  7. #6

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Quote Originally Posted by kmount View Post
    Hi,

    Edit line 156 as follows:



    It then compiles OK but segfaults on load as follows:



    The developers a personal friend of mine, I'll get in touch with him and see what we can do.
    Thanks

  8. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    That seems to have fixed it and it compiles and runs OK so far. It has logged me in anyway. I will have a play see if it works properly

  9. #8

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Yep, thats it working fine. Im MSNing to someone now perfectly. Thanks kmount

  10. #9


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,689
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Ah bonus, my problem may be 64bit gentoo more specifically.

    For anyone interested (and I'm far from a programmer) it was to do with the casting.

    Very welcome mate.

  11. #10

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,516
    Thank Post
    1,323
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    yep, just tried it on my amd64 gentoo box too and it seg faults

    oasis CLI-MSN-2.3 # cat /var/log/messages | grep msn
    Feb 12 14:07:58 oasis msn[2466]: segfault at 2f285460 rip 2b2f2efbdaf0 rsp 7fff7c69ca68 error 4
    Feb 12 14:08:32 oasis msn[2471]: segfault at 78242460 rip 2b2377f7aaf0 rsp 7fff336e1aa8 error 4

  12. #11


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,689
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Ah well, gives me something to heckle him about fixing later

  13. #12

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,729
    Thank Post
    3,252
    Thanked 1,049 Times in 971 Posts
    Rep Power
    364
    Quote Originally Posted by kmount View Post
    Ah bonus, my problem may be 64bit gentoo more specifically.

    For anyone interested (and I'm far from a programmer) it was to do with the casting.

    Very welcome mate.
    Casting means converting one data type to another in this case I presume the TCP side is a long or numerical data type that needs converting into an int aka integer data type.

    This becomes an issue on 64 bit platforms due to integers still being 32 bits on a 64 bit platform and the pointers are 64 bits where is on a 32 bit platform both pointers and integer data types are both 32 bits.

    Found this - not sure how much help this will be :

    Gentoo Linux Documentation -- Alpha Porting Guide

  14. #13


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,689
    Thank Post
    352
    Thanked 794 Times in 714 Posts
    Rep Power
    346
    Hm, quite.

SHARE:
+ Post New Thread

Similar Threads

  1. CLI find & replace.
    By PiqueABoo in forum Windows
    Replies: 12
    Last Post: 23rd February 2009, 09:43 PM
  2. CLI & GUI
    By Edu-IT in forum General Chat
    Replies: 7
    Last Post: 7th March 2008, 05:17 PM
  3. A simple jabber cli message sender?
    By localzuk in forum Windows
    Replies: 2
    Last Post: 22nd May 2007, 12:55 PM
  4. cli consul program needed
    By edie209 in forum Wireless Networks
    Replies: 3
    Last Post: 26th July 2006, 05:38 PM
  5. msn - again!
    By witch in forum Windows
    Replies: 10
    Last Post: 2nd May 2006, 06:13 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •