centericq won't make properly

reelbigjosh

Registered
Hello all,

I'm attempting to install centericq on an iMac running 10.3.9 ; Xcode 1.5 is installed (can't install 2.0 or higher without Tiger). X11 is also installed, as well as Xcode Legacy tools from the Apple Developer Connection site. ./configure seems to go okay, and make goes well for a while, then...


gcc -DPACKAGE=\"libjabber\" -DVERSION=\"0.1\" -I. -I. -I./../connwrap -I./../connwrap-0.1 -g -O2 -c sha.c
sha.c: In function `shaUpdate':
sha.c:66: error: `uint32_t' undeclared (first use in this function)
sha.c:66: error: (Each undeclared identifier is reported only once
sha.c:66: error: for each function it appears in.)
sha.c:66: error: parse error before "dataIn"
sha.c: In function `shaHashBlock':
sha.c:125: error: `uint32_t' undeclared (first use in this function)
sha.c:125: error: parse error before "A"
sha.c:131: error: `A' undeclared (first use in this function)
sha.c:132: error: `B' undeclared (first use in this function)
sha.c:133: error: `C' undeclared (first use in this function)
sha.c:134: error: `D' undeclared (first use in this function)
sha.c:135: error: `E' undeclared (first use in this function)
sha.c:138: error: `TEMP' undeclared (first use in this function)
make[3]: *** [sha.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2


I'm not a developer and have only minimal experience in coding. Can anyone tell my why this isn't working? I compiled the links browser just fine, and coming from a Linux background, would very much like to see centericq up and running.

Log files with the outputs of ./configure --disable-msn and make are available here:
./configure --disable-msn
make
 
Any reason why you want to use centericq instead of the GUI clients like Adium which are based on libgaim? I use it on my Slackware box when I ssh into it since my work blocks IM.

The other option might be to try using Fink (http://fink.sourceforge.net) and install the Unix development files from there. Once you have that installed, you might be able to compile centericq without any problems.
 
reelbigjosh said:
sha.c: In function `shaUpdate':
sha.c:66: error: `uint32_t' undeclared (first use in this function)
Yuck. That kind of datatype compilation problem isn't cool at all. The source possibly isn't written in a way that's portable to OS X. It might make assumptions about target platforms and not have defined its datatypes properly.

You might be able to fix it by making a small tweak to sha.c.

If you add this line to sha.c, it might compile:

Code:
#include <stdint.h>
On Linux, uint32_t is defined like in stdint.h:

/usr/include/stdint.h:typedef unsigned int uint32_t;

You can see if it's in the same header on OS X, using this command:
$ grep uint32_t /usr/include/stdint.h

If you get a line similar to the one above, the #include should do the trick. I don't know if Fink helps with this kind of stuff or not.

The question then becomes where to add the #include. Somewhere neat the top of the module would be appropriate but without seeing the source, I can't advise on where it should go.

Peace...
 
I will make the suggested modifications to sha.c once I get back to my iMac (currently I'm out of town, using the iBook). However, centericq did compile under 10.4 with Xcode 2.2 on the iBook, so that was a plus for me. Thanks for the suggestion.
 
Back
Top