I seem to be getting error when compiling nsmysql.

gcc: unrecognized option '-R/usr/lib/mysql'

There are no files under /etc/ld.so.conf.d/*.conf

What distribution you are running?


-----Original Message-----
From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf
Of Alexander
Sent: Thursday, July 19, 2007 1:02 AM
To: [email protected]
Subject: Re: [AOLSERVER] nsmysql driver error - undefined symbol:
mysql_field_count

Shedis,

I use mysql 5.0.16... I think :) or 5.0.42...

What is in your /etc/ld.so.conf.d/*.conf files?

And can you do ldd /usr/local/aolserver/lib/libnsmysql.so



shedis wrote:
> Helo Alex,
>
> Here are the outputs:
>
> cat /etc/ld.so.conf
> /usr/X11R6/lib/Xaw3d
> /usr/X11R6/lib
> /usr/i486-linux-libc5/lib=libc5
> /usr/i386-suse-linux/lib
> /usr/local/lib
> /opt/kde3/lib
> /opt/gnome/lib
> include /etc/ld.so.conf.d/*.conf
>
>
> ldd /usr/local/aolserver/bin/nsmysql.so
>     linux-gate.so.1 =>  (0xffffe000)
>         libnsmysql.so => /usr/local/aolserver/lib/libnsmysql.so
> (0xb7efb000)
>         libnsd.so => /usr/local/aolserver/lib/libnsd.so (0xb7e9f000)
>         libnsthread.so => /usr/local/aolserver/lib/libnsthread.so
> (0xb7e97000)
>         libtcl8.4.so => /usr/local/aolserver/lib/libtcl8.4.so
> (0xb7de7000)
>         libdl.so.2 => /lib/libdl.so.2 (0xb7ddc000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0xb7dc8000)
>         libm.so.6 => /lib/libm.so.6 (0xb7da3000)
>         libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d98000)
>         libc.so.6 => /lib/libc.so.6 (0xb7c78000)
>         /lib/ld-linux.so.2 (0x80000000)
>
> No modules yet!
>
>
> I added the line to ld.so.conf but no luck. What's you version of 
> libmysqlclient?
>
>
> On 18 Jul 2007, at 21:44, Alexander wrote:
>
>> If you want you can do:
>>
>> cat /etc/ld.so.conf
>>
>> ldd /usr/local/aolserver/bin/nsmysql.so
>>
>> in case you're developing a module can you also do ldd 
>> /usr/local/aolserver/bin/yourmodulename.so
>>
>> and post results here.
>>
>> I have had the very same problem, which was solely due me forgetting 
>> to add mysql and aolserver libraries to the environment.
>>
>>
>> shedis wrote:
>>> Hi Dossy,
>>>
>>> I seem to have libmysqlclient_r15-5.0.41-15.1
>>>
>>> Alexander: I'm using suse 10.1.
>>> # uname -a
>>> Linux aoldev 2.6.16.21-0.25-default #1 Tue Sep 19 07:26:15 UTC 2006
>>> i686 i686 i386 GNU/Linux
>>>
>>> jamshed
>>>
>>> On 18 Jul 2007, at 18:06, Dossy Shiobara wrote:
>>>
>>>> On 2007.07.18, JAMSHED QURESHI <[EMAIL PROTECTED]>
wrote:
>>>>> Hi,
>>>>>
>>>>> after compiling nsmysql i'm getting the following error:
>>>>>
>>>>> [18/Jul/2007:22:13:42][2206.3083744944][-main-] Warning: modload: 
>>>>> could
>>>>> not load /usr/local/aolserver/bin/nsmysql.so:
>>>>> /usr/local/aolserver/lib/libnsmysql.so: undefined symbol:
>>>>> mysql_field_count
>>>>> [18/Jul/2007:22:13:42][2206.3083744944][-main-] Error: dbdrv: 
>>>>> failed to
>>>>> load driver 'nsmysql'
>>>>> [18/Jul/2007:22:13:42][2206.3083744944][-main-] Error: dbinit: no 
>>>>> such default pool 'mysql'
>>>>>
>>>>> Does anyone have any clues what is going wrong?
>>>>
>>>> What version of the libmysqlclient_r are you using?
>>>>
>>>> -- Dossy
>>>>
>>>> --Dossy Shiobara              | [EMAIL PROTECTED] |
http://dossy.org/
>>>> Panoptic Computer Network   | http://panoptic.com/
>>>>   "He realized the fastest way to change is to laugh at your own
>>>>     folly -- then you can let go and quickly move on." (p. 70)
>>>>
>>>>
>>>> --AOLserver - http://www.aolserver.com/
>>>>
>>>> To Remove yourself from this list, simply send an email to 
>>>> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in

>>>> the email message. You can leave the
>>>> Subject: field of your email blank.
>>>
>>>
>>> --AOLserver - http://www.aolserver.com/
>>>
>>> To Remove yourself from this list, simply send an email to 
>>> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in 
>>> the email message. You can leave the
>>> Subject: field of your email blank.
>>>
>>
>>
>> --
>> AOLserver - http://www.aolserver.com/
>>
>> To Remove yourself from this list, simply send an email to 
>> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in 
>> the email message. You can leave the
>> Subject: field of your email blank.
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to 
> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in 
> the email message. You can leave the
> Subject: field of your email blank.
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to
<[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the
email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to