[X-Unix] Re: [PB] Compiling on MacOS X (source was written for winblow...) [moved from PB]

Eric F Crist ecrist at secure-computing.net
Sat Nov 25 18:48:11 PST 2006


On Nov 25, 2006, at 3:25 PM, Philip J Robar wrote:

>
> On Nov 25, 2006, at 1:09 PM, Eric F Crist wrote:
>
>> Please help me understand the following output:
>>
>> root# gcc *.c -o test
>> /usr/bin/ld: Undefined symbols:
>> _mysql_close
>> _mysql_error
>> _mysql_fetch_row
>> _mysql_field_count
>> _mysql_free_result
>> _mysql_init
>> _mysql_num_fields
>> _mysql_num_rows
>> _mysql_options
>> _mysql_query
>> _mysql_real_connect
>> _mysql_select_db
>> _mysql_store_result
>> _mysql_use_result
>> collect2: ld returned 1 exit status
>>
>> How do I fix this?
>
> You don't have the MySQL database installed, or at least it's  
> libraries are not in the default/specified location(s). Assuming  
> that you're trying to compile an Open Source program, it should  
> include a README or INSTALL file that talks about the program's  
> dependencies.
>
> By the way, a better place to ask questions like this would be the  
> themacintoshguy's x-unix mailing list.
>
> Also, if this is an Open Source program, you might also check to  
> see if it is supported in MacPorts, (http://www.macports.org/),  
> which would simplify getting, compiling, installing and resolving  
> dependency issues like this.
>
>
> Phil
> --

It's not an open-source project as we would know it.  It's actually a  
world of warcraft mod that requires and .exe to parse some log  
files.  It's written in C, and I've moved the mysql sources/includes  
into a location that my compiler can find, I think.  It looks to me  
like most things are working, should I install mysql on my laptop?

Thanks for the help.


-----
Eric F Crist
Secure Computing Networks




More information about the X-Unix mailing list