Hello!


I am having trouble locating the mistake I made that lead to the following 
error during Expect 5.45 make process (Ch 5.11, LFS 7.2)...


::snip::



rm -f libexpect5.45.so
gcc -shared -pipe -O2 -fomit-frame-pointer -Wall -fPIC  -Wl,--export-dynamic  
-o libexpect5.45.so exp_command.o expect.o exp_inter.o exp_regexp.o exp_tty.o 
exp_log.o exp_main_sub.o exp_pty.o exp_trap.o exp_strf.o exp_console.o 
exp_glob.o exp_win.o exp_clib.o exp_closetcl.o exp_memmove.o exp_tty_comm.o 
exp_chan.o Dbg.o pty_termios.o exp_select.o exp_event.o -lutil -lieee -lm 
-Wl,-rpath,/tools/lib -L/tools/lib -ltclstub8.5 
: libexpect5.45.so
gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" 
-DPACKAGE_VERSION=\"5.45\" -DPACKAGE_STRING=\"expect\ 5.45\" 
-DPACKAGE_BUGREPORT=\"\" -DBUILD_expect= -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 
-D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ 
__attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 
-DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 
-DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DUSE_TCL_STUBS=1 -DUSE_TCL_STUBS=1 
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYSMACROS_H=1 -DHAVE_STROPTS_H=1 
-DHAVE_SYS_FCNTL_H=1 -DRETSIGTYPE=void -DHAVE_SYS_TIME_H=1 
-DTIME_WITH_SYS_TIME=1 -DHAVE_STRUCT_TM_TM_ZONE=1 -DHAVE_TM_ZONE=1 
-DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 
-DHAVE_OPENPTY=1 -DHAVE_MEMMOVE=1 -DHAVE_SYSCONF=1 -DHAVE_STRFTIME=1 
-DHAVE_STRCHR=1 -DHAVE_TIMEZONE=1 -DHAVE_SIGLONGJMP=1 -DHAVE_MEMCPY=1 
-DWNOHANG_BACKUP_VALUE=1 -DSELECT_MASK_TYPE=fd_set -DHAVE_PTMX=1 
-DHAVE_TCSETATTR=1 -DPOSIX=1 -DHAVE_TERMIO=1 -DHAVE_TERMIOS=1 -DSETPGRP_VOID=1 
-DHAVE_SV_TIMEZONE=1  -DTCL_DEBUGGER -DUSE_NON_CONST 
-DSCRIPTDIR=\"/tools/lib/expect5.45\" -DEXECSCRIPTDIR=\"/tools/lib/expect5.45\" 
-DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" -I. -I"." -I"/tools/include"    
-pipe -O2 -fomit-frame-pointer -Wall -fPIC  -c `echo exp_main_exp.c` -o 
exp_main_exp.o
gcc \
                 -pipe -O2 -fomit-frame-pointer -Wall -fPIC  \
                 -Wl,--export-dynamic  \
                -o expect exp_main_exp.o \
                -L/mnt/lfs/sources/expect5.45 -lexpect545 \
                -L/tools/lib -ltcl8.5 \
                -ldl  -lieee -lm \
                -Wl,-rpath,/tools/lib \
                -Wl,-rpath,/tools/lib/expect5.45
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.7.1/../../../../i686-pc-linux-gnu/bin/ld:
 cannot find -lexpect545
collect2: error: ld returned 1 exit status
make: *** [expect] Error 1



::/snip::


My process has involved taking a look at this support request: 
http://article.gmane.org/gmane.linux.lfs.support/32614/
Though it is a different error, I followed the investigative advice given there 
in case it should offer a clue:


Output of command: $LFS_TGT-gcc -dumpspecs | grep ld-linux
%{muclibc:/tools/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/tools/lib/ld-linux.so.2}}


The path for ld-linux.so.2 is in /tools/lib as expected, but I'm unsure if the 
other details are correct.


Output of command: ls -l /tools/lib/libutil.so.1
lrwxrwxrwx 1 lfs lfs 15 Feb  5 17:05 /tools/lib/libutil.so.1 -> libutil-2.16.so




The steps I have taken otherwise have been rather basic back-tracking: I 
re-made Tcl and then tried Expect again and reproduced the error exactly.  I 
re-made GCC with bootstrapping enabled to ensure that my compiler was not 
flawed before re-making Tcl and trying Expect again...  Once again the same 
error was thrown.  I am now in the process of rebuilding Glibc and Binutils...


I guess I'm looking for input as where to look next...  Any thoughts will be 
greatly appreciated.



Nicholas McCurdy
[email protected]

 
 
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to