www.delorie.com/djgpp/bugs/show.cgi   search  
Bug 000332

When Created: 12/07/2000 13:10:21
Against DJGPP version: 2.03
By whom: newted@alfarrabio.di.uminho.pt
Abstract: problem related to MAKEFILE FLAG'S (-fPIC) (creates _GLOBAL_OFFSET_TABLE_ undef. ref.)
I know that DJGPP does not permit SHARED OBJECTS, but you have a problem, 
your MAKEFILE program permits the use of the -fPIC FLAG, you sould remove it, 
because it creates a reference to _GLOBAL_OFFSET_TABLE_ witch is not suported by
 your libc.a.
I believe that this error is due to the fact that you have imported some
 libraries from LINUX or you tried to  implement the use of SHARED OBJECTS in DOS.

I had problems when i was porting my Artificial Neuronal Network to DOS, i use
 in LINUX shared objects, and i had problems, had to remove the flag "-shared", 
 but i forgot to remove the "-fPIC" flag.. you can imagine my problems...
I started to back-track the problem with "nm" and i found that the 
 "_GLOBAL_OFFSET_TABLE_" reference was not inlcuded in you libc.a, but in 
my libc.so.6 in LINUX it exists!

Try to fix it!

My program work's perfectly in DOS, thank you ! :)

keep up the good work!

PS: i did not ask this in comp.os.msdos.djgpp because i found out the answer 
    and found a small bug that i think that is easy to repear...
	Joao Miguel from Portugal

Note added: 12/12/2000 04:06:12
By whom: eliz@is.elta.co.il
This is not a DJGPP bug: the user used -fPIC, which isn't supported by
the standard library.

Make cannot be blamed as well, since it's not Make's business to tell
users which switches the can and cannot use.

I'm closing this report.

Closed on 12/12/2000 04:07:18: Usage error, not a bug.
By whom: eliz@is.elta.co.il

Note added: 12/13/2000 16:23:07
By whom: newted@alfarrabio.um.geira.pt
 I still believe that it is a bug, but who am i to do something...

Note added: 12/13/2000 16:23:18
By whom: newted@alfarrabio.um.geira.pt
 I still believe that it is a bug, but who am i to do something...
 Joao Miguel



  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2010   by DJ Delorie     Updated Jul 2010