Results 1 to 6 of 6

Thread: Building Ice-3.3.0 on CentOS 4.6

  1. #1
    stwhit is offline Registered User
    Name: Stuart White
    Organization: Personal
    Project: CORBA replacement
    Join Date
    Aug 2008
    Posts
    4

    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.

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    Hi Stuart,

    You need to install the nptl-devel package on CentOS 4.6 as mentioned in the INSTALL.LINUX file from you Ice source distribution.

    Cheers,
    Benoit.

  3. #3
    stwhit is offline Registered User
    Name: Stuart White
    Organization: Personal
    Project: CORBA replacement
    Join Date
    Aug 2008
    Posts
    4
    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?

  4. #4
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    Hi,

    Sorry, I didn't notice that you had nptl-devel installed. You have installed the nptl-devel package from your CentOS 4.6 distribution, right?

    I'm afraid I don't understand this error and why the linker is looking for /lib/tls/i486/libpthread.so.0. On my CentOS 4.6 installation, libpthread.so.0 is located in /lib/tls:

    Code:
    [benoit@xps cpp]$ ldd lib/libSlice.so
            ...
            libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00111000)
            ...
    [benoit@xps cpp]$ ldd bin/slice2cpp
            ...
            libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00111000)
            ...
    It sounds like an issue with your OS or compiler installation. You could try compiling and linking a sample program with -lpthread (with and without -L/usr/lib/nptl) and see if it works.

    Cheers,
    Benoit.

  5. #5
    stwhit is offline Registered User
    Name: Stuart White
    Organization: Personal
    Project: CORBA replacement
    Join Date
    Aug 2008
    Posts
    4
    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
    When I installed the i386 version of the RPM, I received the error.

    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
    Next, I uninstalled the i386 version of the nptl RPM and installed the i686 version, and now the compile is working.

    So, I'm curious - is this expected? Which version of the RPM do you have installed?

    Thanks again!

  6. #6
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,140
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Compile 3.3.1 on centos 5.5
    By criminala in forum Help Center
    Replies: 8
    Last Post: 04-02-2011, 06:54 AM
  2. Centos 5.4 php install issues
    By KingPin in forum Help Center
    Replies: 2
    Last Post: 01-26-2010, 09:16 PM
  3. Can not install ICE in CentOS 5.2
    By anhpnt in forum Help Center
    Replies: 1
    Last Post: 08-12-2009, 11:59 PM
  4. Replies: 6
    Last Post: 06-09-2009, 09:42 PM
  5. Replies: 10
    Last Post: 04-23-2009, 04:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •