This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

re: link with redhat 9 glibc on redhat 7.3


Co Ngai Fung wrote:
I am trying to link with the redhat 9 glibc on redhat 7.2, but it fail,
I copy the glibc of redhat 9 to /build/compilers/sysroot/redhat-9/ and
link with the LDFLAG="-B /build/compilers/sysroot/redhat-9/usr/lib -Wl,-rpath-link,/build/compilers/sysroot/redhat-9/usr/lib", but it fail
to link, the output is as below,


/build/compilers/sysroot/redhat-9/usr/lib/crt1.o: In function `_start':
../sysdeps/i386/elf/start.S:71: undefined reference to `__libc_csu_fini'
../sysdeps/i386/elf/start.S:72: undefined reference to `__libc_csu_init'
misc.o: In function `parse_line':
misc.o(.text+0x4e8): undefined reference to `__ctype_b_loc'

Are you trying to use a Red Hat 7.3 system to build apps that run on Red Hat 9? That's hard with the tools that come with the system. You can do it fairly easily using crosstool, though; see http://kegel.com/crosstool. The trick is to embrace cross-compiling, i.e. not using your normal system compiler, linker, and libraries, and instead overriding CC etc. when configuring your apps to point to the cross-compiler you built with crosstool. - Dan

--
My technical stuff: http://kegel.com
My politics: see http://www.misleader.org for examples of why I'm for regime change

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]