RE: [Obsbox-devel] Errors during make
Brought to you by:
lovegnome,
mayhemchaos
|
From: Dylan B. <dyl...@ho...> - 2003-03-10 20:57:22
|
Hey guys, thanks for the quick replies! Robert, you hit the nail right =
on the head. I checked for, didn't find, and installed the MySQL-devel =
package that matches the MySQL that I installed and the make/make =
install processes worked!
So I'm following the instructions and making changes appropriately, and =
I found another minor roadblock. There's no obs.conf or devices.conf! =
What to do?
Also, in the sample devices.conf file in the documentation, it says to =
start with a clean directory. Is this because OBS copies files from =
their original locations to the new mount directory when run the scripts =
to add them to the database?
Thanks for all the help!
Dylan
----- Original Message -----=20
From: Steve Waltner=20
To: Dylan Baxter=20
Cc: obs...@li...=20
Sent: Monday, March 10, 2003 5:49 AM
Subject: Re: [Obsbox-devel] Errors during make
This is kind of odd. The make process find your MySQL installation (at =
least it finds libmysqlclient.a), but GCC isn't finding it. Where did =
you install MySQL on your system? I installed mine under =
/usr/local/mysql-<version>/ and then created links under =
/usr/local/lib/, /usr/local/include/, /usr/local/bin/, etc... Did you do =
something similar and forget /usr/local/include/?
Steve
On Sunday, March 9, 2003, at 11:41 PM, Dylan Baxter wrote:
Hello list,
=20
I'm having some trouble during the make. The configure runs fine. =
Any help will be much appreciated, thanks!
=20
Here's output:
=20
=20
[root@jukebox obs-0.5.0-pre2]# ./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install =
-c
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for io.h... (cached) no
checking for pthread.h... (cached) yes
checking for linux/ucdrom.h... (cached) no
checking for working const... (cached) yes
checking for mkdir... (cached) yes
checking for shout_init_connection in -lshout... (cached) no
checking for libc5... no
checking for compress in -lz... (cached) yes
checking for XML_ParserCreate in -lexpat... (cached) yes
checking for pthread_create in -lpthread... (cached) yes
checking for mysql_connect in -lmysqlclient... (cached) yes
checking for fmysql_real_escape_string in -lmysqlclient... (cached) =
no
creating ./config.status
creating Makefile.header
creating main/Makefile
creating volman/Makefile
creating net/Makefile
creating Makefile
creating utils/Makefile
creating mpegutils/Makefile
creating xmit/Makefile
creating etc/obs.xml
creating config.h
config.h is unchanged
[root@jukebox obs-0.5.0-pre2]# make
make -C main
make[1]: Entering directory `/root/obs-0.5.0-pre2/main'
g++ -Wall -g -O2 -D_REENTRANT -c -I../utils -I../xmit -I../volman =
-I../mpegutils -I../net -I../include -I.. =
-DPREFIX=3D"\"/usr/local/obs\"" -DLOGDIR=3D"\"/usr/local/obs/logs\"" =
Main.cpp
Main.cpp:27:25: mysql/mysql.h: No such file or directory
In file included from Channel.h:29,
from ChannelManager.h:28,
from Main.cpp:30:
../volman/TrackManager.h:27:26: mysql/mysql.h: No such file or =
directory
In file included from Channel.h:29,
from ChannelManager.h:28,
from Main.cpp:30:
../volman/TrackManager.h:66: `MYSQL' was not declared in this scope
../volman/TrackManager.h:66: `pDb' was not declared in this scope
../volman/TrackManager.h:66: parse error before `&' token
../volman/TrackManager.h:67: `MYSQL' was not declared in this scope
../volman/TrackManager.h:67: `pDb' was not declared in this scope
../volman/TrackManager.h:67: parse error before `&' token
../volman/TrackManager.h:69: `MYSQL' was not declared in this scope
../volman/TrackManager.h:69: `pDb' was not declared in this scope
../volman/TrackManager.h:69: parse error before `*' token
../volman/TrackManager.h:71: `MYSQL' was not declared in this scope
../volman/TrackManager.h:71: `pDb' was not declared in this scope
../volman/TrackManager.h:71: parse error before `&' token
../volman/TrackManager.h:80: 'MYSQL' is used as a type, but is not =
defined as a
type.
In file included from Channel.h:31,
from ChannelManager.h:28,
from Main.cpp:30:
../volman/FeedCache.h:26:25: mysql/mysql.h: No such file or =
directory
In file included from Channel.h:31,
from ChannelManager.h:28,
from Main.cpp:30:
../volman/FeedCache.h:50: `MYSQL' was not declared in this scope
../volman/FeedCache.h:50: `pDb' was not declared in this scope
../volman/FeedCache.h:50: invalid data member initialization
../volman/FeedCache.h:50: (use `=3D' to initialize static data =
members)
../volman/FeedCache.h:51: `MYSQL' was not declared in this scope
../volman/FeedCache.h:51: `pDb' was not declared in this scope
../volman/FeedCache.h:51: parse error before `)' token
../volman/FeedCache.h:52: `MYSQL' was not declared in this scope
../volman/FeedCache.h:52: `pDb' was not declared in this scope
../volman/FeedCache.h:52: invalid data member initialization
../volman/FeedCache.h:53: `MYSQL' was not declared in this scope
../volman/FeedCache.h:53: `pDb' was not declared in this scope
../volman/FeedCache.h:53: parse error before `)' token
../volman/FeedCache.h:54: `MYSQL' was not declared in this scope
../volman/FeedCache.h:54: `pDb' was not declared in this scope
../volman/FeedCache.h:54: invalid data member initialization
../volman/FeedCache.h:55: `MYSQL' was not declared in this scope
../volman/FeedCache.h:55: `pDb' was not declared in this scope
../volman/FeedCache.h:55: parse error before `&' token
../volman/FeedCache.h:56: `MYSQL' was not declared in this scope
../volman/FeedCache.h:56: `pDb' was not declared in this scope
../volman/FeedCache.h:56: parse error before `)' token
../volman/FeedCache.h:57: `MYSQL' was not declared in this scope
../volman/FeedCache.h:57: `pDb' was not declared in this scope
../volman/FeedCache.h:57: parse error before `,' token
../volman/FeedCache.h:59: `MYSQL' was not declared in this scope
../volman/FeedCache.h:59: `pDb' was not declared in this scope
../volman/FeedCache.h:59: parse error before `&' token
../volman/FeedCache.h:61: `MYSQL' was not declared in this scope
../volman/FeedCache.h:61: `pDb' was not declared in this scope
../volman/FeedCache.h:61: invalid data member initialization
../volman/FeedCache.h:61: variable or field `PruneTrackStatistics' =
declared
void
../volman/FeedCache.h:62: `MYSQL' was not declared in this scope
../volman/FeedCache.h:62: `pDb' was not declared in this scope
../volman/FeedCache.h:62: parse error before `)' token
../volman/FeedCache.h:64: `MYSQL' was not declared in this scope
../volman/FeedCache.h:64: `pDb' was not declared in this scope
../volman/FeedCache.h:64: parse error before `&' token
Main.cpp: In function `bool DBSanityCheck(std::string&, =
std::string&,
std::string&, std::string&)':
Main.cpp:106: `MYSQL' undeclared (first use this function)
Main.cpp:106: (Each undeclared identifier is reported only once for =
each
function it appears in.)
Main.cpp:106: parse error before `,' token
Main.cpp:107: `MYSQL_RES' undeclared (first use this function)
Main.cpp:107: `pRes' undeclared (first use this function)
Main.cpp:111: `pRet' undeclared (first use this function)
Main.cpp:111: `sDb' undeclared (first use this function)
Main.cpp:111: `mysql_connect' undeclared (first use this function)
Main.cpp:116: `mysql_error' undeclared (first use this function)
Main.cpp:117: `mysql_close' undeclared (first use this function)
Main.cpp:122: `mysql_select_db' undeclared (first use this function)
Main.cpp:136: `mysql_query' undeclared (first use this function)
Main.cpp:139: `mysql_store_result' undeclared (first use this =
function)
Main.cpp:142: `mysql_free_result' undeclared (first use this =
function)
make[1]: *** [Main.o] Error 1
make[1]: Leaving directory `/root/obs-0.5.0-pre2/main'
make: *** [all] Error 2
[root@jukebox obs-0.5.0-pre2]#
=20
=20
Dylan Baxter
|