swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] compile error


From: Paul Johnson
Subject: Re: [Swarm-Support] compile error
Date: Fri, 30 May 2003 08:30:07 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Ah! Good. Are you trying to build Swarm from the SRPM with the rebuild command? Or have you taken the srpm file and tried to do it manually.

If you are trying the "rebuild" with the rpmbuild program, I believe the problem you run into here is a libtool problem. We have discussed that before. The problem is in the fact that libtool is looking in /usr/lib/swarm for libraries that you have not yet installed. I think this problem will be fixed someday, but package builders everywhere have been screaming about it a while. the fix is to do a "make" and "make install" in the BUILD directory, so that the files actually get dropped into /usr/lib/swarm, and then try the rpm build again, and it will find what it needs.

It does not look to me like you have tried to rebuild the srpm, however. It looks to me like you are trying a manual build, but you ahve not followed any of the recommended practices for building Swarm. I hate to sound like a broken record, but

1. gcc-3.2 does not work
and
2. I can help you do this if you tell us exactly what tools you have (gcc, libtool) and if you have root access. The SPEC file distributed with my SRPM should show you how to write the configure statement and also it is important not to build swarm in the source directory, but in a separate place (the SPEC uses =with-hdf as the place). Please check the SwarmFAQ for information about how to write the configure statement.

Marcello wrote:
Hi
I have tried to install swarm.2.1.1 but a lot of problems arose, so I
moved to Paul's swarm-2.1.143.20030512. It configures alright but during
compilation (on (from Linux 2.4.19-16mdk #1 Fri Sep 20 18:15:05 CEST
2002 i686; gcc (GCC) 3.2 (Mandrake Linux 9.0 3.2-1mdk)

I got this:

gcc -g -O2 -fgnu-runtime -fno-strict-aliasing -Wall -Wno-import
-Wno-protocol -Wno-long-long -o .libs/findImp findImp.o -L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/libobjc/.libs
/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/.libs/libswarm.so
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/space
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/analysis
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/simtoolsgui
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/simtools
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/random
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/tkobjc
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/tclobjc
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/objectbase
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/activity
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/defobj
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/collections
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/misc
-L/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/libobjc -L/usr/lib
-L/usr/X11R6/lib
/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/space/.libs/libspace.so
/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/analysis/.libs/libanalysis.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/simtoolsgui/.libs/libsimtoolsgui.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/simtools/.libs/libsimtools.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/random/.libs/librandom.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/tkobjc/.libs/libtkobjc.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/tclobjc/.libs/libtclobjc.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/objectbase/.libs/libobjectbase.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/activity/.libs/libactivity.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/defobj/.libs/libdefobj.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/collections/.libs/libcollections.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/misc/.libs/libmisc.so /usr/src/RPM/SOURCES/swarm-2.1.143.20030512/libobjc/.libs/libswarmobjc.so -lgcc -lBLT24 -ltk8.3 -ltcl8.3 -lXpm -lpng -lz -lX11 -lm -ldl
-
 Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib -Wl,--rpath
-Wl,/usr/X11R6/lib
/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/src/.libs/libswarm.so:
undefined reference to `swarm_lookup_module'
collect2: ld returned 1 exit status
make[2]: *** [findImp] Error 1
make[2]: Leaving directory
`/usr/src/RPM/SOURCES/swarm-2.1.143.20030512/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/SOURCES/swarm-2.1.143.20030512'
make: *** [all] Error 2

Any help?
many thanks marcello



--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700



reply via email to

[Prev in Thread] Current Thread [Next in Thread]