Re: Hi es_MX internationalization needed.....

2010-06-03 Thread Eric De La Cruz Lugo
Bernt:

Thanks for your reply, I read it already, and ended my self reading the 
mklocale manuals

The problem i have now is where to find a suitable es_MX.UTF-8.src file, I 
looked here:

http://cvsup.hu.freebsd.org/viewvc/FreeBSD/src/share/mklocale/?sortby=file

to no avail.

Do you know or some one know here in the list where i can find a src file for 
es_MX.UTF-8 ?

Thanks in advance.

LIA Eric De La Cruz Lugo
Mérida, Yucatán, México, The MayaLand.

 




From: Bernt Hansson be...@bah.homeip.net
To: Eric De La Cruz Lugo eric_delac...@yahoo.com
Cc: freebsd-i...@freebsd.org; freebsd-questions@freebsd.org
Sent: Wed, June 2, 2010 10:24:32 PM
Subject: Re: Hi es_MX internationalization needed.

2010-06-03 03:37, Eric De La Cruz Lugo skrev:
 Hi to every one.

 I  have been checking the mail lists and haven`t found information about 
 es_MX localization, in Ubuntu, OpenSUSE and other Linux distributions this 
 can be achieved by something like.


 # locale-gen es_MX.UTF-8

Not the freebsd way of doing it.
hava a look at:

http://www.se.freebsd.org/doc/en_US.ISO8859-1/books/handbook/l10n.html


 # locale-gen es_MX
 But on FreeBSD I can`t find any command or tool to perform this.

 there is a es_ES locale on FreeBSD.

 I thinked about generating the es_MX locale with a file like es_MX.UTF-8.src 
 or something like that, without success this is beyond my expertise right now.

 I need the es_MX because there is a postgreSQL database that MUST be 
 encoded with the es_MX encoding, for a project am working on.

 On KDE 4 on FreeBSD 8.0 I can changed the region to Mexico (es_MX), but I 
 can't change my locale variables (LC_) on my command line terminal.

 they look actually like this:


 [cursos] ~  locale
 LANG=
 LC_CTYPE=es_ES.UTF-8
 LC_COLLATE=es_ES.UTF-8
 LC_TIME=es_ES.UTF-8
 LC_NUMERIC=es_ES.UTF-8
 LC_MONETARY=es_ES.UTF-8
 LC_MESSAGES=es_ES.UTF-8
 LC_ALL=
 [cursos] ~

 On other server i have OpenSUSE 11.2 and have this:  (the way a needed it).

 edelac...@sgi:~  locale
 LANG=es_MX.UTF-8
 LC_CTYPE=es_MX.UTF-8
 LC_NUMERIC=es_MX.UTF-8
 LC_TIME=es_MX.UTF-8
 LC_COLLATE=es_MX.UTF-8
 LC_MONETARY=es_MX.UTF-8
 LC_MESSAGES=es_MX.UTF-8
 LC_PAPER=es_MX.UTF-8
 LC_NAME=es_MX.UTF-8
 LC_ADDRESS=es_MX.UTF-8
 LC_TELEPHONE=es_MX.UTF-8
 LC_MEASUREMENT=es_MX.UTF-8
 LC_IDENTIFICATION=es_MX.UTF-8
 LC_ALL=
 edelac...@sgi:~


 How do i do this on FreeBSD 8.0 i386 or amd64?

 Thanks in advance for your attention and help.

 LIA Eric De La Cruz Lugo.



 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Hi es_MX internationalization needed.....

2010-06-02 Thread Eric De La Cruz Lugo
Hi to every one.

I  have been checking the mail lists and haven`t found information about es_MX 
localization, in Ubuntu, OpenSUSE and other Linux distributions this can be 
achieved by something like.


# locale-gen es_MX.UTF-8

# locale-gen es_MX
But on FreeBSD I can`t find any command or tool to perform this.

there is a es_ES locale on FreeBSD.

I thinked about generating the es_MX locale with a file like es_MX.UTF-8.src or 
something like that, without success this is beyond my expertise right now.

I need the es_MX because there is a postgreSQL database that MUST be encoded 
with the es_MX encoding, for a project am working on.
 
On KDE 4 on FreeBSD 8.0 I can changed the region to Mexico (es_MX), but I can't 
change my locale variables (LC_) on my command line terminal.

they look actually like this:


[cursos] ~ locale
LANG=
LC_CTYPE=es_ES.UTF-8
LC_COLLATE=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_MESSAGES=es_ES.UTF-8
LC_ALL=
[cursos] ~

On other server i have OpenSUSE 11.2 and have this:  (the way a needed it).

edelac...@sgi:~ locale
LANG=es_MX.UTF-8
LC_CTYPE=es_MX.UTF-8
LC_NUMERIC=es_MX.UTF-8
LC_TIME=es_MX.UTF-8
LC_COLLATE=es_MX.UTF-8
LC_MONETARY=es_MX.UTF-8
LC_MESSAGES=es_MX.UTF-8
LC_PAPER=es_MX.UTF-8
LC_NAME=es_MX.UTF-8
LC_ADDRESS=es_MX.UTF-8
LC_TELEPHONE=es_MX.UTF-8
LC_MEASUREMENT=es_MX.UTF-8
LC_IDENTIFICATION=es_MX.UTF-8
LC_ALL=
edelac...@sgi:~


How do i do this on FreeBSD 8.0 i386 or amd64?

Thanks in advance for your attention and help.

LIA Eric De La Cruz Lugo.


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Porting software from Linux to FreeBSD 5.2.1

2004-04-12 Thread Eric De La Cruz Lugo
Hi All:

Am trying to modify a code in order to run it in
FreeBSD, this code was intendend for Linux only, after
several days modifying code a mannaged to compile it
successfully and ended with a binary, called post
this program is a client side of a systema called
BhPos, the server side is working ok, but this client
is dying every time with a segmentation fault.

debugging the core file from the post excecution I
found the following:

 terra# gdb /usr/bin/post
 GNU gdb 5.2.1 (FreeBSD)
 Copyright 2002 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General
Public License, and you
are
 welcome to change it and/or distribute copies of it
under certain
conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB. Type show
warranty for
details.
 This GDB was configured as i386-unknown-freebsd...
 (gdb) core-file post.core
 Core was generated by `post'.
 Program terminated with signal 11, Segmentation
fault.
 Reading symbols from
/usr/local/lib/libgtkmm-1.2.so.3...done.
 Loaded symbols for /usr/local/lib/libgtkmm-1.2.so.3
 Reading symbols from
/usr/local/lib/libgdkmm-1.2.so.2...done.
 Loaded symbols for /usr/local/lib/libgdkmm-1.2.so.2
 Reading symbols from
/usr/X11R6/lib/libgtk12.so.2...done.
 Loaded symbols for /usr/X11R6/lib/libgtk12.so.2
 Reading symbols from
/usr/X11R6/lib/libgdk12.so.2...done.
Loaded symbols for /usr/X11R6/lib/libgdk12.so.2
 Reading symbols from
/usr/local/lib/libgmodule12.so.3...done.
 Loaded symbols for /usr/local/lib/libgmodule12.so.3
 Reading symbols from
/usr/local/lib/libglib12.so.3...done.
 Loaded symbols for /usr/local/lib/libglib12.so.3
 Reading symbols from
/usr/local/lib/libintl.so.5...done.
 Loaded symbols for /usr/local/lib/libintl.so.5
 Reading symbols from
/usr/X11R6/lib/libXi.so.6...done.
 Loaded symbols for /usr/X11R6/lib/libXi.so.6
 Reading symbols from
/usr/X11R6/lib/libXext.so.6...done.
 Loaded symbols for /usr/X11R6/lib/libXext.so.6
 Reading symbols from
/usr/X11R6/lib/libX11.so.6...done.
 Loaded symbols for /usr/X11R6/lib/libX11.so.6
 Reading symbols from
/usr/local/lib/libsigc.so.1...done.
 Loaded symbols for /usr/local/lib/libsigc.so.1
 Reading symbols from
/usr/local/lib/libxml2.so.5...done.
 Loaded symbols for /usr/local/lib/libxml2.so.5
 Reading symbols from /lib/libz.so.2...done.
 Loaded symbols for /lib/libz.so.2
 Reading symbols from
/usr/local/lib/libiconv.so.3...done.
 Loaded symbols for /usr/local/lib/libiconv.so.3
 Reading symbols from
/usr/lib/bhpos/libbhtrans.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhtrans.so.1
Reading symbols from
/usr/lib/bhpos/libbhcash.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhcash.so.1
 Reading symbols from
/usr/lib/bhpos/libbhcfg.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhcfg.so.1
 Reading symbols from
/usr/lib/bhpos/libbhwgt.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhwgt.so.1
 Reading symbols from
/usr/lib/bhpos/libbhkmap.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhkmap.so.1
 Reading symbols from
/usr/lib/bhpos/libbhgrp.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhgrp.so.1
 Reading symbols from
/usr/lib/bhpos/libbhlocale.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhlocale.so.1
 ---Type return to continue, or q return to
quit---
 Reading symbols from
/usr/lib/bhpos/libbhdev.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhdev.so.1
 Reading symbols from
/usr/lib/bhpos/libbhbc.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhbc.so.1
 Reading symbols from
/usr/lib/bhpos/libbhkeyb.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhkeyb.so.1
 Reading symbols from
/usr/lib/bhpos/libbhkeyl.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhkeyl.so.1
 Reading symbols from
/usr/lib/bhpos/libbhdisp.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhdisp.so.1
Reading symbols from
/usr/lib/bhpos/libbhms.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhms.so.1
 Reading symbols from
/usr/lib/bhpos/libbhcashd.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhcashd.so.1
 Reading symbols from
/usr/lib/bhpos/libbhcustd.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhcustd.so.1
 Reading symbols from
/usr/lib/bhpos/libbhprinter.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhprinter.so.1
 Reading symbols from
/usr/lib/bhpos/libbhmicr.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhmicr.so.1
 Reading symbols from
/usr/lib/bhpos/libbhsc.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhsc.so.1
 Reading symbols from
/usr/lib/bhpos/libbhdt.so.1...done.
 Loaded symbols for /usr/lib/bhpos/libbhdt.so.1
 Reading symbols from /usr/lib/libstdc++.so.4...done.
 Loaded symbols for /usr/lib/libstdc++.so.4
 Reading symbols from /lib/libm.so.2...done.
 Loaded symbols for /lib/libm.so.2
 Reading symbols from /usr/lib/libc_r.so.5...done.
 Loaded symbols for /usr/lib/libc_r.so.5
 Reading symbols from /lib/libc.so.5...done.
 Loaded symbols for /lib/libc.so.5
 Reading symbols from

Porting software to FreeBSD 5.2.1

2004-04-12 Thread Eric De la Cruz Lugo
Hi All: 
 
Am trying to modify a code in order to run it in FreeBSD, this code was 
intendend for Linux only, after several days modifying code a mannaged to 
compile it successfully and ended with a binary, called post this program 
is a client side of a systema called BhPos, the server side is working ok, but 
this client is dying every time with a segmentation fault. 
 
debugging the core file from the post excecution I found the following: 
 
 terra# gdb /usr/bin/post 
 GNU gdb 5.2.1 (FreeBSD) 
 Copyright 2002 Free Software Foundation, Inc. 
 GDB is free software, covered by the GNU General Public License, and you 
are 
 welcome to change it and/or distribute copies of it under certain 
conditions. 
 Type show copying to see the conditions. 
 There is absolutely no warranty for GDB. Type show warranty for 
details. 
 This GDB was configured as i386-unknown-freebsd... 
 (gdb) core-file post.core 
 Core was generated by `post'. 
 Program terminated with signal 11, Segmentation fault. 
 Reading symbols from /usr/local/lib/libgtkmm-1.2.so.3...done. 
 Loaded symbols for /usr/local/lib/libgtkmm-1.2.so.3 
 Reading symbols from /usr/local/lib/libgdkmm-1.2.so.2...done. 
 Loaded symbols for /usr/local/lib/libgdkmm-1.2.so.2 
 Reading symbols from /usr/X11R6/lib/libgtk12.so.2...done. 
 Loaded symbols for /usr/X11R6/lib/libgtk12.so.2 
 Reading symbols from /usr/X11R6/lib/libgdk12.so.2...done. 
Loaded symbols for /usr/X11R6/lib/libgdk12.so.2 
 Reading symbols from /usr/local/lib/libgmodule12.so.3...done. 
 Loaded symbols for /usr/local/lib/libgmodule12.so.3 
 Reading symbols from /usr/local/lib/libglib12.so.3...done. 
 Loaded symbols for /usr/local/lib/libglib12.so.3 
 Reading symbols from /usr/local/lib/libintl.so.5...done. 
 Loaded symbols for /usr/local/lib/libintl.so.5 
 Reading symbols from /usr/X11R6/lib/libXi.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libXi.so.6 
 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libXext.so.6 
 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libX11.so.6 
 Reading symbols from /usr/local/lib/libsigc.so.1...done. 
 Loaded symbols for /usr/local/lib/libsigc.so.1 
 Reading symbols from /usr/local/lib/libxml2.so.5...done. 
 Loaded symbols for /usr/local/lib/libxml2.so.5 
 Reading symbols from /lib/libz.so.2...done. 
 Loaded symbols for /lib/libz.so.2 
 Reading symbols from /usr/local/lib/libiconv.so.3...done. 
 Loaded symbols for /usr/local/lib/libiconv.so.3 
 Reading symbols from /usr/lib/bhpos/libbhtrans.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhtrans.so.1 
Reading symbols from /usr/lib/bhpos/libbhcash.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcash.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcfg.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcfg.so.1 
 Reading symbols from /usr/lib/bhpos/libbhwgt.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhwgt.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkmap.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkmap.so.1 
 Reading symbols from /usr/lib/bhpos/libbhgrp.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhgrp.so.1 
 Reading symbols from /usr/lib/bhpos/libbhlocale.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhlocale.so.1 
 ---Type return to continue, or q return to quit--- 
 Reading symbols from /usr/lib/bhpos/libbhdev.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdev.so.1 
 Reading symbols from /usr/lib/bhpos/libbhbc.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhbc.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkeyb.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkeyb.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkeyl.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkeyl.so.1 
 Reading symbols from /usr/lib/bhpos/libbhdisp.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdisp.so.1 
Reading symbols from /usr/lib/bhpos/libbhms.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhms.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcashd.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcashd.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcustd.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcustd.so.1 
 Reading symbols from /usr/lib/bhpos/libbhprinter.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhprinter.so.1 
 Reading symbols from /usr/lib/bhpos/libbhmicr.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhmicr.so.1 
 Reading symbols from /usr/lib/bhpos/libbhsc.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhsc.so.1 
 Reading symbols from /usr/lib/bhpos/libbhdt.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdt.so.1 
 Reading symbols from /usr/lib/libstdc++.so.4...done. 
 Loaded symbols for /usr/lib/libstdc++.so.4 
 Reading symbols from /lib/libm.so.2...done. 
 Loaded symbols for /lib/libm.so.2 
 Reading symbols from /usr/lib/libc_r.so.5...done. 
 Loaded symbols for /usr/lib/libc_r.so.5 
 Reading symbols from 

Porting software to FreeBSD 5.2.1

2004-04-12 Thread Eric De la Cruz Lugo
Hi All: 
 
Am trying to modify a code in order to run it in FreeBSD, this code was 
intendend for Linux only, after several days modifying code a mannaged to 
compile it successfully and ended with a binary, called post this program 
is a client side of a systema called BhPos, the server side is working ok, but 
this client is dying every time with a segmentation fault. 
 
debugging the core file from the post excecution I found the following: 
 
 terra# gdb /usr/bin/post 
 GNU gdb 5.2.1 (FreeBSD) 
 Copyright 2002 Free Software Foundation, Inc. 
 GDB is free software, covered by the GNU General Public License, and you 
are 
 welcome to change it and/or distribute copies of it under certain 
conditions. 
 Type show copying to see the conditions. 
 There is absolutely no warranty for GDB. Type show warranty for 
details. 
 This GDB was configured as i386-unknown-freebsd... 
 (gdb) core-file post.core 
 Core was generated by `post'. 
 Program terminated with signal 11, Segmentation fault. 
 Reading symbols from /usr/local/lib/libgtkmm-1.2.so.3...done. 
 Loaded symbols for /usr/local/lib/libgtkmm-1.2.so.3 
 Reading symbols from /usr/local/lib/libgdkmm-1.2.so.2...done. 
 Loaded symbols for /usr/local/lib/libgdkmm-1.2.so.2 
 Reading symbols from /usr/X11R6/lib/libgtk12.so.2...done. 
 Loaded symbols for /usr/X11R6/lib/libgtk12.so.2 
 Reading symbols from /usr/X11R6/lib/libgdk12.so.2...done. 
Loaded symbols for /usr/X11R6/lib/libgdk12.so.2 
 Reading symbols from /usr/local/lib/libgmodule12.so.3...done. 
 Loaded symbols for /usr/local/lib/libgmodule12.so.3 
 Reading symbols from /usr/local/lib/libglib12.so.3...done. 
 Loaded symbols for /usr/local/lib/libglib12.so.3 
 Reading symbols from /usr/local/lib/libintl.so.5...done. 
 Loaded symbols for /usr/local/lib/libintl.so.5 
 Reading symbols from /usr/X11R6/lib/libXi.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libXi.so.6 
 Reading symbols from /usr/X11R6/lib/libXext.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libXext.so.6 
 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. 
 Loaded symbols for /usr/X11R6/lib/libX11.so.6 
 Reading symbols from /usr/local/lib/libsigc.so.1...done. 
 Loaded symbols for /usr/local/lib/libsigc.so.1 
 Reading symbols from /usr/local/lib/libxml2.so.5...done. 
 Loaded symbols for /usr/local/lib/libxml2.so.5 
 Reading symbols from /lib/libz.so.2...done. 
 Loaded symbols for /lib/libz.so.2 
 Reading symbols from /usr/local/lib/libiconv.so.3...done. 
 Loaded symbols for /usr/local/lib/libiconv.so.3 
 Reading symbols from /usr/lib/bhpos/libbhtrans.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhtrans.so.1 
Reading symbols from /usr/lib/bhpos/libbhcash.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcash.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcfg.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcfg.so.1 
 Reading symbols from /usr/lib/bhpos/libbhwgt.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhwgt.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkmap.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkmap.so.1 
 Reading symbols from /usr/lib/bhpos/libbhgrp.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhgrp.so.1 
 Reading symbols from /usr/lib/bhpos/libbhlocale.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhlocale.so.1 
 ---Type return to continue, or q return to quit--- 
 Reading symbols from /usr/lib/bhpos/libbhdev.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdev.so.1 
 Reading symbols from /usr/lib/bhpos/libbhbc.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhbc.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkeyb.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkeyb.so.1 
 Reading symbols from /usr/lib/bhpos/libbhkeyl.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhkeyl.so.1 
 Reading symbols from /usr/lib/bhpos/libbhdisp.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdisp.so.1 
Reading symbols from /usr/lib/bhpos/libbhms.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhms.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcashd.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcashd.so.1 
 Reading symbols from /usr/lib/bhpos/libbhcustd.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhcustd.so.1 
 Reading symbols from /usr/lib/bhpos/libbhprinter.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhprinter.so.1 
 Reading symbols from /usr/lib/bhpos/libbhmicr.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhmicr.so.1 
 Reading symbols from /usr/lib/bhpos/libbhsc.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhsc.so.1 
 Reading symbols from /usr/lib/bhpos/libbhdt.so.1...done. 
 Loaded symbols for /usr/lib/bhpos/libbhdt.so.1 
 Reading symbols from /usr/lib/libstdc++.so.4...done. 
 Loaded symbols for /usr/lib/libstdc++.so.4 
 Reading symbols from /lib/libm.so.2...done. 
 Loaded symbols for /lib/libm.so.2 
 Reading symbols from /usr/lib/libc_r.so.5...done. 
 Loaded symbols for /usr/lib/libc_r.so.5 
 Reading symbols from 

Re: Porting software to FreeBSD 5.2.1

2004-04-12 Thread Eric De la Cruz Lugo
Thanks for your response, you are right about having an intimate knowledge of 
the FreeBSD libc and preferably the Linux/GNU libc sadly this is my first 
program am trying to port and i lack of that knowledge right now, i simply 
dont have the time to learn the basics, and don`t even know how to make 
patches for this code, the software is in:

http://www.bananahead.com/

you will se that there is a bsd port in progress right now but the truth is 
that with this kind o problems the port will take years to be finished.
the creator of the system is having poblems with this but my help is not 
enough to help him in the port task, hope some one with more knowledge than I 
can help him in this task.

am willin to send my logs of the compilation problems I found and tryed to 
solve.

Thanks to you and all.

Eric De La Cruz Lugo.

 
 Well, Linux is not FreeBSD.  And vice-versa.  You're trying to compile
 this code as FreeBSD native, so you don't want to use the libraries
 under /usr/compat/linux at all -- those are there for the benefit of
 Linux binaries run under emulation.
 
 The libc version number in FreeBSD is the same as the major version
 number of the OS, so your FreeBSD 5.2.1 system has:
 
 /usr/lib/libc.so.5 -- single threaded libc
 /usr/lib/libc_r.so.5   -- reentrant (for multiply threaded) libc
 
 Now, the problem you're running into is that certain similar function
 calls etc. have an API similar enough that you can get the code to
 compile, but that differ in subtle but significant ways in operation.
 This can lead to core dumps and other effects as you've seen.
 Unfortunately there is no simple way to resove that sort of problem.
 You need to run the problem code under the debugger, work out why it
 is blowing up and produce patches to the source code that fix the
 problem.  It helps if you have an intimate knowledge of the FreeBSD
 libc and preferably the Linux/GNU libc and where the incompatabilities
 are likely to occur.
 
   Cheers,
 
   Matthew
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7 1TH UK
 




---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compilation problems...

2004-04-07 Thread Eric De la Cruz Lugo
Hi All, am having problems compiling a code, here is the output from make: 
 
 
terra# make 
make  all-recursive 
Making all in src 
if g++  -I. -I. -I.. -O6 -I/usr/include/bhpos   -I'/usr/local/include/
mysql' -g -O2 -MT servmsg.o -MD -MP -MF .deps/servmsg.Tpo  -c -o servmsg.o 
`test -f 'servmsg.cpp' || echo './'`servmsg.cpp;  then mv .deps/servmsg.Tpo 
.deps/servmsg.Po;  else rm -f .deps/servmsg.Tpo; exit 1;  fi 
servmsg.cpp: In function `int serviceSystemWake(PLUServer*, BhPosMsg*)': 
servmsg.cpp:461: error: `SOCK_PACKET' undeclared (first use this function) 
servmsg.cpp:461: error: (Each undeclared identifier is reported only once for 
   each function it appears in.) 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1/src. 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1. 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1. 
terra# 
 
 
 
- 
 
Hope some ona can help on this, there is a missing header that I shoud know? 
 
the headers in this code are: 
#include cstdio 
#include cstring 
#include sys/socket.h 
 
#include pos.h 
#include msgq.h 
#include plusd.h 
 
#include bhmsgq.cpp 
 
the order is Ok? 
 
thanks in advance. 
 
Eric De La Cruz Lugo 
Merida, Yucatan, Mexico 
The Maya Land 
 
 
 

---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Compilation problems...

2004-04-07 Thread Eric De la Cruz Lugo
 
HI All, am having problems compiling a code, this is the output from the make: 
 
terra# make 
make  all-recursive 
Making all in src 
if g++  -I. -I. -I.. -O6 -I/usr/include/bhpos   -I'/usr/local/include/
mysql' -g -O2 -MT servmsg.o -MD -MP -MF .deps/servmsg.Tpo  -c -o servmsg.o 
`test -f 'servmsg.cpp' || echo './'`servmsg.cpp;  then mv .deps/servmsg.Tpo 
.deps/servmsg.Po;  else rm -f .deps/servmsg.Tpo; exit 1;  fi 
servmsg.cpp: In function `int serviceSystemWake(PLUServer*, BhPosMsg*)': 
servmsg.cpp:461: error: `SOCK_PACKET' undeclared (first use this function) 
servmsg.cpp:461: error: (Each undeclared identifier is reported only once for 
   each function it appears in.) 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1/src. 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1. 
*** Error code 1 
 
Stop in /home/eric/banana/plusd-1.2.1. 
terra# 
 
SOCK_PACKET is declared in which header?. 
 
hope some one can help on this. 
 
Thanksin advance. 
 
 
Eric De La Cruz Lugo 
Merida, Yucatan. Mexico. 

---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem compiling libsigc++ related

2004-04-05 Thread Eric De la Cruz Lugo
 
HI all, I have the following problem under FreeBSD 5.2.1 
 
this is the output: 
 
terra# make 
make  all-recursive 
Making all in m4 
Making all in src 
/usr/local/bin/bash ../libtool --mode=link g++ -O6 -I/usr/include/bhpos   -O6 
-I/usr/include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/
local/lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 
-I/usr/X11R6/include -I/usr/local/include/sigc++-1.0   -I/usr/include/bhpos/hw 
-I/usr/include/bhpos/widget -g -O2-o post  post.o transaction_ui.o  
transaction.o connect_ui.o connect.o  login_ui.o login.o request.o  
request_ui.o confirm.o confirm_ui.o  taxlist.o taxlist_ui.o cpost.o  
cpost_trans.o ctrans.o ctrans_key.o  ctrans_retkey.o ctrans_esckey.o  
ctrans_payment.o network.o sysmsg.o  postmsg.o ctrlmsg.o callbacks.o  
inputdialog_ui.o inputdialog.o  custdialog_ui.o custdialog.o pay_ui.o  pay.o 
list.o list_ui.o -Wl,-E -L/usr/local/lib -L/usr/X11R6/lib -lgtkmm -lgdkmm 
-lgtk12 -lgdk12 -lgmodule12 -lglib12 -lintl -lXi -lXext -lX11 -lm -lsigc -lc_r 
-L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm   -L/usr/lib/bhpos 
-lbhtrans -lbhcash -lbhcfg -lbhwgt -lbhkmap  -lbhgrp -lbhlocale -lbhdev -lbhbc 
-lbhkeyb -lbhkeyl -lbhdisp -lbhms -lbhcashd -lbhcustd  -lbhprinter -lbhmicr 
-lbhsc -lbhdt 
g++ -O6 -I/usr/include/bhpos -O6 -I/usr/include/bhpos -I/usr/local/include -I/
usr/local/include/libxml2 -I/usr/local/lib/gtkmm/include -I/usr/X11R6/include/
gtk12 -I/usr/local/include/glib12 -I/usr/X11R6/include -I/usr/local/include/
sigc++-1.0 -I/usr/include/bhpos/hw -I/usr/include/bhpos/widget -g -O2 -o post 
post.o transaction_ui.o transaction.o connect_ui.o connect.o login_ui.o 
login.o request.o request_ui.o confirm.o confirm_ui.o taxlist.o taxlist_ui.o 
cpost.o cpost_trans.o ctrans.o ctrans_key.o ctrans_retkey.o ctrans_esckey.o 
ctrans_payment.o network.o sysmsg.o postmsg.o ctrlmsg.o callbacks.o 
inputdialog_ui.o inputdialog.o custdialog_ui.o custdialog.o pay_ui.o pay.o 
list.o list_ui.o -Wl,-E  -L/usr/local/lib -L/usr/X11R6/lib /usr/local/lib/
libgtkmm.so /usr/local/lib/libgdkmm.so -lgtk12 -lgdk12 -lgmodule12 -lglib12 
-lintl -lXi -lXext -lX11 -lsigc -lxml2 -lz -liconv -lm -L/usr/lib/bhpos /usr/
lib/bhpos/libbhtrans.so /usr/lib/bhpos/libbhcash.so /usr/lib/bhpos/
libbhcfg.so /usr/lib/bhpos/libbhwgt.so /usr/lib/bhpos/libbhkmap.so /usr/lib/
bhpos/libbhgrp.so /usr/lib/bhpos/libbhlocale.so /usr/lib/bhpos/libbhdev.so /
usr/lib/bhpos/libbhbc.so /usr/lib/bhpos/libbhkeyb.so /usr/lib/bhpos/
libbhkeyl.so /usr/lib/bhpos/libbhdisp.so /usr/lib/bhpos/libbhms.so /usr/lib/
bhpos/libbhcashd.so /usr/lib/bhpos/libbhcustd.so /usr/lib/bhpos/
libbhprinter.so /usr/lib/bhpos/libbhmicr.so /usr/lib/bhpos/libbhsc.so /usr/
lib/bhpos/libbhdt.so -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib/
bhpos -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib/bhpos 
/usr/local/lib/libsigc.so: undefined reference to `pthread_create' 
/usr/lib/bhpos/libbhprinter.so: undefined reference to `pthread_cancel' 
/usr/local/lib/libsigc.so: undefined reference to `pthread_detach' 
/usr/lib/bhpos/libbhprinter.so: undefined reference to `pthread_setcanceltype' 
/usr/local/lib/libsigc.so: undefined reference to `pthread_cond_timedwait' 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1/src. 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1. 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1. 
terra# 
 
--- 
 
If some one knows how to solve this please mail the solution to this list. 
 
maybe there is a switch missing  in the compilation line. 
 
greetings from Merida, Yucatan, Mexico. 
 
Eric De La Cruz Lugo 

---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


i386_get_ioperm syntax....

2004-04-04 Thread Eric De la Cruz Lugo
 
Hi, am not on the list, please reply to my e-mail for possible solutions. 
 
I have this problem compiling a code: 
 
terra# make 
make  all-recursive 
Making all in m4 
Making all in src 
if g++ -DREENTRANT -I. -I. -I.. -O6 -I/usr/include/bhpos   -O6 -I/usr/
include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/
lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/
usr/X11R6/include -I/usr/local/include/sigc++-1.0   -I/usr/include/bhpos/hw 
-I/usr/include/bhpos/widget -g -O2 -MT callbacks.o -MD -MP -MF .deps/
callbacks.Tpo  -c -o callbacks.o `test -f 'callbacks.cc' || echo 
'./'`callbacks.cc;  then mv .deps/callbacks.Tpo .deps/callbacks.Po;  else 
rm -f .deps/callbacks.Tpo; exit 1;  fi 
callbacks.cc: In member function `int CPost::DeviceControl(int, int)': 
callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*' 
callbacks.cc:160: error: invalid conversion from `int' to `int*' 
callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*' 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1/src. 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1. 
*** Error code 1 
 
Stop in /home/eric/banana/post-1.2.1. 
terra# 
 
--- 
 
the relevant lines are : 
 
 else if(flags==5){ 
 return i386_get_ioperm(0x3F8, 6, 1); 
  } 
  else if(flags==6){ 
 return i386_get_ioperm(0x3F8, 6, 0); 
  } 
 
and: 
 
else if(flags==5){ 
 i386_set_ioperm(0x2F8, 6, 1); 
  } 
  else if(flags==6){ 
 i386_set_ioperm(0x2F8, 6, 0); 
  } 
 
--- 
 
some knows how to solve something like this?, am not a c++ programmer, if 
someone can give me a hint about what the right values for the 
i386_get_ioperm() should be in FreeBSD 5.2.1, please reply to my e-mail. 
 
thanks in advance. 
 
Eric De La Cruz Lugo. 
 
Merida, Yucatan, Mexico 

---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem compiling code in freeBSD 4,9 strtof related.

2004-03-26 Thread Eric De la Cruz Lugo
Hi, I am trying to compile the BhPos software (Point of Sale for Linux. 
 
But I need the strtof function , but FreeBSD 4,9 does not have this function, 
it is possible to install it taking the source code from the 5.X FreeBSD 
branch? 
 
here is my cc output: 
 
 
cc -O -pipe  -DLIBC_RCS -DSYSLIBC_RCS -I/usr/src/lib/libc/include 
-D__DBINTERFACE_PRIVATE -DINET6 -DPOSIX_MISTAKE 
-I/usr/src/lib/libc/../libc/locale -DBROKEN_DES -DYP  -c 
/usr/src/lib/libc/../libc/stdlib/strtof.c -o strtof.o 
In file included from /usr/include/gdtoaimp.h:180, 
 from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoa.h:41: arith.h: No such file or directory 
In file included from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoaimp.h:194: un-namespace.h: No such file or directory 
In file included from /usr/src/lib/libc/../libc/stdlib/strtof.c:38: 
/usr/include/gdtoaimp.h:278: syntax error before `one' 
/usr/include/gdtoaimp.h:278: syntax error before `IBM' 
/usr/include/gdtoaimp.h:281: syntax error before `}' 
*** Error code 1 
 
hope some one has a clue about how to solve this with out installing FreeBSD 
5.x 
 
thanks in advance. 
 
Eric De La Cruz Lugo 
Merida, Yucatan, Mexico. 
 

---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Banan Pos Software under FreeBSD.

2004-03-18 Thread Eric De la Cruz Lugo
Hi!, some one have tried to compile an run the bananapos software?

www.bananapos.com

if some one have successfully installed it please reply to my e-mail!

thanks in advance.

Sorry for my bad english too.

Eric De La Cruz Lugo

At Merida, Yucatan, Mexico
The Maya Land!




---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Wireless question, maybe off topic

2003-08-14 Thread Eric De la Cruz Lugo
Sorry if this is not the right list, I have checked de Hardware Notes for 
FreeBSD 4.8 and there is this wireless adapter called:
 
Netgear MA401

Its a PCMCIA adapter.

But i was checking on google and found this one:

Netgear MA311 802.11b Wireless PCI Adapter

I need a PCI card for my desktop wich runs FreeBSD I want to connect peer to 
peer 2 FreeBSD boxes at 1 mile from each other, (I want to try the pringles 
antennas as described in


http://www.oreillynet.com/cs/weblog/view/wlg/448
 
I know there are Aironet PCI adapters but they are expensive, I want to try  
with cheaper hardware and the Netgear is cheaper in an order of maggnitude.
 
Hope some one knows about this, if possible, or point me to the right list to 
ask.

Thanks in advance.

Eric De La Cruz Lugo
Merida, Yucatan, Mexico.
P.S. Sorry for my bad english.


---
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]