Error compilando netcat(y opción DGAPING_SECURITY_HOLE", deshabilitada en fink)

12/12/2017patton

Trato de hacer lo que sale , lo que deseo es tener netcat, pero con la opció,n DFLAGS=" -DTELNET -DGAPING_SECURITY_HOLE"(-e: para ejecutar comandos).

# cp -rf openmotif-2.2.3-intel /Users/patton/Desktop/temp/
# cd nedit-5.5
# nano makefiles/Makefile.macosx
#
# libraries, then remove the /lib suffix.
MOTIFDIR=/usr/local
Es linea la modificamos por
MOTIFDIR=//Users/patton/Desktop/temp/openmotif-2.2.3-intel
agrego a Makefile como me indica el tutorial.
CFLAGS=-O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include
-I${MOTIFDIR}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DEDITRES
LIBS= ${EXTRALINKFLAGS} -L/usr/X11R6/lib ${MOTIFLINK} -lXp
-lXpm -lXext -lXt -lSM -lICE -lX11 -lXmu
Pero me sale un error similiar a los de acá,:


# make macosx
(cd util,
make -f Makefile.macosx verify_config &&
make -f Makefile.macosx libNUtil.a)
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o check_lin_tif check_lin_tif.c
./check_lin_tif
Open Motif or OSF Motif detected.
@(#)Motif Version 2.2.3
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o DialogF.o DialogF.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o getfiles.o getfiles.c
cc -c -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD printUtils.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o misc.o misc.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o fileUtils.o fileUtils.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o prefFile.o prefFile.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o fontsel.o fontsel.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o managedList.o managedList.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o utils.o utils.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c -o clearcase.o clearcase.c
libtool -static -o libNUtil.a DialogF.o getfiles.o printUtils.o misc.o fileUtils.o prefFile.o fontsel.o managedList.o utils.o clearcase.o
(cd Xlt, make -f Makefile.macosx libXlt.a)
cc -c -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o BubbleButton.o BubbleButton.c
cc -c -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o SlideC.o SlideC.c
libtool -static -o libXlt.a BubbleButton.o SlideC.o
(cd Microline/XmL, make -f Makefile.macosx libXmL.a)
cc -c -I.. -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o Folder.o Folder.c
cc -c -I.. -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o XmL.o XmL.c
libtool -static -o libXmL.a Folder.o XmL.o
(cd source, make -f Makefile.macosx nedit nc)
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o nedit.o nedit.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o file.o file.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o menu.o menu.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o window.o window.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o selection.o selection.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o search.o search.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o undo.o undo.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o shift.o shift.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c help.c -o help.o
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o preferences.o preferences.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o tags.o tags.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o userCmds.o userCmds.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o shell.o shell.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o regularExp.o regularExp.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o macro.o macro.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o text.o text.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o textSel.o textSel.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o textDisp.o textDisp.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o textBuf.o textBuf.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o textDrag.o textDrag.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o server.o server.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o highlight.o highlight.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c highlightData.c -o highlightData.o
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o interpret.o interpret.c
NOTE: Don't worry about 'command not found' errors here
unless you have changed the parse.y file.
bison -o parse.c parse.y || ( yacc parse.y && mv y.tab.c parse.c ) ||
cp parse_noyacc.c parse.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o parse.o parse.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c smartIndent.c -o smartIndent.o
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o regexConvert.o regexConvert.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o rbTree.o rbTree.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o windowTitle.o windowTitle.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o calltips.o calltips.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o server_common.o server_common.c
cc -c -I../Microline -I../Xlt -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -o rangeset.o rangeset.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -c linkdate.c
cc -O -no-cpp-precomp -mdynamic-no-pic -DNO_XMIM -I/usr/X11R6/include -I//Users/patton/Desktop/temp/openmotif-2.2.3-intel/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD nedit.o file.o menu.o window.o selection.o search.o undo.o shift.o help.o preferences.o tags.o userCmds.o shell.o regularExp.o macro.o text.o textSel.o textDisp.o textBuf.o textDrag.o server.o highlight.o highlightData.o interpret.o parse.o smartIndent.o regexConvert.o rbTree.o windowTitle.o calltips.o server_common.o rangeset.o linkdate.o ../Microline/XmL/libXmL.a
../Xlt/libXlt.a ../util/libNUtil.a -bind_at_load -L/usr/X11R6/lib //Users/patton/Desktop/temp/openmotif-2.2.3-intel/lib/libXm.a -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -o nedit
/usr/bin/ld: Undefined symbols:
__XEditResGet16
__XEditResGet32
__XEditResGet8
__XEditResGetSigned16
__XEditResGetString8
__XEditResGetWidgetInfo
__XEditResPut16
__XEditResPut32
__XEditResPut8
__XEditResPutString8
__XEditResPutWidgetInfo
__XEditResResetStream
collect2: ld returned 1 exit status
make[1]: *** [nedit] Error 1
make: *** [macosx] Error 2

Lo otro es que instale netcat con fink($ sudo fink install netcat) y me pasa lo mismo que en archlinux, a diferencia de Ubuntu, que es que vienen deshabilitadas las opciones DFLAGS=" -DTELNET -DGAPING_SECURITY_HOLE", se supone que debo hacer en arch estio de para habilitarlas, por lo tanto no puedo ejecutar comandos con netcat, lo demá,s me funciona, pero no puedo por ejemplo hacer esto:
terminal A$ nc -l -p 2000 -e /bin/date
nc -h for help
nc -h for help<-me sale eso en Mac os x y archlinux

En cambio en Ubuntu baje el deb desde acá,.

A) Servidor: queda esperando conexiones entrantes(-l) por el puerto(-p) 2000 y ejecuta el comando(-e) /bin/date luego de conectar.
terminal A$ nc -l -p 2000 -e /bin/date
B) Cliente: se conecta al servidor por el puerto 2000 y recibe de vuelta la fecha.
terminal B$ nc localhost 2000
vie ene 19 06:02:12 CLST 2007
Ahora en archlinux es facil, solo deberí,a coloco:
#make linux DFLAGS=" -DTELNET -DGAPING_SECURITY_HOLE"

baje el tar.gz, pero en mac como hago para compilarlo en mac?


Mapa web | Política de cookies. | Aviso Legal y Política de Privacidad. | Contactar. | Sponsors: /73/3727/error-compilando-netcat-y-opcion-dgaping_security_hole-deshabilitada-en-fink.html

Country:US

xxxx