I'm getting this While compiling Openwrt SDK with "make V=99":
Making all in examples
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/examples'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/examples'
Making all in lib
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
make all-am
make[7]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
mv -f .deps/gl_avltree_oset.Tpo .deps/gl_avltree_oset.Po
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c
mv -f .deps/c-stack.Tpo .deps/c-stack.Po
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
Makefile:1279: recipe for target 'clean-temp.o' failed
make[7]: *** [clean-temp.o] Error 1
make[7]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
Makefile:1083: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
Makefile:1023: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Makefile:976: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Makefile:32: recipe for target '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/.built' failed
make[3]: *** [/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/.built] Error 2
make[3]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/tools/m4'
tools/Makefile:112: recipe for target 'tools/m4/compile' failed
make[2]: *** [tools/m4/compile] Error 2
make[2]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt'
tools/Makefile:111: recipe for target '/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/stamp/.tools_install_nnynn' failed
make[1]: *** [/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/stamp/.tools_install_nnynn] Error 2
make[1]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt'
/home/ghanem/Documents/openwrtsdk/openwrt/include/toplevel.mk:138: recipe for target 'world' failed
make: *** [world] Error 2
ghanem#ghanem-VGN-BZ31XT:~/Documents/openwrtsdk/openwrt$ clear
ghanem#ghanem-VGN-BZ31XT:~/Documents/openwrtsdk/openwrt$ make V=99
make[1]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt'
make[2]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt'
+ mkdir -p /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32
+ cd /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32
+ mkdir -p bin lib include stamp
mkdir -p /home/ghanem/Documents/openwrtsdk/openwrt/build_dir/target-mipsel_r2_uClibc-0.9.32/stamp
touch /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/.prepared
+ mkdir -p /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host
+ cd /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host
+ mkdir -p bin lib include stamp
mkdir -p /home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/stamp
install -m0644 /home/ghanem/Documents/openwrtsdk/openwrt/tools/include/*.h /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include/
touch /home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/.prepared
make[3]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/tools/m4'
make -C /home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15
make[4]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
make all-recursive
make[5]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Making all in .
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Making all in examples
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/examples'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/examples'
Making all in lib
make[6]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
make all-am
make[7]: Entering directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT gl_avltree_oset.o -MD -MP -MF .deps/gl_avltree_oset.Tpo -c -o gl_avltree_oset.o gl_avltree_oset.c
mv -f .deps/gl_avltree_oset.Tpo .deps/gl_avltree_oset.Po
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c
mv -f .deps/c-stack.Tpo .deps/c-stack.Po
x86_64-linux-gnu-gcc -std=gnu99 -I. -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -O2 -I/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/host/include -MT clean-temp.o -MD -MP -MF .deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:456:1: error: 'gets' undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
Makefile:1279: recipe for target 'clean-temp.o' failed
make[7]: *** [clean-temp.o] Error 1
make[7]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
Makefile:1083: recipe for target 'all' failed
make[6]: *** [all] Error 2
make[6]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/lib'
Makefile:1023: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Makefile:976: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15'
Makefile:32: recipe for target '/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/.built' failed
make[3]: *** [/home/ghanem/Documents/openwrtsdk/openwrt/build_dir/host/m4-1.4.15/.built] Error 2
make[3]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt/tools/m4'
tools/Makefile:112: recipe for target 'tools/m4/compile' failed
make[2]: *** [tools/m4/compile] Error 2
make[2]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt'
tools/Makefile:111: recipe for target '/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/stamp/.tools_install_nnynn' failed
make[1]: *** [/home/ghanem/Documents/openwrtsdk/openwrt/staging_dir/target-mipsel_r2_uClibc-0.9.32/stamp/.tools_install_nnynn] Error 2
make[1]: Leaving directory '/home/ghanem/Documents/openwrtsdk/openwrt'
/home/ghanem/Documents/openwrtsdk/openwrt/include/toplevel.mk:138: recipe for target 'world' failed
make: *** [world] Error 2
Anyone know if this is a common occurrence? And if so how can I get past it? I've already read about "fixes", like this one: (https://dev.openwrt.org/attachment/ticket/12005/stdio.patch) But how can I use this fix and where should I copy-paste it?
ok, I was able to get past this error but I was welcomed with a truckload of others. Anyway, here's how you get past it:
open the file “build_dir/host/m4-1.4.16/lib/stdio.h” in a text editor, then search for “_GL_WARN_ON_USE (gets, “gets is a security hole – use fgets instead”);” and replace it with the following line.
#define gets(a) fgets( a, sizeof(*(a)), stdin);
save and close.
You'll now have another folder named bison-2.4.3 in build_dir/host. Go to /build_dir/host/bison-2.4.3/lib/stdio.h and do the same thing. That's it.
Right after this, you'll run into a "elf.cpp: In static member function 'static Elf::file* Elf::file::open(const char*)'"
All you need to do to get past this error is by opening the file "elf.cpp" in /build_dir/host/mklibs/src/mklibs-readelf and add:
#include <unistd.h>
That should get you past it.
Related
Mupdf no longer compiles on macOS 12.16.1. Using MacPorts for instance gives:
:info:build mkdir -p build/shared-release/generated/resources/fonts/noto/ ; /usr/bin/clang -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -Os -arch x86_64 -Iinclude -MMD -MP -o build/shared-release/generated/resources/fonts/noto/NotoSansOldPermic-Regular.otf.o -c generated/resources/fonts/noto/NotoSansOldPermic-Regular.otf.c -Wall -Wsign-compare -fPIC -O0
:info:build mkdir -p build/shared-release/generated/resources/fonts/noto/ ; /usr/bin/clang -ffunction-sections -fdata-sections -pipe -O2 -DNDEBUG -fomit-frame-pointer -Os -arch x86_64 -Iinclude -MMD -MP -o build/shared-release/generated/resources/fonts/noto/NotoSansOldPersian-Regular.otf.o -c generated/resources/fonts/noto/NotoSansOldPersian-Regular.otf.c -Wall -Wsign-compare -fPIC -O0
:info:build clang: note: diagnostic msg:
:info:build ********************
:info:build PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
:info:build Preprocessed source(s) and associated run script(s) are located at:
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/.tmp/SourceHanSerif-Regular-5d1585.c
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/.tmp/SourceHanSerif-Regular-5d1585.sh
:info:build clang: note: diagnostic msg: Crash backtrace is located in
:info:build clang: note: diagnostic msg: /opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/.home/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
:info:build clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
:info:build clang: note: diagnostic msg:
:info:build ********************
:info:build make[1]: *** [build/shared-release/generated/resources/fonts/han/SourceHanSerif-Regular.ttc.o] Error 254
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/mupdf-1.20.3-source'
:info:build make: *** [shared-release] Error 2
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/mupdf-1.20.3-source'
:info:build Command failed: cd "/opt/local/var/macports/build/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/work/mupdf-1.20.3-source" && /usr/bin/make -j6 -w all PREFIX=/opt/local CC=/usr/bin/clang CXX=/usr/bin/clang++ CPP=/usr/bin/cpp XCFLAGS="-Os -arch x86_64" XLIBS="-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64" HAVE_GLUT=yes HAVE_X11=no USE_SYSTEM_LIBS=yes build=release verbose=yes shared
:info:build Exit code: 2
:error:build Failed to build mupdf: command execution failed
:debug:build Error code: CHILDSTATUS 99706 2
:debug:build Backtrace: command execution failed
:debug:build while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build (procedure "portbuild::build_main" line 8)
:debug:build invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_Users_gerben_MacPortsDev_macports-ports_graphics_mupdf/mupdf/main.log for details.
In MacPorts this is a known issue and it seems related to clang not being able to compile something because it runs out of resources when compiling NotoSansOldPersian-Regular.otf
Is there maybe a config or something we could temporary workaround by telling the mupdf configure not to compile this font? People (see ticket) already tried turning optimization off, using another compiler, but it is a more fundamental problem.
I am trying to install ace and tao following this tutorial and this one. But after i enter "make" command from TAO_wrapper directory, i get below error:
make[1]: Leaving directory '/home/robot/ACE_wrappers/apps/gperf'
make[1]: Entering directory '/home/robot/ACE_wrappers/apps/gperf/src'
GNUmakefile: /home/robot/ACE_wrappers/apps/gperf/src/GNUmakefile.gperf MAKEFLAGS=w
make[1]: Leaving directory '/home/robot/ACE_wrappers/apps/gperf/src'
make[1]: Entering directory '/home/robot/ACE_wrappers/apps/gperf/tests'
GNUmakefile: /home/robot/ACE_wrappers/apps/gperf/tests/GNUmakefile.cinset MAKEFLAGS=w
g++ -fvisibility=hidden -fvisibility-inlines-hidden -Wnon-virtual-dtor -O3 -ggdb -pthread -fno-strict-aliasing -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/robot/ACE_wrappers -D__ACE_INLINE__ -I../../.. -c -o .obj/c.o /home/robot/ACE_wrappers/apps/gperf/tests/c.cpp
g++ -fvisibility=hidden -fvisibility-inlines-hidden -Wnon-virtual-dtor -O3 -ggdb -pthread -fno-strict-aliasing -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/robot/ACE_wrappers -D__ACE_INLINE__ -I../../.. -c -o .obj/test.o /home/robot/ACE_wrappers/apps/gperf/tests/test.cpp
g++ -fvisibility=hidden -fvisibility-inlines-hidden -Wnon-virtual-dtor -O3 -ggdb -pthread -fno-strict-aliasing -Wall -W -Wpointer-arith -pipe -D_GNU_SOURCE -I/home/robot/ACE_wrappers -D__ACE_INLINE__ -I../../.. -Wl,-E -L/home/robot/ACE_wrappers/lib -L. -L../../../lib -o cout .obj/c.o .obj/test.o -lACE -ldl -lrt
.obj/test.o: In function `main':
/home/robot/ACE_wrappers/apps/gperf/tests/test.cpp:24: undefined reference to `in_word_set(char const*, unsigned int)'
/home/robot/ACE_wrappers/apps/gperf/tests/test.cpp:24: undefined reference to `in_word_set(char const*, unsigned int)'
collect2: error: ld returned 1 exit status
GNUmakefile.cinset:196: recipe for target 'cout' failed
make[1]: *** [cout] Error 1
make[1]: Leaving directory '/home/robot/ACE_wrappers/apps/gperf/tests'
GNUmakefile:1241: recipe for target 'cinset' failed
make: *** [cinset] Error 2
When i compile the gperf, ace packaes individually i didn't get any error. But when i try to compile the hole ACE_wrapper package i get the error.
Probably something got messed up on your file system. As this is just an unit test this should not be a problem to ignore. As alternative you can run make realclean and make.
I have written a simple pushbutton example code (Ubuntu 14.01) and it is giving me strange error after make.
Following is the o/p of make:
gcc -c -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/i386-linux-gnu/qt5/mkspecs/linux-g++ -I. -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o .o /
gcc: warning: /: linker input file unused because linking not done
g++ -Wl,-O1 -o PushButtonExample\ TEMPLATE\ =\ app main.o .o mainwindow.o moc_mainwindow.o -lQt5Widgets -L/usr/lib/i386-linux-gnu -lQt5Gui -lQt5Core -lGL -lpthread
g++: error: .o: No such file or directory
make: *** [PushButtonExample TEMPLATE = app] Error 1
From above o/p, I am not really getting the meaning of g++: error: .o: No such file or directory, because it is not showing any file name. I searched for similar issue on Internet, but everywhere there is a file.o scenario.
Kindly help me through.
Try change your .pro file as below:
TEMPLATE = app
TARGET = QtHelloWorld
QT += core gui
QT += widgets
SOURCES += main.cpp
SOURCES += mainwindow.cpp
HEADERS += mainwindow.h
I am running Kali,
Trying to install ruby1.9.3 after having successfully installed SNORT, PULLEDPORK an BARNYARD2
%%%%%% EXECUTING THESE COMMANDS
1) %%% wget https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p551.tar.gz
2) %%% tar -xvzf ruby-1.9.3-p551.tar.gz
3) %%% cd ruby-1.9.3-p551
4) %%% ./configure
5) %%% make
6) %%% make install
1st 3 commands run OK,
getting ERRORS n Warnings on (5) make command.
Output like this:-
root#kali:~/snort_src/ruby-1.9.3-p551# make
CC = gcc
LD = ld
LDSHARED = gcc -shared
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -I. -I.ext/include/x86_64-linux -I./include -I.
DLDFLAGS =
SOLIBS =
linking miniruby
rbconfig.rb unchanged
generating enc.mk
generating prelude.c
compiling prelude.c
linking static-library libruby-static.a
ar: `u' modifier ignored since `D' is the default (see `U')
generating encdb.h
encdb.h unchanged
making enc
make[1]: Entering directory '/root/snort_src/ruby-1.9.3-p551'
make[1]: Nothing to be done for 'enc'.
.
.
.
compiling ossl_ssl.c
ossl_ssl.c:116:27: error: ‘SSLv3_method’ undeclared here (not in a function)
OSSL_SSL_METHOD_ENTRY(SSLv3),
^
ossl_ssl.c:106:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
^
ossl_ssl.c:117:27: error: ‘SSLv3_server_method’ undeclared here (not in a function)
OSSL_SSL_METHOD_ENTRY(SSLv3_server),
^
ossl_ssl.c:106:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
^
ossl_ssl.c:118:27: error: ‘SSLv3_client_method’ undeclared here (not in a function)
OSSL_SSL_METHOD_ENTRY(SSLv3_client),
^
ossl_ssl.c:106:69: note: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
^
ossl_ssl.c: In function ‘ossl_sslctx_session_new_cb’:
ossl_ssl.c:382:35: warning: variable ‘ret_obj’ set but not used [-Wunused-but-set-variable]
VALUE ary, ssl_obj, sess_obj, ret_obj;
^
ossl_ssl.c: In function ‘ossl_sslctx_session_remove_cb’:
ossl_ssl.c:431:38: warning: variable ‘ret_obj’ set but not used [-Wunused-but-set-variable]
VALUE ary, sslctx_obj, sess_obj, ret_obj;
^
ossl_ssl.c: In function ‘ssl_servername_cb’:
ossl_ssl.c:508:25: warning: variable ‘ret_obj’ set but not used [-Wunused-but-set-variable]
VALUE ary, ssl_obj, ret_obj;
^
Makefile:269: recipe for target 'ossl_ssl.o' failed
make[2]: *** [ossl_ssl.o] Error 1
make[2]: Leaving directory '/root/snort_src/ruby-1.9.3-p551/ext/openssl'
exts.mk:126: recipe for target 'ext/openssl/all' failed
make[1]: *** [ext/openssl/all] Error 2
make[1]: Leaving directory '/root/snort_src/ruby-1.9.3-p551'
uncommon.mk:178: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
Kindly suggest a way out.
I am trying to build lua-5.3.1 in Red Hat Enterprise Linux 6.6 platform. Following binaries will be build :
shared library : liblua.so
executable : lua
executable : luac
I have made the following changes in the provided Makefile :
Existing :
CC= gcc -std=gnu99
LUA_A= liblua.a
$(LUA_A): $(BASE_O)
$(AR) $# $(BASE_O)
$(RANLIB) $#
Modified :
CC= gcc -fPIC
LUA_A= liblua.so
$(LUA_A): $(BASE_O)
$(CC) -mthreads -shared -o $(LUA_A) $(BASE_O)
'liblua.so' and 'lua' have been built successfully using the modified Makefile. But during 'luac' build following linking error is coming :
gcc -fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX -c -o luac.o luac.c
gcc -fPIC -o luac luac.o liblua.so -lm -Wl,-E -ldl -lreadline
luac.o: In function `PrintFunction':
luac.c:(.text+0x947): undefined reference to `luaP_opnames'
luac.c:(.text+0x963): undefined reference to `luaP_opmodes'
luac.o: In function `pmain':
luac.c:(.text+0x11db): undefined reference to `luaU_dump'
/usr/bin/ld: luac: hidden symbol `luaU_dump' isn't defined
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[1]: *** [luac] Error 1
make[1]: Leaving directory `/disk1/u10rhel66/lua-5.3.1/src'
make: *** [linux] Error 2
Any help will be appreciated.
luac must be built statically linked with liblua.a.
If you really want luac linked dynamically, try this:
remove LUAI_DDEF and LUAI_DDEC from lopcodes.c and lopcodes.h
remove LUAI_FUNC from lundump.h
rebuild