[Nautilus-list] nautilus 1.0.5, and iconv
- From: Garfycx <garfycx garfycx net>
- To: nautilus-list eazel com
- Subject: [Nautilus-list] nautilus 1.0.5, and iconv
- Date: 21 Oct 2001 08:28:48 +0200
Hi!
See what I did to configure for Mozilla source (watch the #):
#echo $ac_n "checking for Mozilla""... $ac_c" 1>&6
#echo "configure:7098: checking for Mozilla" >&5
#if test -n "$_mozilla_nspr_libs" -a \
# -n "$_mozilla_plc_libs" -a \
# -n "$_mozilla_plds_libs" -a \
# -n "$_mozilla_xpcom_libs" -a \
# -n "$_mozilla_gtk_super_win_libs" -a \
# -n "$_mozilla_gtk_moz_embed_libs"
#then
# echo "$ac_t""yes" 1>&6
#for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
#do
# Extract the first word of "$ac_prog", so it can be a program name with args.
#set dummy $ac_prog; ac_word=$2
#echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
#echo "configure:7113: checking for $ac_word" >&5
#if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
#echo $ac_n "(cached) $ac_c" 1>&6
#else
#if test -n "$CXX"; then
#ac_cv_prog_CXX="$CXX" # Let the user override the test.
#else
#IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
# ac_dummy="$PATH"
#for ac_dir in $ac_dummy; do
#test -z "$ac_dir" && ac_dir=.
#if test -f $ac_dir/$ac_word; then
#ac_cv_prog_CXX="$ac_prog"
#break
#fi
#done
#IFS="$ac_save_ifs"
#fi
#fi
#CXX="$ac_cv_prog_CXX"
#if test -n "$CXX"; then
#echo "$ac_t""$CXX" 1>&6
#else
#echo "$ac_t""no" 1>&6
#fi
#
#test -n "$CXX" && break
#done
#test -n "$CXX" || CXX="gcc"
#echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
#echo "configure:7145: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
#ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
#ac_cpp='$CXXCPP $CPPFLAGS'
#ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
#ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#cross_compiling=$ac_cv_prog_cxx_cross
#cat > conftest.$ac_ext << EOF
#line 7156 "configure"
#include "confdefs.h"
#int main(){return(0);}
#EOF
#if { (eval echo configure:7161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
# if (./conftest; exit) 2>/dev/null; then
# ac_cv_prog_cxx_cross=no
# else
# ac_cv_prog_cxx_cross=yes
# fi
#else
# echo "configure: failed program was:" >&5
# cat conftest.$ac_ext >&5
# ac_cv_prog_cxx_works=no
#fi
#rm -fr conftest*
#ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
#ac_cpp='$CPP $CPPFLAGS'
#ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
#ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
#cross_compiling=$ac_cv_prog_cc_cross
#echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
#if test $ac_cv_prog_cxx_works = no; then
# { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
#fi
#echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
#echo "configure:7187: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
#echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
#cross_compiling=$ac_cv_prog_cxx_cross
#echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
#echo "configure:7192: checking whether we are using GNU C++" >&5
#if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
# echo $ac_n "(cached) $ac_c" 1>&6
#else
# cat > conftest.C <<EOF
#ifdef __GNUC__
# yes;
#endif
#EOF
#if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
# ac_cv_prog_gxx=yes
#else
# ac_cv_prog_gxx=no
#fi
#fi
#echo "$ac_t""$ac_cv_prog_gxx" 1>&6
#if test $ac_cv_prog_gxx = yes; then
# GXX=yes
#else
# GXX=
#fi
#ac_test_CXXFLAGS="${CXXFLAGS+set}"
#ac_save_CXXFLAGS="$CXXFLAGS"
#CXXFLAGS=
#echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
#echo "configure:7220: checking whether ${CXX-g++} accepts -g" >&5
#if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
# echo $ac_n "(cached) $ac_c" 1>&6
#else
# echo 'void f(){}' > conftest.cc
#if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
# ac_cv_prog_cxx_g=yes
#else
# ac_cv_prog_cxx_g=no
#fi
#rm -f conftest*
#fi
#
#echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
#if test "$ac_test_CXXFLAGS" = set; then
# CXXFLAGS="$ac_save_CXXFLAGS"
#elif test $ac_cv_prog_cxx_g = yes; then
# if test "$GXX" = yes; then
# CXXFLAGS="-g -O2"
# else
# CXXFLAGS="-g"
# fi
#else
# if test "$GXX" = yes; then
# CXXFLAGS="-O2"
# else
# CXXFLAGS=
# fi
#fi
found_mozilla=true
MOZILLA_COMPONENT_RPATH_FLAGS=-Wl,-rpath=$_mozilla_lib_place
MOZILLA_COMPONENT_LDFLAGS=-L$_mozilla_lib_place
MOZILLA_COMPONENT_LIBS="$_mozilla_gtk_moz_embed_libs \
$_mozilla_gtk_super_win_libs \
$_mozilla_xpcom_libs \
$_mozilla_nspr_libs \
$_mozilla_plc_libs \
$_mozilla_plds_libs"
#else
# echo "$ac_t""no" 1>&6
# found_mozilla=false
#fi
Now configure works!
Ahh, and you seem to forget to check for iconv. I placed -liconv randomly in your FLAG variables because there was no general CFLAGS. It did not work :(
../libnautilus-private/.libs/libnautilus-private.so: undefined reference to `libiconv_open'
../libnautilus-private/.libs/libnautilus-private.so: undefined reference to `libiconv_close'
../libnautilus-private/.libs/libnautilus-private.so: undefined reference to `libiconv'
collect2: ld returned 1 exit status
make[3]: *** [nautilus] Error 1
make[3]: Leaving directory `/workspace/software/gnome/nautilus-1.0.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/workspace/software/gnome/nautilus-1.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/workspace/software/gnome/nautilus-1.0.5'
make: *** [all-recursive-am] Error 2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]