*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 ...
12th February 2009, 01:22 PM #1
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?
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
IDG Tech News
12th February 2009, 01:40 PM #2
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.
12th February 2009, 01:45 PM #3
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.
12th February 2009, 01:46 PM #4
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
Thanks to kmount from:
RabbieBurns (12th February 2009)
12th February 2009, 01:47 PM #5
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
12th February 2009, 01:48 PM #6
Originally Posted by kmount
12th February 2009, 01:56 PM #7
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
12th February 2009, 02:00 PM #8
Yep, thats it working fine. Im MSNing to someone now perfectly. Thanks kmount
12th February 2009, 02:01 PM #9
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.
12th February 2009, 02:10 PM #10
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
12th February 2009, 02:19 PM #11
Ah well, gives me something to heckle him about fixing later
12th February 2009, 03:03 PM #12
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.
Originally Posted by kmount
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
12th February 2009, 03:07 PM #13
By PiqueABoo in forum Windows
Last Post: 23rd February 2009, 09:43 PM
By Edu-IT in forum General Chat
Last Post: 7th March 2008, 05:17 PM
By localzuk in forum Windows
Last Post: 22nd May 2007, 12:55 PM
By edie209 in forum Wireless Networks
Last Post: 26th July 2006, 05:38 PM
By witch in forum Windows
Last Post: 2nd May 2006, 06:13 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)