Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Undefined Symbol SetEnvironmentVariableA

From: Peter Karman <peter(at)>
Date: Fri Mar 13 2009 - 03:08:30 GMT
Grimes, Dean wrote on 3/11/09 11:09 AM:
> Hi,
> I'm new to the list and am using Swish for the first time. Configure
> runs without errors but make is does display a warning.
> Thanks,
> Dean
> Here are my system specifics:
> HP-UX B.11.23 U ia64 3197908566 unlimited-user license
> (aurora:dgrimes)[/user01/dgrimes/swish] gcc -v
> Using built-in specs.
> Target: ia64-hp-hpux11.23
> Configured with: /tmp/gcc-4.2.1.tar.gz/gcc-4.2.1/configure
> --host=ia64-hp-hpux11.23 --target=ia64-hp-hpux11.23
> --build=ia64-hp-hpux11.23 --prefix=/opt/hp-gcc-4.2.1 --with-gnu-as
> --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix
> --enable-languages=c,c++
> Thread model: posix
> gcc version 4.2.1
> Make Log:
> Make executes just fine until the very end where it displays the
> following warning:
> /bin/sh ../libtool --tag=CC --mode=link gcc -Wall  -g -O2   -o swish-e
> swish.o keychar_out.o dump.o result_output.o
> -lm 
> gcc -Wall -g -O2 -o .libs/swish-e swish.o keychar_out.o dump.o
> result_output.o  ./.libs/libswishindex.a -L/usr/local/lib
> /usr/local/lib/ -lpthread /usr/local/lib/
> ./.libs/ -lz -lm  -Wl,+b -Wl,/user01/dgrimes/swish/lib
> ld: (Warning) Unsatisfied symbol "SetEnvironmentVariableA" in file
> ./.libs/

this seems to be an issue with the src/replace/setenv.c file which was added for
2.4.6 to mimic setenv under Windows.

There's a comment in src/ that looks suspicious:

## The search library
## -- note that libreplace may have code specific for indexing only.
## -- will that be a problem on systems?

The setenv stuff is in there for ranking debugging, and I can just as easily
remove it (/me curses Windows again...) if it's going to cause problems on
non-Windows systems.

Or, someone (Dave? Bill?) with a memory of what/how libreplace magic works could
shed light on whether it's just a Makefile fix necessary or ...

Peter Karman  .  .  peter(at)
Users mailing list
Received on Thu Mar 12 23:08:25 2009