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.
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
Ive done a quick google but cant see much. Anyone think what might be wrong?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
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.
Edit line 156 as follows:
It then compiles OK but segfaults on load as follows:tcp_sock[sock_num] |= (int) 0;
The developers a personal friend of mine, I'll get in touch with him and see what we can do.Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fbdc2c7d710 (LWP 7495)]
0x00007fbdc1e97af0 in strlen () from /lib/libc.so.6
RabbieBurns (12th February 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
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
Yep, thats it working fine. Im MSNing to someone now perfectly. Thanks kmount
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.
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: segfault at 2f285460 rip 2b2f2efbdaf0 rsp 7fff7c69ca68 error 4
Feb 12 14:08:32 oasis msn: segfault at 78242460 rip 2b2377f7aaf0 rsp 7fff336e1aa8 error 4
Ah well, gives me something to heckle him about fixing later
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
There are currently 1 users browsing this thread. (0 members and 1 guests)