#5 Compilation problems in Mdk 8.2

closed
Davy Durham
None
5
2002-11-19
2002-11-04
Anonymous
No

I downloaded rezound 0.5 src.rpm, and tried to compile
with rpm --rebuild on my Mandrake 8.2. After installing
a number of packages compilation actually started, but
ends after a long while with:

/usr/bin/ld: cannot find -lSM
collect2: ld returned 1 exit status
make[2]: *** [rezound] Error 1

Any help with this would be appreciated.

Regards,

Magnus Larsson
magnus@vista.se

Discussion

1 2 > >> (Page 1 of 2)
  • Davy Durham
    Davy Durham
    2002-11-05

    • assigned_to: nobody --> ddurham
     
  • Davy Durham
    Davy Durham
    2002-11-05

    Logged In: YES
    user_id=28588

    You need to install the XFree86-devel package.... Most
    library packages have a supplimentary zzz-devel package that
    contains the .h and .a files for use when compiling/linking
    against those libraries.. these .h and .a files are not
    normally necessary if you're only running programs that use
    that library being as they have already been compiled.

    Please let me know if this fixes your problem.

     
  • Logged In: NO

    Hi!

    Seems XFree86-devel is already installed (according to
    urpmi). Any other package that I should check?

    regards,

    Magnus Larsson
    magnus@vista.se

     
  • Davy Durham
    Davy Durham
    2002-11-06

    Logged In: YES
    user_id=28588

    Oh okay... well I suppose this is a problem only because I
    build the rpm to link against static libraries only. This
    eliminates almost any dependancies for the binary rpm. But
    anyway it looks like mandrake is splitting the dynamic and
    static libraries into separate packages which I don't think
    is usually. So, you need to install the XFree86-static-libs
    package.

    Sorry about that.

    -- Davy

     
  • Logged In: NO

    Hi!

    well, this is beginning to look like an interesting series.
    That helped, but now it returns another error:
    /usr/bin/ld: cannot find -lcups

    I installed cups-devel, but that didn't help. Any ideas?

    Regards,

    Magnus Larsson
    magnus@vista.se

     
  • Davy Durham
    Davy Durham
    2002-11-07

    Logged In: YES
    user_id=28588

    That would actually be the libcups-devel or libcups1-devel
    pacakage... cups-devel may be for developing for the cups
    application where libcups-devel is for developing using the
    cups library...

    The reason it's having so many dependacies is because Fox
    does a lot of stuff (opengl, many image formats, printing,
    and others)

    It's a blessing and a curse.

    And again, you wouldn't have run into the XFree86-static
    problem if I didn't have the rpm building statically...

    Any reason why you don't just install the rpm itself? Why
    rebuild?

     
  • Logged In: NO

    Hi!

    I dont use the existing rpm, because of dependency problems,
    that I hoped to avoid by rebuilding. Using the
    rezound-0.5.1beta-1.i586.rpm gives me a dependecy on
    libstdc++.so.5 and <same>(GLIBCPP_3.2) which are in package
    that are older than already installed package (according to
    urpmi).

    libcups-devel and libcups1-devel were already installed, so
    unfortunately the rebuild still halts att the same point.
    Sorry to make so much trouble. Do you have any suggestions
    on how to proceed?

    Regards,

    Magnus Larsson

     
  • Davy Durham
    Davy Durham
    2002-11-09

    Logged In: YES
    user_id=28588

    Hmm.. I'm really surprised that the rpm has that libstdc++
    dependancy.. maybe I needed to have libstdc++-static
    installed when I built it so it would pick up the static
    libs instead of the dynamic ones.. that is if such a
    libstdc++-static package exists.
    Well another thing you could try is to use the mandrake
    cooker package..
    http://fr2.rpmfind.net//linux/RPM/cooker/contrib/RPMS/rezound-0.5.1-0.1mdk.i586.html

    Hope this works... if not, I'll see if the libstdc++-static
    package exists, rebuild and repost the binary rpm on
    sourceforge. one of my goals was to make that rpm have
    literally no dependancies.

     
  • Logged In: NO

    Hi!

    I am sorry, that package wont work either. Dependency problems:
    libstdc++.so.5
    libvorbisenc.so.2
    libvorbisfile.so.3
    libstdc++.so.5(GLIBCPP_3.2)

    the libstdc++ that are installed seems to be 3, not 5. Is it
    that Mdk 8.2 is too old for this package, and upgrading to
    Mdk 9 would help?

    Regards,

    Magnus Larsson
    Magnus Larsson

     
  • Davy Durham
    Davy Durham
    2002-11-10

    Logged In: YES
    user_id=28588

    Oh.. I didn't realize you were not using mdk 9.. I was mixed
    up with another support request I got.

    I think you would do better to download the source tarball
    and compile it.

    If you're not familiar with doing this you can untar it and
    read docs/INSTALL or just see if it works the first time and
    run:
    ./configure
    then
    ./make
    then as root
    ./make install

    Let me know if this works for you..

     
1 2 > >> (Page 1 of 2)