LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2020, 03:50 PM   #1
bw42
Member
 
Registered: Feb 2011
Distribution: Slackware
Posts: 65

Rep: Reputation: 51
Question Cross Compiling Glibc


I've been slowly driving myself insane with a pet project of recompiling Slackware 14.2 on my iBook G4.
One particular thorn I've ran into is getting Glibc and GCC to build right.
Mostly because of trying to get the packages rebuilt as close to Slackware as I can.

It didn't like trying to build Glibc on Slackintosh 12.1 because of the outdated GCC, and GCC was giving me annoying problems.

So in a moment of faux genius I decided to build a cross compiler and try cross compiling.

Running into an error that I've been having trouble working around. Passing flags to disable the stack protector seems to be ignored.

Was wondering if anyone else has ran into it, or any thoughts.
I'm going to try shoehorning some Debian packages onto it and see if I can use those to bootstrap rebuilding the Slackware ones in the meantime.

Quote:
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(ns_print.os): In function `__GI_ns_sprintrrf':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/ns_print.c:99: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `addrsort':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:959: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `getanswer':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:183: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `__GI_res_gethostbyname2':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:505: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(gethnamaddr.os): In function `res_gethostbyaddr':
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/gethnamaddr.c:636: undefined reference to `__stack_chk_guard'
/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv_pic.a(res_debug.os):/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/resolv/res_debug.c:287: more undefined references to `__stack_chk_guard' follow
collect2: error: ld returned 1 exit status
../Makerules:517: recipe for target '/glibc-tmp-289dda5c04f4dd6c6d44e9e53ec6098b/glibc-2.23/build-glibc-2.23/resolv/libresolv.so' failed
 
Old 05-14-2020, 02:21 PM   #2
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,219

Rep: Reputation: 299Reputation: 299Reputation: 299
Definetly you have to check how it is linking stuff your linker, probably it tries to link to something you have on your system.
Just a guess, but I would check well the configure output.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling cross gcc for powerpc, glibc trouble and73y Programming 14 06-05-2009 04:21 AM
Cross-compiling v/s cross-building kushalkoolwal Programming 3 05-13-2009 05:49 AM
RH 9.0 glibc rpm says it needs glibc-common, but glibc-common is installed whitshade Red Hat 2 04-28-2007 05:49 PM
Cross-Compiling with glibc trek413 Linux - Software 0 08-24-2006 09:34 PM
Error cross-compiling glibc, chapter 5 donbellioni Linux From Scratch 2 09-17-2004 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration