Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56469 - I compiled media-libs/jpeg, but the .so files are not created
Summary: I compiled media-libs/jpeg, but the .so files are not created
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-08 10:30 UTC by Yuta SATOH (RETIRED)
Modified: 2004-07-13 20:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH (RETIRED) gentoo-dev 2004-07-08 10:30:03 UTC
.so files (libjpeg.so , libjpeg.so.62 and libjpeg.so.62.0.0) are created in x86 and ppc.
However, .so files are not created in PPC64.
Only libjpeg.a and libjpeg.la file are created.

Moreover, emerge is successful.


Reproducible: Always
Steps to Reproduce:
1. emerge media-libs/jpeg
2. ls /usr/lib/libjpeg* 

Actual Results:  
Only libjpeg.a and libjpeg.la are displayed.


Expected Results:  
.so files should be created and displayed.


I think that a problem is in ltconfig contained in source.
because it confirmed whether /lib/ld.so.1 would exist and operation is branched.
but, This file does not exist in PPC64. (ld64.so.1 exists instead.)


The example of solution

1) A code is added to an ebuild file. (to inside of src_unpack)
   use ppc64 && cd ${S}; sed -i 's:ld.so:ld64.so:g' ltconfig

2) Symbolic Link is used.
   ln -s /lib/ld64.so.1 /lib/ld.so.1


misc

#ldd /usr/lib/libjpeg.la
/usr/bin/ldd: line 1: /lib/ld.so.1: No such file or directory
ldd: /lib/ld.so.1 exited with unknown exit code (127)



Thank you.
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2004-07-08 10:34:48 UTC
I'm sorry.
Reassign to ppc64 architecture team.
Comment 2 Yuta SATOH (RETIRED) gentoo-dev 2004-07-08 10:35:40 UTC
There is another package with the same problem.
They are most packages by which ltconfig is contained in the source file.

example
* x11-libs/gtk+-1.2.10-r11
Comment 3 Yuta SATOH (RETIRED) gentoo-dev 2004-07-08 10:36:26 UTC
Especially I think that this portion in ltconfig is a problem.

linux-gnu*)
  version_type=linux
  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
  soname_spec='${libname}${release}.so.$major'
  finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
  shlibpath_var=LD_LIBRARY_PATH

  if test -f /lib/ld.so.1; then
    dynamic_linker='GNU ld.so'
  else
    # Only the GNU ld.so supports shared libraries on MkLinux.
    case "$host_cpu" in
    powerpc*) dynamic_linker=no ;;
    *) dynamic_linker='Linux ld.so' ;;
    esac
  fi
  ;;
Comment 4 Yuta SATOH (RETIRED) gentoo-dev 2004-07-10 09:28:47 UTC
I'm sorry.

The problem about ldd in misc had another reason.
Please see bug #56615.
Comment 5 Tom Gall (RETIRED) gentoo-dev 2004-07-11 19:33:40 UTC
with the fix to bug #56615, this class of errors appears to be fixed.
Comment 6 Tom Gall (RETIRED) gentoo-dev 2004-07-11 19:34:15 UTC
stick a fork in it