Path: news.daimi.aau.dk!not-for-mail From: Manmathan Muthukumarapillai Newsgroups: comp.lang.beta Subject: Linking problem with RedHat 5 and other glibc 2.x.x based Linux-systems Date: Thu, 14 May 1998 15:11:33 +0200 (MET DST) Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 46 Approved: mailtonews@daimi.aau.dk Distribution: world Message-ID: <199805141311.PAA20901@noatun.mjolner.dk> Reply-To: Manmathan Muthukumarapillai NNTP-Posting-Host: daimi.daimi.aau.dk Xref: news.daimi.aau.dk comp.lang.beta:11575 Linking problem with RedHat 5 and other glibc 2.x.x based Linux-systems ======================================================================= To avoid problem do the following 2 steps: ------------------------------------------ 1) Create two emty objectfiles crtbegin.o and crtend.o and place it inside /usr/lib/ You can do it in the following way ----------------------------------- echo "manmathan1 () {}\n" > crtbegin.c echo "manmathan2 () {}\n" > crtend.c gcc -c crtbegin.c crtend.c mv crtbegin.o crtend.o /usr/lib/ 2) Set the eviroment variable BELALINKOPTIONS to: -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -dc -dp -Bstatic -X From bash: ---------- export BETALINKOPTIONS='-m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -dc -dp -Bstatic -X' From tcsh: ---------- setenv BETALINKOPTIONS '-m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -dc -dp -Bstatic -X' The next release of Mjolner System should work fine with the newer C-libraries, without any adjustments. Sincerely, Manmathan Muthukumarapillai / Mjolner Informatics +++++++++++++++++++ BETA information Sources ++++++++++++++++++++++++ + Mjolner Informatics | Phone: +45 8620 2000 + + Science Park Aarhus | Direct: +45 8620 2011 local 2572 + + Gustav Wieds Vej 10 | Fax: +45 8620 1222 + + DK-8000, Aarhus C, Denmark | E-mail: info@mjolner.com + + WWW : http://www.mjolner.com -and- http://www.daimi.aau.dk/~beta + + FAQ : http://www.daimi.aau.dk/~beta/FAQ News: comp.lang.beta + + News: comp.lang.beta + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++