RabbieBurns Posted February 12, 2009 Posted February 12, 2009 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 ... 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?
webman Posted February 12, 2009 Posted February 12, 2009 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.
powdarrmonkey Posted February 12, 2009 Posted February 12, 2009 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.
kmount Posted February 12, 2009 Posted February 12, 2009 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. 1
RabbieBurns Posted February 12, 2009 Author Posted February 12, 2009 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
RabbieBurns Posted February 12, 2009 Author Posted February 12, 2009 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
RabbieBurns Posted February 12, 2009 Author Posted February 12, 2009 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
RabbieBurns Posted February 12, 2009 Author Posted February 12, 2009 Yep, thats it working fine. Im MSNing to someone now perfectly. Thanks kmount
kmount Posted February 12, 2009 Posted February 12, 2009 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.
RabbieBurns Posted February 12, 2009 Author Posted February 12, 2009 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
kmount Posted February 12, 2009 Posted February 12, 2009 Ah well, gives me something to heckle him about fixing later
mac_shinobi Posted February 12, 2009 Posted February 12, 2009 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now