Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 21:34:55 -0600
From:      Gareth Reeves <gareth.reeves@widespreadsolutions.com>
To:        freebsd-questions@freebsd.org
Subject:   /compat/linux undefined reference GLIBC
Message-ID:  <57CF42C6-2919-405B-A662-C5D0257FDBCF@widespreadsolutions.com>

next in thread | raw e-mail | index | archive | help
Hi

I am having some problems compiling and linking a very simple program  
that I wrote that uses some 3rd party libraries. They are written to  
run on Linux and are ELF.

My understanding of all the things going on here is limited and I  
apologize for that now.

The libraries execute fine but I am having problems building against  
them.

I get a bunch of the following errors

/opt/ito33/lib/libitoihg.so: undefined reference to `getenv@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to `strcpy@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to `free@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to  
`pthread_cond_signal@GLIBC_2.3.2'

My compile and link contains the -L/compat/linux/lib. This contains  
all of the libraries from adding the linux_base port.

I dont know where to even start trying to figure out which files the  
GLIBC references should be in.

Any help or guidance is much appreciated.

Thanks

GarethHi

I am having some problems compiling and linking a very simple program  
that I wrote that uses some 3rd party libraries. They are written to  
run on Linux and are ELF.

My understanding of all the things going on here is limited and I  
apologize for that now.

The libraries execute fine but I am having problems building against  
them.

I get a bunch of the following errors

/opt/ito33/lib/libitoihg.so: undefined reference to `getenv@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to `strcpy@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to `free@GLIBC_2.0'
/opt/ito33/lib/libitoihg.so: undefined reference to  
`pthread_cond_signal@GLIBC_2.3.2'

My compile and link contains the -L/compat/linux/lib. This contains  
all of the libraries from adding the linux_base port.

I dont know where to even start trying to figure out which files the  
GLIBC references should be in.

Any help or guidance is much appreciated.

Thanks

Gareth

Gareth Reeves
widespread solutions
(773) 259 0102
www.widespreadsolutions.com
gareth.reeves@widespreadsolutions.com







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57CF42C6-2919-405B-A662-C5D0257FDBCF>