trivial usage of jnilib packaging links incorrectly
---------------------------------------------------

                 Key: MOJO-1161
                 URL: http://jira.codehaus.org/browse/MOJO-1161
             Project: Mojo
          Issue Type: Bug
          Components: native
         Environment: ubuntu 8.05, java 1.5, current maven 2
            Reporter: benson margulies


When I run a build of a trivial JNI project, it tries to link as if it were an 
executable, not a shared lib.

bim-1330% mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Excedrin Native Code
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [native:initialize]
[INFO] [native:compile]
[INFO] gcc -I/home/benson/x/excedrin/native/src/main/native 
-I/usr/lib/jvm/java-1.5.0-sun/include 
-I/usr/lib/jvm/java-1.5.0-sun/include/linux -o 
/home/benson/x/excedrin/native/target/hmm_calculator_core.o -c 
/home/benson/x/excedrin/native/src/main/native/hmm_calculator_core.cpp
[INFO] [native:link]
[INFO] gcc -o /home/benson/x/excedrin/native/target/native.jnilib 
target/hmm_calculator_core.o
/usr/lib/gcc/i486-linux-gnu/4.2.3/../../../../lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing command line. Exit code:1

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Sat Jun 28 06:49:59 GMT-05:00 2008
[INFO] Final Memory: 5M/44M
[INFO] ------------------------------------------------------------------------
bim-1330% 



-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to