The following comment has been added to this issue:
Author: baleineca
Created: Mon, 7 Feb 2005 1:45 PM
Body:
Here is a patch. It checks for static and dynamic library dependencies for
various platforms (linux, mac, win32) and correctly works out the name to use
in libset or syslibset. Works fine on linux, mac, and win32 using msvc.
The only thing I haven't tested is cygwin gcc on win32. With msvc, dll
dependencies are useless (you have to link with 'lib' not 'dll'). But on
cygwin gcc, the plugin stores both 'so' and 'dll', so checking for 'dll' type
might still be useful. So, you have a dependency on a 'dll', but you also
should have 'so' in your local repository, so when gcc gets the libset, it
should find the 'so' to use.
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/MPNATIVE-13?page=comments#action_29646
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPNATIVE-13
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPNATIVE-13
Summary: Jelly tokenize incorrect behaviour
Type: Bug
Status: Unassigned
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven-native-plugin
Versions:
1.1
1.2
Assignee:
Reporter: baleineca
Created: Fri, 4 Feb 2005 8:08 PM
Updated: Mon, 7 Feb 2005 1:45 PM
Environment: linux (Fedora Core 3)
Description:
plugin.jelly starting at line 114, there is an attempt to add dependencies of
type .so or .dll to libset or syslibset.
It appears that jelly util tokenize with delim value of "lib" doesn't tokenize
on the whole word "lib", which I believe is intended, but tokenizes on either
"l" or "i" or "b".
I ran the tokenizer script with some echos, here is the result:
[echo] dep = libjellybellyfish.so
[echo] index equals 0, libname = je
[echo] index greater than 0, libname = jeliby
[echo] index greater than 0, libname = jelibylibe
[echo] index greater than 0, libname = jelibylibelibyf
[echo] index greater than 0, libname = jelibylibelibyflibsh.so
yes... the final libname is not very pretty!!!
I haven't found a way yet to be able to pass a delim string to tokenize. As a
work around, I will just comment that part of the script and deal with
including dependencies manually as link args.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]