[ tilp-Bugs-1885785 ] error making libticalcs 1.1.0

View: New views
1 Messages — Rating Filter:   Alert me  

[ tilp-Bugs-1885785 ] error making libticalcs 1.1.0

by SourceForge.net :: Rate this Message:

| View Threaded | Show Only this Message

Bugs item #1885785, was opened at 2008-02-03 09:21
Message generated for change (Comment added) made by m1ss1ontomars
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118378&aid=1885785&group_id=18378

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: WelshSage (welshsage)
Assigned to: Nobody/Anonymous (nobody)
Summary: error making libticalcs 1.1.0

Initial Comment:
Mac OS X 10.4.11

/usr/bin/libtool: internal link edit command failed
make[2]: *** [libticalcs2.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



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

Comment By: m1ss1ontomars (m1ss1ontomars)
Date: 2008-04-05 10:20

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

Ahh there we go. I didn't look quite so carefully, but that solves the
compiling problem. I don't have an Nspire, so I can't test it.

However, this shouldn't be a problem with tilp, as it doesn't depend on
libticalcs2...does it?

Also, is there a reason why the same code apparently builds successfully
on other platforms?

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

Comment By: rdm0 (rdm0)
Date: 2008-04-04 23:48

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

If one examines the files in libticalcs2-1.1.0/src, you will find these
two lines on lines 68 and 69 of nsp_vpkt.h:
uint16_t nsp_src_port;
uint16_t nsp_dst_port;

You will find these two lines on lines 110 and 111 of nsp_vpkt.c:
uint16_t nsp_src_port = 0x8001;
uint16_t nsp_dst_port = PORT_ADDR_REQUEST;

This is, indeed, a case of multiple definition of the variables, and
causes the linker to fail.

If you change the lines 68 and 69 in nsp_vpkt.h (.h, not .c !) to:
extern uint16_t nsp_src_port;
extern uint16_t nsp_dst_port;

then libticalcs2-1.1.0 will configure and make without the linker errors.

Whoever is in charge of libticalcs2 should correct this file, as multiple
people have reported this error with tilp2, tilp, and tiemu.


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

Comment By: m1ss1ontomars (m1ss1ontomars)
Date: 2008-03-28 10:37

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

Fails with same error but different message on Mac OS X 10.5.2 with both
gcc-4.0.1 and gcc-4.2.1. See Bug 1849837.

ld: duplicate symbol _nsp_src_port in .libs/libticalcs2_la-nsp_cmd.o and
.libs/libticalcs2_la-calc_nsp.o

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

Comment By: rdm0 (rdm0)
Date: 2008-03-23 22:09

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

I've gotten a similar error under Mac OS X 10.3.9.  The cause seems to be
given earlier in the error messages:
ld: multiple definitions of symbol _nsp_dst_port
.libs/libticalcs2_la-calc_nsp.o definition of _nsp_dst_port in section
(__DATA,__common)
.libs/libticalcs2_la-nsp_cmd.o definition of _nsp_dst_port in section
(__DATA,__common)
ld: multiple definitions of symbol _nsp_src_port
.libs/libticalcs2_la-calc_nsp.o definition of _nsp_src_port in section
(__DATA,__common)
.libs/libticalcs2_la-nsp_cmd.o definition of _nsp_src_port in section
(__DATA,__common)
.libs/libticalcs2_la-nsp_vpkt.o definition of _nsp_dst_port in section
(__DATA,__data)
.libs/libticalcs2_la-nsp_vpkt.o definition of _nsp_src_port in section
(__DATA,__data)



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

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=118378&aid=1885785&group_id=18378

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
TiLP-devel mailing list
TiLP-devel@...
https://lists.sourceforge.net/lists/listinfo/tilp-devel