Bugs item #1666069, was opened at 2007-02-22 07:33
Message generated for change (Comment added) made by eblanton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1666069&group_id=235

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: solaris
Group: 2.0.0 beta 6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: lingforum (lingforum)
Assigned to: Ethan Blanton (eblanton)
Summary: Solaris linking error (gaim static library)

Initial Comment:
Solaris(SunOS 5.10) linking error while using gaim-2.0.0beta6 static library 
into a c++ application.

The error is mentioned below.

Undefined symbol: gaim_init_oscar_plugin, gaim_init_jabber_plugin, 
gaim_init_yahoo_plugin              , gaim_init_msn_plugin.
First reference in file:gaim-2.0.0beta6/install/lib/libgaim.a(core.o)

Configure option used for compiling gaim:

./configure --disable-gtkui --disable-consoleui --enable-gnutls=yes 
--with-gnutls-includes=/usr/include --with-gnutls-libs=/usr/lib --disable-perl 
--disable-schemas-install CPPFLAGS=-D_REENTRANT 
--prefix=gaim-2.0.0beta6/install --enable-shared=no --enable-static=yes  
--with-static-prpls=yahoo,msn,oscar,jabber 
GLIB_CFLAGS=-I/glib-2.12.3/install/include/glib-2.0 
-I/glib-2.12.3/install/lib/glib-2.0/include 
GLIB_LIBS=-L/glib-2.12.3/install/lib -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 
-lglib-2.0


----------------------------------------------------------------------

>Comment By: Ethan Blanton (eblanton)
Date: 2007-02-24 11:18

Message:
Logged In: YES 
user_id=298616
Originator: NO

For the first question, I'd like to see the actual ld invocation done at
compile time, after all those Makefile.am variables are expanded; it should
be right above the error you pasted.  It includes all of the .o files going
into the library, all of the compile flags, etc.

When I said ldd, I didn't mean ldd, I meant nm.  Could you re-run that
with nm?  (You'll probably want to make it an attachment, it will be very
large).

----------------------------------------------------------------------

Comment By: lingforum (lingforum)
Date: 2007-02-24 01:28

Message:
Logged In: YES 
user_id=1710963
Originator: YES

1. In my Makefile.am, I link gaim library as
AM_LDFLAGS = -L$(top_srcdir)/$(GAIM_LIB_DIR)-lgaim
Where GAIM_LIB_DIR is
"/export/home/lingforum/SunOS-i86pc/gaim-2.0.0beta6/install/lib"

The linking error is as follows:
----------8<------------
Undefined                       first referenced
 symbol                             in file
gaim_init_oscar_plugin  
/export/home/lingforum/SunOS-i86pc/gaim-2.0.0beta6/install/lib/libgaim.a(core.o)
gaim_init_jabber_plugin 
/export/home/lingforum/SunOS-i86pc/gaim-2.0.0beta6/install/lib/libgaim.a(core.o)
gaim_init_yahoo_plugin  
/export/home/lingforum/SunOS-i86pc/gaim-2.0.0beta6/install/lib/libgaim.a(core.o)
gaim_init_msn_plugin    
/export/home/lingforum/SunOS-i86pc/gaim-2.0.0beta6/install/lib/libgaim.a(core.o)
ld: fatal: Symbol referencing errors. No output written to gaimtest
collect2: ld returned 1 exit status
---------->8------------

2. I think "ldd" can be used for executable or shared libraries. Anyway
here is the output.
$ ldd libgaim.a
ldd: libgaim.a: file is not a dynamic executable or shared object

Thanks.

----------------------------------------------------------------------

Comment By: Ethan Blanton (eblanton)
Date: 2007-02-23 13:39

Message:
Logged In: YES 
user_id=298616
Originator: NO

lingforum, can you get me the final linking line for libgaim.a?  Also, I
would appreciate the output of 'ldd libgaim.a'.

Ethan

----------------------------------------------------------------------

Comment By: Luke Schierer (lschiere)
Date: 2007-02-22 14:54

Message:
Logged In: YES 
user_id=28833
Originator: NO

Ethan, can you shed any light here? 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1666069&group_id=235

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gaim-bugs mailing list
Gaim-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gaim-bugs

Reply via email to