mysqlcc-0.8.10 complie error

mysqlcc-0.8.10 complie error

am 12.02.2003 23:07:38 von Alexander Saers

Hello i have a system running redhat 8.0. I have downloaded mysql and
mysqlcc source files

How-To-Repeat:
First i installed mysql from source. All worked fine. Now i tried to
build the mysqlcc application. Configure runs great but after a while i
get this when running make


g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2
-march=386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -D_REENTRANT
-DQT_DLL -DHAV_MYSQLCC_CONFIG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
-Iinclude -Ishared/include -Include/CSqlEditor
-I../../local/include/mysql -I/usr/lib/qt3-gcc3.2/include
-I./../X11R6/include -Imoc/ -I/usr/lib/qt3-gcc3.2/mkspecs/linux-g++ -o
tmp/main.o
rc/main.cpp
src/main.cpp:34:23: my_getopt.h: No such file or directory
src/main.cpp:43: `GET_NO_ARG' was not declared in this scope
src/main.cpp:43: `NO_ARG' was not declared in this scope
src/main.cpp:45: `GET_NO_ARG' was not declared in this scope
src/main.cpp:45: `NO_ARG' was not declared in this scope
src/main.cpp:47: `GET_NO_ARG' was not declared in this scope
src/main.cpp:47: `NO_ARG' was not declared in this scope
src/main.cpp:49: `GET_NO_ARG' was not declared in this scope
src/main.cpp:49: `NO_ARG' was not declared in this scope
src/main.cpp:51: `GET_STR' was not declared in this scope
src/main.cpp:51: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:53: `GET_STR' was not declared in this scope
src/main.cpp:53: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:55: `GET_STR' was not declared in this scope
src/main.cpp:55: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:57: `GET_STR' was not declared in this scope
src/main.cpp:57: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:61: `GET_STR' was not declared in this scope
src/main.cpp:61: `OPT_ARG' was not declared in this scope
src/main.cpp:63: `GET_UINT' was not declared in this scope
src/main.cpp:63: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:66: `GET_STR' was not declared in this scope
src/main.cpp:66: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:69: `GET_ULONG' was not declared in this scope
src/main.cpp:69: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:71: `GET_STR' was not declared in this scope
src/main.cpp:71: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:73: `GET_UINT' was not declared in this scope
src/main.cpp:73: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:76: `GET_STR' was not declared in this scope
src/main.cpp:76: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:79: `GET_STR' was not declared in this scope
src/main.cpp:79: `REQUIRED_ARG' was not declared in this scope
src/main.cpp:81: `GET_NO_ARG' was not declared in this scope
src/main.cpp:81: `NO_ARG' was not declared in this scope
src/main.cpp:83: `GET_NO_ARG' was not declared in this scope
src/main.cpp:83: `NO_ARG' was not declared in this scope
src/main.cpp:84: array size missing in `my_long_options'
src/main.cpp:84: storage size of `my_long_options' isn't known
src/main.cpp:41: storage size of `my_long_options' isn't known
src/main.cpp: In function `my_bool get_one_option(int, const my_option*,
char*)':
src/main.cpp:96: invalid use of undefined type `struct my_option'
src/main.cpp:41: forward declaration of `struct my_option'
src/main.cpp:96: `GET_NO_ARG' undeclared (first use this function)
src/main.cpp:96: (Each undeclared identifier is reported only once for
each
function it appears in.)
src/main.cpp:96: invalid use of undefined type `struct my_option'
src/main.cpp:41: forward declaration of `struct my_option'
src/main.cpp:96: `NO_ARG' undeclared (first use this function)
src/main.cpp: In function `void usage()':
src/main.cpp:117: `my_print_help' undeclared (first use this function)
src/main.cpp: In function `int main(int, char**)':
src/main.cpp:127: `handle_options' undeclared (first use this function)
make: *** [tmp/main.o] Error 1


Whats wrong. Is this a bug. It seams that the file my_getopt.h is
missing

Thanx for a great product

/Alexander Saers



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13770@lists.mysql.com
To unsubscribe, e-mail

Re: mysqlcc-0.8.10 complie error

am 13.02.2003 10:48:53 von Lenz Grimmer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Wed, 12 Feb 2003, Alexander Saers wrote:

> Hello i have a system running redhat 8.0. I have downloaded mysql and
> mysqlcc source files
>
> How-To-Repeat:
> First i installed mysql from source. All worked fine. Now i tried to
> build the mysqlcc application. Configure runs great but after a while i
> get this when running make
>
>
> g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2
> -march=386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -D_REENTRANT
> -DQT_DLL -DHAV_MYSQLCC_CONFIG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -Iinclude -Ishared/include -Include/CSqlEditor
> -I../../local/include/mysql -I/usr/lib/qt3-gcc3.2/include
> -I./../X11R6/include -Imoc/ -I/usr/lib/qt3-gcc3.2/mkspecs/linux-g++ -o
> tmp/main.o
> rc/main.cpp
> src/main.cpp:34:23: my_getopt.h: No such file or directory
> src/main.cpp:43: `GET_NO_ARG' was not declared in this scope
> src/main.cpp:43: `NO_ARG' was not declared in this scope

[...]

> Whats wrong. Is this a bug. It seams that the file my_getopt.h is
> missing

Yes, that's the correct assumption - compiling MySQLCC currently requires
the MySQL 4.0 headers and libraries installed. AFAIK Jorge wanted to fix
that, but it does not seem to have happened yet.

Note, that you only need the 4.0 headers and libs for compiling MySQLCC -
you can still connect to 3.23 servers as well.

Bye,
LenZ
- --
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Lenz Grimmer
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Production Engineer
/_/ /_/\_, /___/\___\_\___/ Hamburg, Germany
<___/ www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQE+S2oGSVDhKrJykfIRAjtLAJ0e7lk1p1S1efp4yXct2pkFgfxUxQCf e4yH
HnU5nt80HZIY8mmKCYok2EE=
=dEJ0
-----END PGP SIGNATURE-----

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13772@lists.mysql.com
To unsubscribe, e-mail

Re: mysqlcc-0.8.10 complie error

am 13.02.2003 19:57:53 von Jorge del Conde

Hi!

>> On Wed, 12 Feb 2003, Alexander Saers wrote:
> > How-To-Repeat:
> > First i installed mysql from source. All worked fine. Now i tried to
> > build the mysqlcc application. Configure runs great but after a while i
> > get this when running make
>
From: "Lenz Grimmer"
> Yes, that's the correct assumption - compiling MySQLCC currently requires
> the MySQL 4.0 headers and libraries installed. AFAIK Jorge wanted to fix
> that, but it does not seem to have happened yet.
>
> Note, that you only need the 4.0 headers and libs for compiling MySQLCC -
> you can still connect to 3.23 servers as well.

Lenz is correct. MySQLCC requires 4.0 to compile. I have just fixed the
configure script to check for a 4.0+ distribution. Unfortunatley we don't
have plans on supporting the 3.23 branch for compiling MySQLCC anymore.

Regards,
Jorge
--
For technical support contracts, visit https://order.mysql.com/?ref=mjdc
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Jorge del Conde
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Mexico City, Mexico
<___/ www.mysql.com

MySQL Users Conference and Expo
http://www.mysql.com/events/uc2003/


----- Original Message -----
From: "Lenz Grimmer"
To: "Alexander Saers"
Cc:
Sent: Thursday, February 13, 2003 3:48 AM
Subject: Re: mysqlcc-0.8.10 complie error


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> On Wed, 12 Feb 2003, Alexander Saers wrote:
>
> > Hello i have a system running redhat 8.0. I have downloaded mysql and
> > mysqlcc source files
> >
> > How-To-Repeat:
> > First i installed mysql from source. All worked fine. Now i tried to
> > build the mysqlcc application. Configure runs great but after a while i
> > get this when running make
> >
> >
> > g++ -c -pipe -Wall -W -I/usr/include/fontconfig -I/usr/include/Xft2 -O2
> > -march=386 -mcpu=i686 -fno-use-cxa-atexit -fno-exceptions -D_REENTRANT
> > -DQT_DLL -DHAV_MYSQLCC_CONFIG -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> > -Iinclude -Ishared/include -Include/CSqlEditor
> > -I../../local/include/mysql -I/usr/lib/qt3-gcc3.2/include
> > -I./../X11R6/include -Imoc/ -I/usr/lib/qt3-gcc3.2/mkspecs/linux-g++ -o
> > tmp/main.o
> > rc/main.cpp
> > src/main.cpp:34:23: my_getopt.h: No such file or directory
> > src/main.cpp:43: `GET_NO_ARG' was not declared in this scope
> > src/main.cpp:43: `NO_ARG' was not declared in this scope
>
> [...]
>
> > Whats wrong. Is this a bug. It seams that the file my_getopt.h is
> > missing
>
> Yes, that's the correct assumption - compiling MySQLCC currently requires
> the MySQL 4.0 headers and libraries installed. AFAIK Jorge wanted to fix
> that, but it does not seem to have happened yet.
>
> Note, that you only need the 4.0 headers and libs for compiling MySQLCC -
> you can still connect to 3.23 servers as well.
>
> Bye,
> LenZ
> - --
> For technical support contracts, visit https://order.mysql.com/?ref=mlgr
> __ ___ ___ ____ __
> / |/ /_ __/ __/ __ \/ / Mr. Lenz Grimmer
> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Production Engineer
> /_/ /_/\_, /___/\___\_\___/ Hamburg, Germany
> <___/ www.mysql.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.0 (GNU/Linux)
> Comment: For info see http://quantumlab.net/pine_privacy_guard/
>
> iD8DBQE+S2oGSVDhKrJykfIRAjtLAJ0e7lk1p1S1efp4yXct2pkFgfxUxQCf e4yH
> HnU5nt80HZIY8mmKCYok2EE=
> =dEJ0
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------ ---------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail bugs-thread13772@lists.mysql.com
> To unsubscribe, e-mail
>



------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13775@lists.mysql.com
To unsubscribe, e-mail