linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* GAIM compile error
@ 2000-07-06 17:01 Peter R. Wood
  2000-07-06 17:14 ` Josh Huber
  0 siblings, 1 reply; 3+ messages in thread
From: Peter R. Wood @ 2000-07-06 17:01 UTC (permalink / raw)
  To: linuxppc-dev


Hello,

I've contacted the authors of GAIM regarding this problem, but they don't
seem to have a clue about it so I thought I'd submit it here. I'm trying
to compile GAIM, the AOL instant messenger clone, from its CVS source.  I
get this error during the compile:

make[2]: Entering directory `/usr/src/gaim/src'
/bin/sh ../libtool --mode=link gcc  -g -O2 -I/usr/local/include
-I/opt/include -I../ -I../libfaim -I../libfaim/faim
-I/usr/lib/glib/include -D_REENTRANT -I/usr/X11R6/include
-DLOCALEDIR=\"/usr/local/share/locale\"  -o gaim  about.o aim.o away.o
browser.o buddy.o buddy_chat.o conversation.o dialogs.o
gaimrc.o gnome_applet_mgr.o gtkhtml.o html.o idle.o network.o oscar.o
plugins.o prefs.o proxy.o rvous.o server.o sound.o toc.o util.o ticker.o
gtkticker.o -L../libfaim -lfaim -pthread -L/usr/lib -lesd -laudiofile -lm
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lgthread
-lglib -lpthread -ldl -lXi -lXext -lX11 -lm
gcc -g -O2 -I/usr/local/include -I/opt/include -I../ -I../libfaim
-I../libfaim/faim -I/usr/lib/glib/include -D_REENTRANT
-I/usr/X11R6/include -DLOCALEDIR=\"/usr/local/share/locale\" -o gaim
about.o aim.o away.o browser.o buddy.o buddy_chat.o conversation.o
dialogs.o gaimrc.o gnome_applet_mgr.o gtkhtml.o html.o idle.o network.o
oscar.o plugins.o prefs.o proxy.o rvous.o server.o sound.o
toc.o util.o ticker.o gtkticker.o -L../libfaim -lfaim -pthread -L/usr/lib
-lesd -laudiofile -lm -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgmodule -lgthread -lglib -lpthread -ldl -lXi -lXext -lX11 -lm
oscar.o: In function `gaim_parse_incoming_im':
/usr/src/gaim/src/oscar.c:537: undefined reference to
`__va_arg_type_violation'
/usr/src/gaim/src/oscar.c:537: relocation truncated to fit: R_PPC_REL24
__va_arg_type_violation
oscar.o: In function `gaim_parse_user_info':
/usr/src/gaim/src/oscar.c:627: undefined reference to
`__va_arg_type_violation'
/usr/src/gaim/src/oscar.c:627: relocation truncated to fit: R_PPC_REL24
__va_arg_type_violation
oscar.o: In function `gaim_parse_motd':
/usr/src/gaim/src/oscar.c:658: undefined reference to
`__va_arg_type_violation'
/usr/src/gaim/src/oscar.c:658: relocation truncated to fit: R_PPC_REL24
__va_arg_type_violation
oscar.o: In function `gaim_chatnav_info':
/usr/src/gaim/src/oscar.c:677: undefined reference to
`__va_arg_type_violation'
/usr/src/gaim/src/oscar.c:677: relocation truncated to fit: R_PPC_REL24
__va_arg_type_violation
collect2: ld returned 1 exit status
make[2]: *** [gaim] Error 1
make[2]: Leaving directory `/usr/src/gaim/src'

This is at the last step as it's about to link the object files in to the
gaim binary. If you're not familiar with the gaim source you can browse
the CVS repository at:

http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/gaim/src/?cvsroot=gaim

Note that's the src directory under the main distribution.

If you have any clues, please Cc: me since I read this in digest mode.

Thanks,

Peter

--
Peter R. Wood		pwood@gordon.edu
Computer Science	http://www.cs.gordon.edu/~pwood/
Gordon College		http://www.gordon.edu/
Wenham, MA		http://www.boston.com/


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GAIM compile error
  2000-07-06 17:01 GAIM compile error Peter R. Wood
@ 2000-07-06 17:14 ` Josh Huber
  2000-07-06 17:19   ` Josh Huber
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Huber @ 2000-07-06 17:14 UTC (permalink / raw)
  To: Peter R. Wood; +Cc: linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]

On Thu, Jul 06, 2000 at 01:01:20PM -0400, Peter R. Wood wrote:
> 
> Hello,
> 
> I've contacted the authors of GAIM regarding this problem, but they don't
> seem to have a clue about it so I thought I'd submit it here. I'm trying
> to compile GAIM, the AOL instant messenger clone, from its CVS source.  I
> get this error during the compile:
[snip]

grr, more va_arg errors :)

Attached is a patch that I'll forward onto the maintainer.

-- 
Josh
6B21489A | GnuPG ID/Fingerprint | huber@mclx.com |
61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A

[-- Attachment #1.2: gaim.diff --]
[-- Type: text/plain, Size: 1095 bytes --]

--- oscar.c	Thu Jul  6 13:12:42 2000
+++ oscar.c.orig	Thu Jul  6 13:11:09 2000
@@ -534,8 +534,8 @@
 		userinfo  = va_arg(ap, struct aim_userinfo_s *);
 		msg       = va_arg(ap, char *);
 		icbmflags = va_arg(ap, u_int);
-		flag1     = (u_short)va_arg(ap, u_int);
-		flag2     = (u_short)va_arg(ap, u_int);
+		flag1     = va_arg(ap, u_short);
+		flag2     = va_arg(ap, u_short);
 		va_end(ap);
 
 		serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
@@ -624,7 +624,7 @@
 	info = va_arg(ap, struct aim_userinfo_s *);
 	prof_enc = va_arg(ap, char *);
 	prof = va_arg(ap, char *);
-	infotype = (u_short)va_arg(ap, u_int);
+	infotype = va_arg(ap, u_short);
 	va_end(ap);
 
 	if (prof == NULL || !strlen(prof)) {
@@ -655,7 +655,7 @@
 	va_list ap;
 
 	va_start(ap, command);
-	id  = (u_short)va_arg(ap, u_int);
+	id  = va_arg(ap, u_short);
 	msg = va_arg(ap, char *);
 	va_end(ap);
 
@@ -674,7 +674,7 @@
 	u_short type;
 
 	va_start(ap, command);
-	type = (u_short)va_arg(ap, u_int);
+	type = va_arg(ap, u_short);
 
 	switch(type) {
 		case 0x0002: {

[-- Attachment #2: Type: application/pgp-signature, Size: 0 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GAIM compile error
  2000-07-06 17:14 ` Josh Huber
@ 2000-07-06 17:19   ` Josh Huber
  0 siblings, 0 replies; 3+ messages in thread
From: Josh Huber @ 2000-07-06 17:19 UTC (permalink / raw)
  To: Peter R. Wood; +Cc: linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 176 bytes --]

that was a little silly, here's the non reversed patch...

-- 
Josh
6B21489A | GnuPG ID/Fingerprint | huber@mclx.com |
61F0 6138 BE7B FEBF A223  E9D1 BFE1 2065 6B21 489A

[-- Attachment #1.2: gaim.diff --]
[-- Type: text/plain, Size: 1095 bytes --]

--- oscar.c.orig	Thu Jul  6 13:11:09 2000
+++ oscar.c	Thu Jul  6 13:12:42 2000
@@ -534,8 +534,8 @@
 		userinfo  = va_arg(ap, struct aim_userinfo_s *);
 		msg       = va_arg(ap, char *);
 		icbmflags = va_arg(ap, u_int);
-		flag1     = va_arg(ap, u_short);
-		flag2     = va_arg(ap, u_short);
+		flag1     = (u_short)va_arg(ap, u_int);
+		flag2     = (u_short)va_arg(ap, u_int);
 		va_end(ap);
 
 		serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
@@ -624,7 +624,7 @@
 	info = va_arg(ap, struct aim_userinfo_s *);
 	prof_enc = va_arg(ap, char *);
 	prof = va_arg(ap, char *);
-	infotype = va_arg(ap, u_short);
+	infotype = (u_short)va_arg(ap, u_int);
 	va_end(ap);
 
 	if (prof == NULL || !strlen(prof)) {
@@ -655,7 +655,7 @@
 	va_list ap;
 
 	va_start(ap, command);
-	id  = va_arg(ap, u_short);
+	id  = (u_short)va_arg(ap, u_int);
 	msg = va_arg(ap, char *);
 	va_end(ap);
 
@@ -674,7 +674,7 @@
 	u_short type;
 
 	va_start(ap, command);
-	type = va_arg(ap, u_short);
+	type = (u_short)va_arg(ap, u_int);
 
 	switch(type) {
 		case 0x0002: {

[-- Attachment #2: Type: application/pgp-signature, Size: 0 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-06 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-06 17:01 GAIM compile error Peter R. Wood
2000-07-06 17:14 ` Josh Huber
2000-07-06 17:19   ` Josh Huber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).