Bugs item #3165230, was opened at 2011-01-25 12:55
Message generated for change (Settings changed) made by fgiunchedi
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3165230&group_id=95403

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: None
Group: None
Status: Open
>Resolution: None
Priority: 5
Private: No
Submitted By: Michael Scherer ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Linking problem when using --no-undefined

Initial Comment:
Latest stable release ( 2.3.1 ) and also latest head do not compile if the 
option --no-undefined is for ld. The option warn if there is a missing object 
file at link time :

.libs/libvdesnmp.o: In function `mgmt_init':
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:106: undefined 
reference to `vdemgmt_open'
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:119: undefined 
reference to `vdemgmt_sendcmd'
.libs/libvdesnmp.o: In function `counters_parse':
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:225: undefined 
reference to `vdemgmt_sendcmd'
.libs/libvdesnmp.o: In function `vde_snmp_init':
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:363: undefined 
reference to `vdemgmt_asyncreg'
.libs/libvdesnmp.o: In function `vde_snmp_getfd':
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:420: undefined 
reference to `vdemgmt_getfd'
.libs/libvdesnmp.o: In function `vde_snmp_event':
/mnt/video/mgarepo/vde2/BUILD/vde2-2.3.1/src/lib/libvdesnmp.c:425: undefined 
reference to `vdemgmt_asyncrecv'
collect2: ld returned 1 exit status
make[2]: *** [libvdesnmp.la] Erreur 1


The following patch ( from Funda Wang, fu...@mandriva.org , ported by me to 
2.3.1 ) fix the issue. It is against stable release, but should be trivial to 
port on trunk ( if needed ). You can compile with LDFLAGS="-Wl,--as-needed 
-Wl,--no-undefined" to see the issue.

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

>Comment By: Filippo Giunchedi (fgiunchedi)
Date: 2011-02-14 20:35

Message:
this specific error is fixed but the underlying issue remains, the fact is
that vde is building some shared objects for its internal usage. For
example libvdehist is depending on the global variable prompt which is
defined in vdeterm.c which in turn is built as a binary so you can't link
it to the .so.
While we can certainly fix this I'm not convinced is worth the effort nor
have a clear/clean resolution in mind.

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

Comment By: renzo davoli (rd235)
Date: 2011-02-14 16:25

Message:
fgiunchedi should have already fixed the problem in svn #468

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=611248&aid=3165230&group_id=95403

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to