greensql on fedora 11

6 replies
johnybravo
johnybravo's picture
Joined: 06/24/2009
User offline. Last seen 34 weeks 1 day ago.

When you have the time please compile a new rpm for Fedora 11.

The current F10 package fails because of a dependency error looking for libmysqlclient.so.15 where F11 has libmysqlclient.so.16.

Thanks heaps!

johnybravo
johnybravo's picture
Joined: 06/24/2009
User offline. Last seen 34 weeks 1 day ago.

On Fedora 11 64 bit both SVN and the Source Code package fail to build.


[root@issweb greensql-fw-1.0.0]# ./build.sh
flex ok
bison ok
Building rpm package (for SuSe/Fedora/Redhat/Centos)
rpmbuild ok
cp: `./' and `../greensql-fw-1.0.0/.' are the same file
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.a1nN8d
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf greensql-fw-1.0.0
+ /usr/bin/gzip -dc /root/greensql_install/greensql/greensql-fw-1.0.0.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd greensql-fw-1.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.m4EyjZ
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd greensql-fw-1.0.0
+ make 'RPM_OPT_FLAGS=-O2 -g'
rm -rf greensql-fw src/greensql-fw
cd src; make; cp greensql-fw ../
make[1]: Entering directory `/root/rpmbuild/BUILD/greensql-fw-1.0.0/src'
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o main.o main.cpp
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o buffer.o buffer.cpp
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o greensql.o greensql.cpp
greensql.cpp: In member function 'int GreenSQL::client_socket(std::string&, int)':
greensql.cpp:169: error: 'perror' was not declared in this scope
greensql.cpp:171: error: 'perror' was not declared in this scope
greensql.cpp: In member function 'int GreenSQL::socket_accept(int)':
greensql.cpp:203: error: 'perror' was not declared in this scope
greensql.cpp:205: error: 'perror' was not declared in this scope
greensql.cpp:224: error: 'perror' was not declared in this scope
greensql.cpp: In member function 'int GreenSQL::new_socket()':
greensql.cpp:325: error: 'perror' was not declared in this scope
make[1]: *** [greensql.o] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/greensql-fw-1.0.0/src'
cp: cannot stat `greensql-fw': No such file or directory
make: *** [greensql-fw] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.m4EyjZ (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.m4EyjZ (%build)

johnybravo
johnybravo's picture
Joined: 06/24/2009
User offline. Last seen 34 weeks 1 day ago.

To my regret I am left to conclude this project is a good initiative but is supported by a single developer with limited time. Too bad... but hey it's free :)

Whenever you can respond to some forum stuff update some code... etc

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 20 hours 56 min ago.

Hello Johny

I was in a kind of vacation ;)

From the information - one of the headers file is missing in greensql.cpp

Try to add the following line to this file and rebuild:
#include <cstdio>

Please update me if it worked for you,
Yuli

johnybravo
johnybravo's picture
Joined: 06/24/2009
User offline. Last seen 34 weeks 1 day ago.

That did nothing. Got the latest from SVN. Please please spend some time and create an RPM - Fedora 11 has been out for ages now. Same errors with or without putting #include in there... plus what are you looking to include?


[root@issweb greensql-fw]# ./build.sh
flex ok
bison ok
Building rpm package (for SuSe/Fedora/Redhat/Centos)
rpmbuild ok
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fZ6LKb
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf greensql-fw-1.0.0
+ /usr/bin/gzip -dc /root/greensql_install/greensql/greensqlsvn/trunk/greensql-fw-1.0.0.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd greensql-fw-1.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.mhqStR
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd greensql-fw-1.0.0
+ make 'RPM_OPT_FLAGS=-O2 -g'
rm -rf greensql-fw src/greensql-fw
cd src; make; cp greensql-fw ../
make[1]: Entering directory `/root/rpmbuild/BUILD/greensql-fw-1.0.0/src'
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o main.o main.cpp
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o buffer.o buffer.cpp
g++ -g -Wno-deprecated -Wall -I/usr/include/mysql/ -I/usr/local/include/ -I/usr/local/include/mysql/ -c -o greensql.o greensql.cpp
greensql.cpp:8:9: error: #include expects "FILENAME" or
greensql.cpp: In member function 'int GreenSQL::client_socket(std::string&, int)':
greensql.cpp:169: error: 'perror' was not declared in this scope
greensql.cpp:171: error: 'perror' was not declared in this scope
greensql.cpp: In member function 'int GreenSQL::socket_accept(int)':
greensql.cpp:203: error: 'perror' was not declared in this scope
greensql.cpp:205: error: 'perror' was not declared in this scope
greensql.cpp:224: error: 'perror' was not declared in this scope
greensql.cpp: In member function 'int GreenSQL::new_socket()':
greensql.cpp:325: error: 'perror' was not declared in this scope
make[1]: *** [greensql.o] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/greensql-fw-1.0.0/src'
cp: cannot stat `greensql-fw': No such file or directory
make: *** [greensql-fw] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.mhqStR (%build)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.mhqStR (%build)

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 20 hours 56 min ago.

Hello

I have another solution for you. Instead of perror() function you can use another one. For example:
perror("message");

You can change it to:
fprintf(stderr,"message");

Yuli

yuli
yuli's picture
Joined: 01/30/2008
User offline. Last seen 20 hours 56 min ago.

Hello

In the new version we have release packages for Fedora 11. Does it works for you ?

Yuli

Back to top