Compile Co:Z Target System Toolkit under FreeBSD 9.1 fails

General discussion of the Co:Z Toolkit
Post Reply
jacobsm
Posts: 37
Joined: Thu Apr 23, 2009 9:18 am
Location: Tampa, Florida

Compile Co:Z Target System Toolkit under FreeBSD 9.1 fails

Post by jacobsm »

I just upgraded my workstation from FreeBSD 7.4 to 9.1 and when I attempt to compile the toolkit it's failing with this error.

g++ -DHAVE_CONFIG_H -I. -DENV_PREFIX=COZ -DBUILD_VERSION="1.1.0 2012-03-16" -I/usr/local/include -g -O2 -MT toasa.o -MD -MP -MF .deps/toasa.Tpo -c -o toasa.o toasa.C
toasa.C: In function 'int main(int, char**)':
toasa.C:184: error: 'getline' was not declared in this scope
*** [toasa.o] Error code 1

I was able to successfully compile the toolkit under FreeBSD 7.4
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Compile Co:Z Target System Toolkit under FreeBSD 9.1 fai

Post by dovetail »

it would appear that you have a define for "HAVE_GETLINE" , but your library doesn't have getline().

I see this:
http://www.unix.com/man-page/FreeBSD/3/getline/

perhaps adding -D_WITH_GETLINE will make the library getline() function available?
jacobsm
Posts: 37
Joined: Thu Apr 23, 2009 9:18 am
Location: Tampa, Florida

Re: Compile Co:Z Target System Toolkit under FreeBSD 9.1 fai

Post by jacobsm »

Yep. That worked. Thanks again.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Compile Co:Z Target System Toolkit under FreeBSD 9.1 fai

Post by dovetail »

Thanks for confirming this.

We'll add this to our source so that future FreeBSD builds build smoothly.
Post Reply