--- Begin Message ---
>> ...
>>     Nelson>     /usr/local/sparc-sun-solaris2.7/bin/ld: cannot open libguile.so.14: 
>No such file or directory
>>     Nelson>     collect2: ld returned 1 exit status
>>
>> This is odd for two reasons:
>>
>> - you say 2.8, but the path to ld in the error message says 2.7
>>
>> - If Guile fails to link, as shown here, how did you get as far as the
>>   `make check' errors reported above?
>> ...

gcc is version 2.95.3; it was installed while we were still running
Solaris 2.7.  However, it works just fine under 2.8, so there has been
no reason to rebuild it under that system.

The build was run like this:

env CC="gcc" CXX=g++ LDFLAGS=" -Wl,-rpath /usr/local/lib -L/usr/local/lib" ./configure
make && ( make check || make test )

Shared library links are a big nuisance, since on many systems, they
cannot be used until they are either installed in special places, or a
linker configuration file (e.g., /etc/ld.so.conf on GNU Linux systems)
is updated, or an explicit path to them is provided at link time.

After several experiments, I found that this workaround got a
successful build, and a mostly successful validation run on Solaris
2.8:

        % env LD_LIBRARY_PATH=`pwd`/libltdl/.libs:`pwd`/libguile/.libs \
                make LDFLAGS="-L`pwd`/libltdl/.libs -L`pwd`/libguile/.libs"
        ...
        Testing /local/build/guile-1.5.6/pre-inst-guile ...
        with GUILE_LOAD_PATH=/local/build/guile-1.5.6/test-suite
        FAIL: syncase.test: (ice-9 syncase) loads

        Totals for this test run:
        passes:                 2115
        failures:               1
        unexpected passes:      0
        expected failures:      17
        unresolved test cases:  0
        untested test cases:    0
        unsupported test cases: 9
        errors:                 0

        FAIL: check-guile
        ===================
        1 of 1 tests failed
        ===================

I then repeated that on Solaris 2.7, dropping the "env
LD_LIBRARY_PATH=...".  This got the same test output as on 2.8, so at
least for test purposes, LD_LIBRARY_PATH need not be set on Sun
Solaris 2.x.

-------------------------------------------------------------------------------
- Nelson H. F. Beebe                    Tel: +1 801 581 5254                  -
- Center for Scientific Computing       FAX: +1 801 585 1640, +1 801 581 4148 -
- University of Utah                    Internet e-mail: [EMAIL PROTECTED]  -
- Department of Mathematics, 110 LCB        [EMAIL PROTECTED]  [EMAIL PROTECTED] -
- 155 S 1400 E RM 233                       [EMAIL PROTECTED]                    -
- Salt Lake City, UT 84112-0090, USA    URL: http://www.math.utah.edu/~beebe  -
-------------------------------------------------------------------------------


_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile
--- End Message ---

Reply via email to