|
|
|
|||||
|
Building Ice-3.3.0 on CentOS 4.6
I'm new to Ice.
I have a fresh install of CentOS 4.6 (i386) with nptl-devel installed. First, I downloaded the Ice-3.3.0 RHEL4 RPMs, installed them, and attempted to create the HelloWorld application described in the docs. I ran into some trouble, so I decided to try building Ice on my system, to see if that would work. Unfortunately, it does not. I downloaded Ice-3.3.0.tar.gz, extracted it, changed into the Ice-3.3.0 directory, and typed "make". It builds successfully for a while, then reaches this point: make[3]: Entering directory `/home/stwhit/Ice-3.3.0/cpp/src/slice2cpp' c++ -c -I. -I../../include -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g Gen.cpp c++ -c -I. -I../../include -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g Main.cpp rm -f ../../bin/slice2cpp c++ -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.3/lib -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g -L../../lib -o ../../bin/slice2cpp Gen.o Main.o -lSlice -lIceUtil -L/usr/lib/nptl -lpthread -lrt /usr/bin/ld: cannot find /lib/tls/i486/libpthread.so.0 collect2: ld returned 1 exit status make[3]: *** [../../bin/slice2cpp] Error 1 make[3]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp/src/slice2cpp' make[2]: *** [all] Error 1 make[2]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp/src' make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp' make: *** [all] Error 1 Any ideas why I'm receiving this error? Thanks in advance. |
|
|||||
|
Hi Benoit,
Thanks for the response. Notice in my original post I stated I have nptl-devel installed. I have a fresh install of CentOS 4.6 (i386) with nptl-devel installed. As proof: $ rpm -q nptl-devel nptl-devel-2.3.4-2.39 Any other ideas? |
|
|||||
|
CentOS 4.6 comes with two versions of the nptl RPM.
Code:
$ ls -l /media/cdrom/CentOS/RPMS/nptl* -r--r--r-- 2 root root 905821 Nov 18 2007 /media/cdrom/CentOS/RPMS/nptl-devel-2.3.4-2.39.i386.rpm -r--r--r-- 2 root root 947773 Nov 18 2007 /media/cdrom/CentOS/RPMS/nptl-devel-2.3.4-2.39.i686.rpm Code:
making all in slice2cpp make[3]: Entering directory `/home/stwhit/Ice-3.3.0/cpp/src/slice2cpp' c++ -c -I. -I../../include -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g Gen.cpp c++ -c -I. -I../../include -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g Main.cpp rm -f ../../bin/slice2cpp c++ -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.3/lib -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g -L../../lib -o ../../bin/slice2cpp Gen.o Main.o -lSlice -lIceUtil -L/usr/lib/nptl -lpthread -lrt /usr/bin/ld: cannot find /lib/tls/i486/libpthread.so.0 collect2: ld returned 1 exit status make[3]: *** [../../bin/slice2cpp] Error 1 make[3]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp/src/slice2cpp' make[2]: *** [all] Error 1 make[2]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp/src' make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/stwhit/Ice-3.3.0/cpp' make: *** [all] Error 1 So, I'm curious - is this expected? Which version of the RPM do you have installed? Thanks again! |
|
||||||
|
Hi,
Yes, I think it's expected. Most likely the architecture of the nptl-devel you install needs to match the architecture of the glibc package. The installer probably installed the i686 glibc RPM on your machine so you need to use the i686 nptl-devel. ("rpm -qil glibc | grep pthread" should show the pthread library in a i686 directory). Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error building ICE | bambuk | Help Center | 2 | 06-25-2007 10:48 PM |
| Installing (or building) Ice on Suse 9.3 | lancepw | Help Center | 6 | 09-22-2005 08:23 PM |
| simplifing building ICE applications | bterwijn | Help Center | 0 | 06-19-2005 04:10 PM |
| building ice for C# | aditi | Help Center | 4 | 11-13-2004 09:37 PM |
| Problems building Ice-1.1.1 | kutsuya | Help Center | 2 | 10-28-2003 01:17 AM |