Opened 16 years ago

Closed 15 years ago

#18326 closed defect (fixed)

texlive_base: library not found -lSM

Reported by: milosh@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: texlive_base lSM Cc: normanmacintyre@…, evan@…, daniel@…, yokota33@…
Port: texlive_base xorgs-lsm

Description

Reported by Norman MacIntyre

The port texlive_base does not build correctly on a PPC running OS X 10.5.6.

/usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/
_opt_local_var_macports_sources_rsync
.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/
libs/freetype/test/arch/unix/../.. -I.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/
libs/freetype/test/arch/unix/../../../lib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/
libs/freetype/test/arch/unix/../../../lib/extend -O2 -isystem/opt/
local/include -DX11 -DLOCALEDIR=\"\" -o ftdump ftdump.o common.o ../
lib/.libs/libttf.a -lm -lSM -lICE -lm
ld: library not found for -lSM

Note: this seems similar to bug #18206.

Attachments (1)

patch-Portfile.diff (558 bytes) - added by yokota33@… 16 years ago.
This patch solves the problem, by adding search path for X explicitly

Download all attachments as: .zip

Change History (8)

comment:1 Changed 16 years ago by evan@…

I am experiencing this issue too. The odd thing is that libsm is installed. The error text I get is:

--->  Building texlive_base
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007" && make all " returned error 2
Command output: make[2]: Making `all' in `uconv'
DYLD_LIBRARY_PATH=../../lib:../../stubdata:../../tools/ctestfw:$DYLD_LIBRARY_PATH   ../../bin/pkgdata -p uconvmsg -O pkgdata.inc -m static -s uconvmsg -d uconvmsg -T uconvmsg uconvmsg/uconvmsg.lst
gnumake[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-local'.
make[1]: Making `all' in `samples'
make[2]: Making `all' in `date'
make[3]: Nothing to be done for `all'.
make[2]: Making `all' in `cal'
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all-local'.
make[1]: Making `all' in `test'
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all-local'.
making all in libs/freetype
cd lib; make -f arch/unix/Makefile all
rm -f memory.c file.c mutex.c
ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/lib/arch/unix/../../ttmemory.c memory.c
ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/lib/arch/unix/../../arch/unix/ttmmap.c file.c
ln -s /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/lib/arch/unix/../../ttmutex.c mutex.c
make -f arch/unix/Makefile LIB_FILES="freetype.lo ftxkern.lo ftxgasp.lo ftxpost.lo ftxcmap.lo ftxsbit.lo ftxwidth.lo ftxerr18.lo ftxgsub.lo ftxgpos.lo ftxgdef.lo ftxopen.lo" libttf.la
make[3]: `libttf.la' is up to date.
cd test; make -f arch/unix/Makefile all
../libtool --mode=link  /usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../.. -I.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../../../lib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../../../lib/extend -O2   -isystem/opt/local/include -DX11 -DLOCALEDIR='""' -o ftdump ftdump.o common.o \
           ../lib/libttf.la -lSM -lICE  -lm 
/usr/bin/gcc-4.0 -I. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../.. -I.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../../../lib -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_tex_texlive_base/work/texlive_base-2007/libs/freetype/test/arch/unix/../../../lib/extend -O2 -isystem/opt/local/include -DX11 -DLOCALEDIR=\"\" -o ftdump ftdump.o common.o ../lib/.libs/libttf.a -lm -lSM -lICE -lm
ld: library not found for -lSM
collect2: ld returned 1 exit status
make[2]: *** [ftdump] Error 1
make[1]: *** [tttest] Error 2
make: *** [all] Error 1

Error: The following dependencies failed to build: texlive_base
Error: Status 1 encountered during processing.

And yet I have on this machine:

tianyi-suns-macbook-pro-15:Resume tianyi$ find /opt -name 'libSM*'
/opt/local/lib/libSM.6.0.0.dylib
/opt/local/lib/libSM.6.dylib
/opt/local/lib/libSM.a
/opt/local/lib/libSM.dylib
/opt/local/lib/libSM.la
/opt/local/var/macports/distfiles/xorg-libsm/libSM-1.1.0.tar.bz2
/opt/local/var/macports/software/xorg-libsm/1.1.0_0/opt/local/lib/libSM.6.0.0.dylib
/opt/local/var/macports/software/xorg-libsm/1.1.0_0/opt/local/lib/libSM.6.dylib
/opt/local/var/macports/software/xorg-libsm/1.1.0_0/opt/local/lib/libSM.a
/opt/local/var/macports/software/xorg-libsm/1.1.0_0/opt/local/lib/libSM.dylib
/opt/local/var/macports/software/xorg-libsm/1.1.0_0/opt/local/lib/libSM.la

This computer is Intel architecture, OS X 10.5.6.

comment:2 Changed 16 years ago by evan@…

I don't have the computer with me so I can't give you better details, but I ended up hacking this to get it working, and just thought I'd share what it was that I did. It turns out that the Makefile under work/texlive_base-2007/libs/freetype wasn't searching in /opt/local/lib so I hacked that Makefile to do -L/opt/local/lib, and from there I was able to build and install this port. I guess whoever fixes this probably needs to patch the code to have libs/freetype respect the library settings set further up in the texlive source code, but I'm not really familiar with how all that works.

comment:3 Changed 16 years ago by evan@…

Cc: evan@… added

Cc Me!

comment:4 Changed 16 years ago by daniel@…

Cc: daniel@… added

Cc Me!

Changed 16 years ago by yokota33@…

Attachment: patch-Portfile.diff added

This patch solves the problem, by adding search path for X explicitly

comment:5 Changed 16 years ago by yokota33@…

Cc: yokota33@… added

Cc Me!

comment:6 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:7 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Was fixed in r50543.

Note: See TracTickets for help on using tickets.