Details
-
Type:
Bug
-
Status: Closed
-
Resolution: Not a Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
The ~/mariadb-5.5.23/debug/support-files/mysql.5.5.23.spec does not compile.
This is the upstream (oracle) spec file, so I modified it to work with the mariadb source tarball.
The only modification to it was:
diff mysql.5.5.23.spec /build/SPECS/mariadb.5.5.23.spec
81c81
< %define src_base mysql
—
> %define src_base mariadb
doing a rpmbuild -ba mariadb.5.5.23.spec mostly builds (78% done) until the following error:
Linking CXX executable mysqlbinlog
cd /build/BUILD/mariadb-5.5.23/debug/client && /usr/bin/cmake -E cmake_link_script CMakeFiles/mysqlbinlog.dir/link.txt --verbose=1
/usr/bin/gcc -g -felide-constructors -fno-exceptions -fno-rtti -fPIC -Wall -Wno-unused-parameter -fno-implicit-templates -fno-exceptions -fno-rtti -O -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DENABLED_DEBUG_SYNC -DSAFE_MUTEX -DSAFEMALLOC -Wall -Wextra -Wunused -Wwrite-strings -Wno-strict-aliasing -Wno-unused-parameter -Woverloaded-virtual -fPIC CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o -o mysqlbinlog -lpthread ../libmysql/libmysqlclient.a -lpthread -lm -lrt -ldl
CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `cleanup':
/build/BUILD/mariadb-5.5.23/mariadb-5.5.23/client/mysqlbinlog.cc:1465: undefined reference to `operator delete(void*)'
CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `Table_map_log_event::create_table_def()':
/build/BUILD/mariadb-5.5.23/mariadb-5.5.23/sql/log_event.h:3603: undefined reference to `operator new(unsigned long)'
CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `Rows_log_event::print_verbose(st_io_cache*, st_print_event_info*)':
/build/BUILD/mariadb-5.5.23/mariadb-5.5.23/sql/log_event.cc:2317: undefined reference to `operator delete(void*)'
CMakeFiles/mysqlbinlog.dir/mysqlbinlog.cc.o: In function `main':
/build/BUILD/mariadb-5.5.23/mariadb-5.5.23/client/mysqlbinlog.cc:2347: undefined reference to `operator new(unsigned long)'
collect2: ld returned 1 exit status
make[2]: *** [client/mysqlbinlog] Error 1
make[2]: Leaving directory `/build/BUILD/mariadb-5.5.23/debug'
make[1]: *** [client/CMakeFiles/mysqlbinlog.dir/all] Error 2
make[1]: Leaving directory `/build/BUILD/mariadb-5.5.23/debug'
make: *** [all] Error 2
error: Bad exit status from /build/tmp/rpm-tmp.iXJazy (%build)
Does anyone have a working spec file for 5.5.23?
Thanks
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: Support spec file doesn't compile (5.5.23)
I#m afraid nobody has a working spec right now. But if you want to try out a fix, I noticed that in your build gcc is being used as C++ compiler. Could you try out g++ as C++ compiler, this has better chance for success.