Opened 18 years ago
Closed 17 years ago
#1078 closed enhancement (fixed)
make sure env variable D is unset before building
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | psphot | Version: | 2.5 |
| Severity: | minor | Keywords: | |
| Cc: | ljhuang@… |
Description
I ran into an old problem again building ipp-2.5: the ltmain.sh used at least in building psphot checks a global environment variable D. If that is set by the user, building fails with weird errors where libtool looks for a library in the wrong directory.
psbuild should make sure that no environment variable D is set.
Also, I think I needed to unset F77 and F2C which were set by default for the iraf installation in our system, but led to the wrong f77 compiler being found by psbuild.
The libtool version checking the D env variable seems to be an inofficial one created by gentoo, so maybe that's actually a bug rather than an enhancement request.
In any case, it would be nice if D, F77 and F2C were all unset by psbuild.
Change History (4)
comment:1 by , 18 years ago
| Cc: | added |
|---|
comment:3 by , 18 years ago
I unset D, F77 and F2C
I still have same error messages.
Did I need to unset other environment variable?
Here are the environmnet variable in my C shell
===================================================
COLORS /etc/DIR_COLORS.xterm
HOST kuiyun.asiaa.sinica.edu.tw
Script /penguin/apps/.profile.d/zlast.csh
_ set
addsuffix
args default
argv ()
bindir /kuiyun/ast/ipp-2.5/psconfig/default.lin64/bin
cdpath (. /asiaa/home/ljhuang)
cwd /kuiyun/ast/ipp-2.5/psconfig
dirstack /kuiyun/ast/ipp-2.5/psconfig
dspmbyte utf8
echo_style both
edit
file /asiaa/home/ljhuang/.i18n
gid 101
group htt
history 20
home /asiaa/home/ljhuang
incdir /kuiyun/ast/ipp-2.5/psconfig/default.lin64/include
killring 30
libdir /kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib
mach x86_64
mandir /kuiyun/ast/ipp-2.5/psconfig/default.lin64/man
name /kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib/pkgconfig
newpath
nothing4aips
notify
owd
path (. /penguin/apps/aips/31DEC07/UNKNOWN/SYSTEM /penguin/apps/aips/31DEC07/SYSTEM/UNIX /penguin/apps/gildas-exe/pc-fedora1-ifort/bin /penguin/apps/gildas-exe/pc-fedora1-ifort/libexec /kuiyun/ast/ipp-2.5/psconfig/default.lin64/bin /penguin/apps/headas-6.1.2/x86_64-linux-gnu/bin /asiaa/home/ljhuang/bin /bin /usr/local/bin /usr/jsy/bin /usr/bin /usr/bin/X11 /usr/local/gnu /usr/include /asiaa/home/ljhuang/X11/include /asiaa/home/ljhuang/X11/bin /kuiyun/ast/wcstools-3.7.2/bin /kuiyun/ast/skycat-3.0/bin /asiaa/home/ljhuang/subtract/bin /asiaa/home/ljhuang/mosaic/bin /kuiyun/ast/ipp-2.5/Ohana/bin /penguin/apps/bin /usr/local/bin;/penguin/apps/sonnet/bin /penguin/apps/gildas-exe/pc-fedora1-ifort/bin /penguin/apps/midas/03SEPpl1.2/system/unix /penguin/apps/midas/bin_Linux /penguin/apps/pgi/linux86/bin)
pathlist /kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib/pkgconfig
perlplace /usr/bin/perl
plibdir /kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib
prompt %n@%M %/ >
prompt2 %R?
prompt3 CORRECT>%R (y|n|e|a)?
shell /bin/tcsh
shlvl 4
show_aclocal_flags 0
show_arch 0
show_autogen 0
show_bin 0
show_configure 0
show_cpath 0
show_include 0
show_ld_library_path 0
show_library_path 0
show_libs 0
show_man 0
show_path 0
show_perl5lib 0
show_perlbuild 0
show_perldir 0
show_pkg_config_path 0
show_prefix 0
show_psconfdir 0
show_psversion 0
sourced 1
status 0
sys Linux
tcsh 6.13.00
term xterm
tty pts/10
uid 579
user ljhuang
version tcsh 6.13.00 (Astron) 2004-05-19 (x86_64-unknown-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec
xtralibs (/lib /usr/lib /usr/X11R6/lib /usr/local/lib /lib64 /usr/lib64 /usr/X11R6/lib64)
xtrapath (/usr/include /usr/local/include /usr/X11R6/include)
yes
==============================================================================
comment:4 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
this is now done automatically by psbuild.

How to unset environment variable D ?
I met same problem in building psphot.
The error messages I have are
===============================================================
make[2]: Entering directory `/kuiyun/ast/ipp-2.5/psphot/src'
/bin/sh ../libtool --mode=link --tag=CC gcc -std=gnu99 -pipe -O0 -g -Wall -Werror -o psphot -L/kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib -lpslib -L/kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib -lpsmodules -lpslib -L/kuiyun/ast/ipp-2.5/Ohana/lib -lkapa -ldvo -lFITS -lohana -lX11 -ljpeg -lpng psphot-psphot.o psphot-psphotArguments.o psphot-psphotCleanup.o psphot-psphotImageLoop.o psphot-psphotMosaicChip.o psphot-psphotParseCamera.o libpsphot.la
libtool: link: warning: library `/kuiyun/ast/ipp-2.5/psconfig/default.lin64/lib/libpslib.la' was moved.
libtool: link: cannot find the library `/usr/local/lib/libpslib.la'
make[2]: * [psphot] Error 1
make[2]: Leaving directory `/kuiyun/ast/ipp-2.5/psphot/src'
make[1]: * [all] Error 2
make[1]: Leaving directory `/kuiyun/ast/ipp-2.5/psphot/src'
make: * [all-recursive] Error 1
================================================================