public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* Building libraries
@ 2001-05-12 12:49 punt
  2001-05-14  9:44 ` Ian Roxborough
  0 siblings, 1 reply; 5+ messages in thread
From: punt @ 2001-05-12 12:49 UTC (permalink / raw)
  To: sourcenav

As anyone gotten 5.0 to successfully build a library?  I noticed the link 
option between library and executable is grayed, but still selectable. When I 
select library, and do a build, it bombs at the link process (it is not 
asking gcc or the librarian to create the lib file).

Anyone else have this ?

Charles

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Building libraries
@ 2001-05-15  1:03 Bernard Dautrevaux
  0 siblings, 0 replies; 5+ messages in thread
From: Bernard Dautrevaux @ 2001-05-15  1:03 UTC (permalink / raw)
  To: 'punt', Ian Roxborough; +Cc: sourcenav

> -----Original Message-----
> From: punt [ mailto:punt@kerrskorner.org ]
> Sent: Tuesday, May 15, 2001 1:55 AM
> To: Ian Roxborough; punt
> Cc: sourcenav@sourceware.cygnus.com
> Subject: Re: Building libraries
> 
> 
> Well, I am not sure that is the issue.  It looks as if ar is 
> never called, 
> but the linker is:
> 
> 
> gcc -r ../bin/libdatastore.a diskmulstor.o mapdatadisk.o
> gcc: ../bin/libdatastore.a: No such file or directory
> 

Looks like SN thinks the archiver is named gcc... Or is it your settings?

Just my .02 euro

Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux@microprocess.com
		b.dautrevaux@usa.net
-------------------------------------------- 

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Building libraries
@ 2001-05-16  0:11 Buczko, Michal
  0 siblings, 0 replies; 5+ messages in thread
From: Buczko, Michal @ 2001-05-16  0:11 UTC (permalink / raw)
  To: sourcenav

Hi,

I had a simmilar problem with building a library using sn and after changing
linker from 'gcc' to 'ar' is seems to work perfectly but i think there is
another bug. building executable file gcc was unable to generete output
because all libraries i want to include are added to command line like this:


gcc -o ble ble1.o ble2.o /usr/lib/libncurses.a /usr/lib/libgcontrol.a

this causes lots of conflicts (no matter what is the order of these
libraries), but after replacing /usr/lib/libncurses.a with -lncurses and
/usr/lib/libgcontrol.a with -lgcontrol everything goes ok. that`s way i
wrote a simple patch that renames all included libraries from
/usr/lib/lib*.a to -l*. it isn`t too flexible but it should work.

file: gui/buildtarget.tcl

  method GetLibraryFiles {} {
        regsub -all -nocase {(/usr/lib/lib)([^\.]+)(\.a)} ${LibFiles} {-l\2}
LibFiles   <---- added line
        return ${LibFiles}
  }


Best regards,

Michal Buczko
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
DomData sp. z.o.o
E-mail: Michal.Buczko@domdata.depfa-it.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> -----Original Message-----
> From: Bernard Dautrevaux [ mailto:Dautrevaux@microprocess.com ]
> Sent: Tuesday, May 15, 2001 9:41 AM
> To: 'punt'; Ian Roxborough
> Cc: sourcenav@sourceware.cygnus.com
> Subject: RE: Building libraries
> 
> 
> > -----Original Message-----
> > From: punt [ mailto:punt@kerrskorner.org ]
> > Sent: Tuesday, May 15, 2001 1:55 AM
> > To: Ian Roxborough; punt
> > Cc: sourcenav@sourceware.cygnus.com
> > Subject: Re: Building libraries
> > 
> > 
> > Well, I am not sure that is the issue.  It looks as if ar is 
> > never called, 
> > but the linker is:
> > 
> > 
> > gcc -r ../bin/libdatastore.a diskmulstor.o mapdatadisk.o
> > gcc: ../bin/libdatastore.a: No such file or directory
> > 
> 
> Looks like SN thinks the archiver is named gcc... Or is it 
> your settings?
> 
> Just my .02 euro
> 
> Bernard
> 
> --------------------------------------------
> Bernard Dautrevaux
> Microprocess Ingenierie
> 97 bis, rue de Colombes
> 92400 COURBEVOIE
> FRANCE
> Tel:	+33 (0) 1 47 68 80 80
> Fax:	+33 (0) 1 47 88 97 85
> e-mail:	dautrevaux@microprocess.com
> 		b.dautrevaux@usa.net
> -------------------------------------------- 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-05-16  0:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-12 12:49 Building libraries punt
2001-05-14  9:44 ` Ian Roxborough
2001-05-14 15:49   ` punt
2001-05-15  1:03 Bernard Dautrevaux
2001-05-16  0:11 Buczko, Michal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).