Poor Yorick wrote: > I'm an trying to build autogen with the following options: > > env PATH=/path/to/bin:"$PATH" > LDFLAGS="-L/grid/gro/vol/gbl_statcomp_devel/x86-32-linux/toolchin/lib > -Wl,-rpath,/path/to/lib" ./configure > > It builds, but then make check returns errors like this: > > ++ gcc -std=gnu99 -DHAVE_CONFIG_H -g -O2 -DTEST_TEST_ERRORS_OPTS > -I/path/to/src/autogen-5.9.2 I/path/to/src/autogen-5.9.2/agen5 > -I/path/to/src/autogen-5.9.2/autoopts -I/path/to/guile-1.8.1/include -pthread > -o errors errors.c /path/to/src/autogen-5.9.2/autoopts/.libs/libopts.a > /path/to/src/autogen-5.9.2/autoopts/.libs/libguileopts.a -Wl,-R > -L/path/to/lib -Wl,-rpath,/path/to/lib -pthread -lguile -lltdl > -L/path/to/guile-1.8.1/lib -L/path/to/lib -Wl,-rpath,/path/to/lib -lgmp > -lcrypt -lm -lltdl > /path/to/lib: file not recognized: Is a directory > collect2: ld returned 1 exit status > > Notice the '-Wl,-R' in this line. The linker expects this to be followed by > a directory. It seems that it takes the '-L' from the next argument as the > argument to -R, and then sees /path/to/lib as one of the files to be compiled. > > If line 24444 of the configure file is changed from this: > > AG_LDFLAGS="${ag_cv_test_ldflags}" > > to this: > > AG_LDFLAGS="" > > make check succeeds. > > Seems like a bug. >
Alas, poor Yorick, it is a bug, but that isn't the fix. That line appears in this context. So, in your context "$ag_cv_test_ldflags" was set to something other than "no". The value did not work and the empty string would have. We need to determine hot to adjust the setting of "ag_cv_test_ldflags" for your context. Thanks! - Bruce # Check to see if runtime library dirs can be specified. { echo "$as_me:$LINENO: checking whether runtime library dirs can be specified" >&5 echo $ECHO_N "checking whether runtime library dirs can be specified... $ECHO_C" >&6; } if test "${ag_cv_test_ldflags+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ag_cv_test_ldflags=`exec 2> /dev/null echo 'int main() { return 0; }' > conftest.$ac_ext libs="${LIBS}" LIBS="${LIBS} -Wl,-R/tmp" if (eval $ac_link) > /dev/null 2>&1 then echo '-Wl,-R' ; rm -f conftest* ; exit 0 ; fi LIBS="${libs} -R/tmp" if (eval $ac_link) > /dev/null 2>&1 then echo '-R' ; rm -f conftest* ; exit 0 ; fi rm -f conftest* ; exit 1` if test $? -ne 0 then ag_cv_test_ldflags=no elif test -z "$ag_cv_test_ldflags" then ag_cv_test_ldflags=no fi fi # end of CACHE_VAL of ag_cv_test_ldflags { echo "$as_me:$LINENO: result: ${ag_cv_test_ldflags}" >&5 echo "${ECHO_T}${ag_cv_test_ldflags}" >&6; } if test "X${ag_cv_test_ldflags}" != Xno then AG_LDFLAGS="${ag_cv_test_ldflags}" else AG_LDFLAGS='' fi ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users