public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC Error Referencing re_comp & re_exec
@ 2005-09-27 22:13 DimmerMI (sent by Nabble.com)
  2005-09-27 22:21 ` Ian Lance Taylor
  2005-09-28  3:05 ` Digvijoy Chatterjee
  0 siblings, 2 replies; 4+ messages in thread
From: DimmerMI (sent by Nabble.com) @ 2005-09-27 22:13 UTC (permalink / raw)
  To: gcc-help


I've been trying to compile an older network monitoring utility called Rover on a NetBSD system, but keep getting errors about re_comp and re_exec. The errors are as follows:
display.o: In function `AddFilter':
display.o(.text+0xd5): undefined reference to `re_comp'
display.o: In function `CountProblem':
display.o(.text+0x66b): undefined reference to `re_comp'
display.o(.text+0x67a): undefined reference to `re_exec'
display.o: In function `FilterProblem':
display.o(.text+0x707): undefined reference to `re_comp'
display.o(.text+0x716): undefined reference to `re_exec'

If someone can help me figure out these errors that would be great.

Thanks.
--
Sent from the gcc - Help forum at Nabble.com:
http://www.nabble.com/GCC-Error-Referencing-re_comp-re_exec-t348240.html#a965007

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

* Re: GCC Error Referencing re_comp & re_exec
  2005-09-27 22:13 GCC Error Referencing re_comp & re_exec DimmerMI (sent by Nabble.com)
@ 2005-09-27 22:21 ` Ian Lance Taylor
  2005-09-28  3:05 ` Digvijoy Chatterjee
  1 sibling, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2005-09-27 22:21 UTC (permalink / raw)
  To: DimmerMI; +Cc: gcc-help

"DimmerMI \(sent by Nabble.com\)" <lists@nabble.com> writes:

> I've been trying to compile an older network monitoring utility called Rover on a NetBSD system, but keep getting errors about re_comp and re_exec. The errors are as follows:
> display.o: In function `AddFilter':
> display.o(.text+0xd5): undefined reference to `re_comp'
> display.o: In function `CountProblem':
> display.o(.text+0x66b): undefined reference to `re_comp'
> display.o(.text+0x67a): undefined reference to `re_exec'
> display.o: In function `FilterProblem':
> display.o(.text+0x707): undefined reference to `re_comp'
> display.o(.text+0x716): undefined reference to `re_exec'
> 
> If someone can help me figure out these errors that would be great.

On NetBSD you need to link with -lcompat to pick up those functions.

See 'man re_comp'.

Ian

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

* Re: GCC Error Referencing re_comp & re_exec
  2005-09-27 22:13 GCC Error Referencing re_comp & re_exec DimmerMI (sent by Nabble.com)
  2005-09-27 22:21 ` Ian Lance Taylor
@ 2005-09-28  3:05 ` Digvijoy Chatterjee
  2005-09-28  3:20   ` Ian Lance Taylor
  1 sibling, 1 reply; 4+ messages in thread
From: Digvijoy Chatterjee @ 2005-09-28  3:05 UTC (permalink / raw)
  Cc: gcc-help




On Mon, 2005-09-26 at 13:54 -0700, DimmerMI (sent by Nabble.com) wrote:
> I've been trying to compile an older network monitoring utility called Rover on a NetBSD system, but keep getting errors about re_comp and re_exec. The errors are as follows:
> display.o: In function `AddFilter':
> display.o(.text+0xd5): undefined reference to `re_comp'
> display.o: In function `CountProblem':
> display.o(.text+0x66b): undefined reference to `re_comp'
> display.o(.text+0x67a): undefined reference to `re_exec'
> display.o: In function `FilterProblem':
> display.o(.text+0x707): undefined reference to `re_comp'
> display.o(.text+0x716): undefined reference to `re_exec'
> 
> If someone can help me figure out these errors that would be great.
> 
> Thanks.
> --
> Sent from the gcc - Help forum at Nabble.com:
> http://www.nabble.com/GCC-Error-Referencing-re_comp-re_exec-t348240.html#a965007


Just on similar lines , many a time I get these errors with gcc which
basically means the library to link has not been mentioned in the
command line or Makefile

Now My Question is how to find which library to link to when one gets
such errors ,is there any  command/file..etc. or is google/ asking
people/gcc help lists the only answer.

or more succinctly in the example above how can Dimmer find out that he
needs to link to -lcompat on his box ,rather than asking for help from
people who have faced such a problem or just know about it.

Digz
> 


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

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

* Re: GCC Error Referencing re_comp & re_exec
  2005-09-28  3:05 ` Digvijoy Chatterjee
@ 2005-09-28  3:20   ` Ian Lance Taylor
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2005-09-28  3:20 UTC (permalink / raw)
  To: Digvijoy Chatterjee; +Cc: gcc-help

Digvijoy Chatterjee <digvijoy_chatterjee@infosys.com> writes:

> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***

Please do not send e-mail with this sort of disclaimer to the gcc
mailing lists.  They are against list policy, as described here:
    http://gcc.gnu.org/lists.html
If you can not prevent your e-mail server from adding these
disclaimers, then we suggest using a free web based e-mail account.

Thanks.

Ian

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

end of thread, other threads:[~2005-09-28  3:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-27 22:13 GCC Error Referencing re_comp & re_exec DimmerMI (sent by Nabble.com)
2005-09-27 22:21 ` Ian Lance Taylor
2005-09-28  3:05 ` Digvijoy Chatterjee
2005-09-28  3:20   ` Ian Lance Taylor

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).