[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swarm-Support] compile error, now almost working
From: |
Marcello |
Subject: |
[Swarm-Support] compile error, now almost working |
Date: |
30 May 2003 17:12:03 +0200 |
Hi Paul,
thanks so much for your quick help. Here is what happened:
I was trying to manually compile swarm-2.1.143.20030512. Following your
suggestion, I compiled it in a separate build directory, but I stuck on
gcc 3.2, with GNU libtool 1.4.2 (1.922.2.53 2001/09/11 03:18:52). I just
ran "configure--make--make install" sequence without any change
anywhere.It compiled as smooth as silk (without JDK).
.
I then installed it in a non-standard directory (by ./configure
--prefix=/home/user/swarm).
I then compiled one of my old swarm program in objectC (from swarm 2.0)
and I got this error:
/bin/sh /home/usr/swarm/bin/libtool-swarm --mode link gcc -g -O2
-L/home/usr/swarm/lib -rpath /home/usr/swarm/lib -o base main.o
Person.o Counter.o Genesis.o ModelSwarm.o ObserverSwarm.o Game.o
Groups.o BatchSwarm.o -lswarm -lswarmobjc
libtool-swarm: link: warning: library
`/home/usr/swarm/lib/libswarmobjc.la' was moved.
libtool-swarm: link: cannot find the library
`/usr/local/lib/libswarmobjc.la'
make: *** [base] Error 1
I checked and libswarmobjc.la was in /home/usr/swarm/lib.
I also checked libtool-swarm --config, but nothing pointed to
/home/usr/swarm. I then copied libswarmobjc.* from /home/usr/swarm to
/usr/local/lib, and everything works well. All my programs compile and
run well.
Do you know why I had this problem?
I have read on the mailing list about the problems with gcc 3.2, but it
seems to work fine for me. Is that an illusion?
thanks a lot of the help
marcello
P.S. please let me know if you need any details about my system.
> 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 -ld
l
> -
> > 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
>
> _______________________________________________
> Support mailing list
> address@hidden
> http://www.swarm.org/mailman/listinfo/support
--
Marcello Gallucci (Ph.D)
Department of Social Psychology
Free University
Van der Boechorststraat 1
1081 BT Amsterdam (NL)
Tel. +31(0)20 4448846
Fax +31 (0)20 4448921