Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Kris Kennaway
On Mon, Apr 10, 2006 at 12:28:26PM +0530, Premal Mishra wrote:
> Hi,
> 
> Ya, am trying to link against a linux library on FreeBSD.
> 
> Is it not possible to use it?

You cannot mix and match FreeBSD and Linux libraries.  You can however
*run* your pre-compiled Linux binary, and it is possible to also
compile a Linux binary on FreeBSD (install the linux_devtools port and
then chroot to /compat/linux, then compile it "as normal"; you may
need to add additional RPM packages.)

Kris


pgpVdziRbFY7N.pgp
Description: PGP signature


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Premal Mishra
Hi,

Ya, am trying to link against a linux library on FreeBSD.

Is it not possible to use it?

Regards
Premal.

On 4/10/06, Mikko Työläjärvi <[EMAIL PROTECTED]> wrote:
> On Mon, 10 Apr 2006, Premal Mishra wrote:
>
> > Hi,
> >
> > Am tryin to compile a C program which uses 3rd party library.
> >
> > I get the following error during linking:
> >
> > "undefined reference to __ctype_b" and this error comes up for many more 
> > names.
> >
> > Whats may be the problem ?
> >
>
> Without additional information, I'd say you are trying to link against
> a linux library.  You are presumably running FreeBSD, so that is not
> likely to work.
>
> But, as that particular symbol can cause problems on linux if you have
> a library built against an older version of glibc, pehaps you are
> actually running Linux?  If so, this is the wrong mailing list.
>
>   $.02,
>   /Mikko
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linker Error: undefined reference to __ctype_b

2006-04-10 Thread Mikko Työläjärvi

On Mon, 10 Apr 2006, Premal Mishra wrote:


Hi,

Am tryin to compile a C program which uses 3rd party library.

I get the following error during linking:

"undefined reference to __ctype_b" and this error comes up for many more names.

Whats may be the problem ?



Without additional information, I'd say you are trying to link against
a linux library.  You are presumably running FreeBSD, so that is not
likely to work.

But, as that particular symbol can cause problems on linux if you have
a library built against an older version of glibc, pehaps you are
actually running Linux?  If so, this is the wrong mailing list.

  $.02,
  /Mikko
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Linker Error: undefined reference to __ctype_b

2006-04-09 Thread Kris Kennaway
On Mon, Apr 10, 2006 at 11:33:25AM +0530, Premal Mishra wrote:
> Hi,
> 
> Am tryin to compile a C program which uses 3rd party library.
> 
> I get the following error during linking:
> 
> "undefined reference to __ctype_b" and this error comes up for many more 
> names.
> 
> Whats may be the problem ?

It's looking for a symbol that doesn't exist in the libraries with
which you are linking.  Perhaps it needs another library, or it's
expecting to find symbols that do not exist in FreeBSD system
libraries.

Kris


pgpHqhWEQENEK.pgp
Description: PGP signature


Linker Error: undefined reference to __ctype_b

2006-04-09 Thread Premal Mishra
Hi,

Am tryin to compile a C program which uses 3rd party library.

I get the following error during linking:

"undefined reference to __ctype_b" and this error comes up for many more names.

Whats may be the problem ?

Regards,
Premal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"