Re: [Obsbox-devel] Errors during make
Brought to you by:
lovegnome,
mayhemchaos
|
From: Steve W. <swa...@ma...> - 2003-03-10 12:49:33
|
This is kind of odd. The make process find your MySQL installation (at=20=
least it finds libmysqlclient.a), but GCC isn't finding it. Where did=20
you install MySQL on your system? I installed mine under=20
/usr/local/mysql-<version>/ and then created links under=20
/usr/local/lib/, /usr/local/include/, /usr/local/bin/, etc... Did you=20
do something similar and forget /usr/local/include/?
Steve
On Sunday, March 9, 2003, at 11:41 PM, Dylan Baxter wrote:
> Hello list,
> =A0
> I'm having some trouble during the make. The configure runs fine.=A0Any=20=
> help will be much appreciated, thanks!
> =A0
> Here's output:
> =A0
> =A0
> [root@jukebox obs-0.5.0-pre2]# ./configure
> loading cache ./config.cache
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc=A0 ) works... yes
> checking whether the C compiler (gcc=A0 ) 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++=A0 ) works... yes
> checking whether the C++ compiler (c++=A0 ) 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=20
> -I../mpegutils -I../net -I../include -I..=20
> -DPREFIX=3D"\"/usr/local/obs\"" -DLOGDIR=3D"\"/usr/local/obs/logs\""=20=
> Main.cpp
> Main.cpp:27:25: mysql/mysql.h: No such file or directory
> In file included from Channel.h:29,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from =
ChannelManager.h:28,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from Main.cpp:30:
> ../volman/TrackManager.h:27:26: mysql/mysql.h: No such file or=20
> directory
> In file included from Channel.h:29,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from =
ChannelManager.h:28,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 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=20
> defined as a
> =A0=A0 type.
> In file included from Channel.h:31,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from =
ChannelManager.h:28,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from Main.cpp:30:
> ../volman/FeedCache.h:26:25: mysql/mysql.h: No such file or directory
> In file included from Channel.h:31,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 from =
ChannelManager.h:28,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 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'=20
> declared
> =A0=A0 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&,
> =A0=A0 std::string&, std::string&)':
> Main.cpp:106: `MYSQL' undeclared (first use this function)
> Main.cpp:106: (Each undeclared identifier is reported only once for=20
> each
> =A0=A0 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]#
> =A0
> =A0
> Dylan Baxter
|