Thanks again for your insight, Nikos, very helpful indeed.

I will do some more tests with my LD_LIBRARY_PATH because... today, i do
admit i tried -SO- many things to compile this thing, i might have
slaughtered it too much. Now that i got the binary i can let adrenaline cool
off and do it properly. :)

Hopefully, i will have a clean (and correct) LD when/if any changes are
made, and i can report more.

Also, BSD 6.1 now has an end-of-life tag, i do have to upgrade that server
(it just hurts me to ruin a good uptime right now).

Cheers,

\\ pb

2008/12/6 Nikos Balkanas <[EMAIL PROTECTED]>

>  OK. I am happy you got it working. I suspect that you have an issue with
> incorrect LD_LIBRARY_PATH, otherwise it is not up to BSD to reject it. It is
> part of the linker from gcc. And it is reading it from LD_LIBRARY_PATH
> regardless what the configure script is doing or not (short of resetting the
> LD_LIBRARY_PATH, of course). You might want to play with LD_LIBRARY_PATH a
> bit until you get it right. I think it preferable to moving everything to
> your own subdir - not maintainable. Of course it is the responsibility of
> the configure script to find out all require packages & libraries and pass
> them directly at compile time. But it doesn't hurt to help it a bit with a
> correct LD_LIBRARY_PATH.
>
> -lkse: Good, Alej is making a note of this.
> lock_timeout: This is for Alej, too. Seems that source code isn't
> compiling, which I am sure is not the case. Maybe some #define cpp directive
> going wild.
>
> Alej is looking into it, and I hope that soon you will be able to compile
> cleanly in BSD, sqlite and all.
>
> BR,
> Nikos
>
> ----- Original Message -----
> *From:* Pedro B. <[EMAIL PROTECTED]>
> *To:* Nikos Balkanas <[EMAIL PROTECTED]>
> *Cc:* Alejandro Guerrieri <[EMAIL PROTECTED]> ;
> [email protected]
> *Sent:* Sunday, December 07, 2008 12:40 AM
> *Subject:* [fix (sort of)] Re: Freebsd 6.1 and SQLbox
>
> Hi Nikos,
>
> The default configure didn't like the (working for 2 years now) default 
> LD_LIBRARY_PATH,
> so i added ./, and put everything needed in the sqlbox dir.
>
> the CFLAGS came from the SQLBOX userguide: "CFLAGS='-pthread' ./configure
> The above, for instance, seems to be required on FreeBSD. " - just following
> the guide here.
>
> Not pretty, but i just wanted it to compile.
>
> Also, changes to the original files:
>
> -lkse replaced by -lpthread on configure (this is really a must, -lkse is
> deprecated in BSD for a while)
>
> Then i had this:
>
> sqlbox_sqlite3.c: In function `sqlbox_init_sqlite3':
> sqlbox_sqlite3.c:278: warning: passing arg 1 of `cfg_get_integer' from
> incompatible pointer type
> sqlbox_sqlite3.c:290: error: structure has no member named `lock_timeout'
>
> Removed the references to sqlbox_sqlite from gw/Makefile, gw/Makefile.am;
> Deleted the .Pos from .deps;
> Edited gwlib/gw-config.h ;
> Removed the #ifdefs from sqlbox_sqlc;
>
> and ... $ ls -la sqlbox
> -rwxr-xr-x 1 root wheel 493740 Dec 6 20:53 sqlbox
>
> Not pretty, but i reached the goal, which was the binary, and i dont need
> sqlite. I hope this info might help someone (and hopefully, lead to a
> cleaner BSD compile).
>
> 2008/12/6 Nikos Balkanas <[EMAIL PROTECTED]>
>
>>  OK. This is different output than in the previous mail. So I guess you
>> fixed LD_LIBRARY_PATH and now it finds gwlib. Before it couldn't. Now it
>> seems that it cannot find libxml2.a (or it is not in the compilation flags).
>>
>> Alej is the main guy for sqlbox, and I am glad he is on the thread.
>>
>> But in the meantime let's try a couple more things. Please run "find
>> /usr/local -name "libxml*". I imagine that it is under /usr/local/lib. You
>> are using 32bit OS right? 64bit libraries are elsewhere.
>>
>> After you verify location of libxml2.a and agries with LD_LIBRARY_PATH,
>> try to hardcode it to your compile flags. I see that you use CLAGS to
>> declare extra libraries. That's not standard, this should be a placeholder
>> for "-O6 -s -Wall...". There should be a variable "extra-libs" or smt like
>> that for libraries. configure --help should help you. Try putting "-lpthread
>> -lgwlib" in there and let's see.
>>
>> BR,
>> Nikos
>>
>> ----- Original Message -----
>> *From:* Alejandro Guerrieri <[EMAIL PROTECTED]>
>> *To:* Pedro B. <[EMAIL PROTECTED]>
>> *Cc:* Nikos Balkanas <[EMAIL PROTECTED]> ; [email protected]
>> *Sent:* Saturday, December 06, 2008 10:04 PM
>> *Subject:* Re: Freebsd 6.1 and SQLbox
>>
>> Pedro,
>>
>> sqlbox's configure script "should" be able to compile, though that's
>> clearly not the case. I'll look into it as soon as I finish installing a
>> FreeBSD VM.
>>
>> Regards,
>>
>> Alejandro
>>
>> On Sat, Dec 6, 2008 at 5:28 PM, Pedro B. <[EMAIL PROTECTED]>wrote:
>>
>>> Thanks for your replies, Nikos.
>>>
>>> Kannel (cvs) is installed, built flawlessly.
>>>
>>> LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/lib/kannel
>>>
>>> CFLAGS=-pthread
>>>
>>> The BSD-deprecated -lkse shouldn't be in configure, but that can be
>>> easily bypassed. However, it clearly shows SQLbox's bootstrap/configure are
>>> not BSD-friendly.
>>>
>>> From config.log:
>>>
>>> configure:22302: checking for cfg_create in -lgwlib
>>> configure:22337: gcc -o conftest -g -O2 -pthread -I/usr/include/openssl
>>> -I/usr/include/kannel -I/usr/include/kannel -L/usr/lib/kannel conftest.c
>>> -lgwlib -lssl -lc_r -L/usr/li$
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x23): In function `charset_init':
>>> gwlib/charset.c:206: undefined reference to `xmlAddEncodingAlias'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x829): In function
>>> `charset_to_utf8':
>>> gwlib/charset.c:539: undefined reference to `xmlFindCharEncodingHandler'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x83c):gwlib/charset.c:544:
>>> undefined reference to `xmlBufferCreate'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x843):gwlib/charset.c:545:
>>> undefined reference to `xmlBufferCreate'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x878):gwlib/charset.c:546:
>>> undefined reference to `xmlBufferAdd'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x883):gwlib/charset.c:548:
>>> undefined reference to `xmlCharEncInFunc'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x8b6):gwlib/charset.c:553:
>>> undefined reference to `xmlBufferFree'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x8be):gwlib/charset.c:554:
>>> undefined reference to `xmlBufferFree'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x8f1): In function
>>> `charset_from_utf8':
>>> gwlib/charset.c:566: undefined reference to `xmlFindCharEncodingHandler'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x908):gwlib/charset.c:571:
>>> undefined reference to `xmlBufferCreate'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x90f):gwlib/charset.c:572:
>>> undefined reference to `xmlBufferCreate'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x944):gwlib/charset.c:573:
>>> undefined reference to `xmlBufferAdd'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x94f):gwlib/charset.c:575:
>>> undefined reference to `xmlCharEncOutFunc'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x98b):gwlib/charset.c:584:
>>> undefined reference to `xmlBufferFree'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x993):gwlib/charset.c:585:
>>> undefined reference to `xmlBufferFree'
>>> /usr/lib/libgwlib.a(charset.o)(.text+0x41): In function
>>> `charset_shutdown':
>>> gwlib/charset.c:213: undefined reference to `xmlCleanupEncodingAliases
>>>
>>> $ pkg_version -v | grep libxml
>>> libxml2-2.6.32_2 = up-to-date with port
>>>
>>> The more i look at this, the less i find hope in making it compile on
>>> BSD...
>>>
>>> \\ pb
>>>
>>> 2008/12/6 Nikos Balkanas <[EMAIL PROTECTED]>
>>>
>>>>  OK. Now I see. This is sqlbox installation, not kannel. First you need
>>>> to install Kannel (CVS) and then sqlbox. Your LD_LIBRARY_PATH should be set
>>>> correctly. I have no experience with sqlbox configuration, but I suspect no
>>>> hack-n-slash is necessary. Could you please echo your $LD_LIBRARY_PATH?
>>>>
>>>>  ----- Original Message -----
>>>> *From:* Pedro B. <[EMAIL PROTECTED]>
>>>>  *To:* Nikos Balkanas <[EMAIL PROTECTED]>
>>>> *Cc:* [email protected]
>>>> *Sent:* Saturday, December 06, 2008 8:11 PM
>>>> *Subject:* Re: Freebsd 6.1 and SQLbox
>>>>
>>>> { $as_echo "$as_me:$LINENO: checking for cfg_create in -lgwlib" >&5
>>>>
>>>> $as_echo_n "checking for cfg_create in -lgwlib... " >&6; }
>>>>
>>>> (line 22261 of configure on sqlbox-snapshot-20081121.tar.gz and
>>>> sqlbox-latest.tar.gz)
>>>> Regards,
>>>> \\Pedro
>>>>
>>>> 2008/12/6 Nikos Balkanas <[EMAIL PROTECTED]>
>>>>
>>>>>  Please download latest CVS source and CVS documentation. They are
>>>>> production quality. I couldn't grep cfg_create in any of the conf* from 
>>>>> the
>>>>> latest CVS.
>>>>>
>>>>> BR,
>>>>> Nikos
>>>>>
>>>>> ----- Original Message -----
>>>>>
>>>>> *From:* Pedro B. <[EMAIL PROTECTED]>
>>>>> *To:* [email protected]
>>>>> *Sent:* Saturday, December 06, 2008 6:39 PM
>>>>> *Subject:* Freebsd 6.1 and SQLbox
>>>>>
>>>>> Hello list,
>>>>>
>>>>> We have some woes with FreeBSD 6.1, so i would like to ask if anyone
>>>>> successfully compiled it, or if anyone has any binaries available.
>>>>>
>>>>> The errors we encountered:
>>>>>
>>>>> First:
>>>>>
>>>>> checking for cfg_create in -lgwlib... no
>>>>> configure: error: Kannel gwlib is required!
>>>>>
>>>>> Then, after hack/n/slask on the .configure (yes, we are THAT
>>>>> desperate), gmake gives the following:
>>>>>
>>>>>
>>>>> : undefined reference to `octstr_imm'
>>>>> sqlbox.o(.text+0x25): In function `sqlbox_is_allowed_in_group':
>>>>> : undefined reference to `octstr_imm'
>>>>> sqlbox.o(.text+0x2e): In function `sqlbox_is_allowed_in_group':
>>>>> : undefined reference to `octstr_compare'
>>>>>
>>>>> (etc, snip, you get the idea).
>>>>>
>>>>> Any and all feedback is truly appreciated.
>>>>>
>>>>> Regards,
>>>>>
>>>>> ----
>>>>>
>>>>> \\ Pedro
>>>>>
>>>>> 0101000001100101011001000111001001101111001000000100001000101110
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>
>
> --
>
> ----
> \\pb
> 0101000001100101011001000111001001101111001000000100001000101110
>
>


-- 

----
\\pb
0101000001100101011001000111001001101111001000000100001000101110

Reply via email to