Alexander E. Patrakov, May 15, 15:25 +0600:

Uli Fahrenberg wrote:

I'm trying to compile detex-2.7,

I was able to compile it using the following commands:

Thank you, this worked (had to change -ll to -lfl though because Gentoo doesn't install libl). Just for reference, here's a patch:

--- detex-2.7/Makefile    2006-05-15 16:59:55.181086750 +0200
+++ detex-2.7/Makefile.orig       2006-05-15 16:52:45.530235250 +0200
@@ -35,7 +35,7 @@
 # Add -DNO_MALLOC_DECL if your system does not like the malloc() declaration
 # in detex.l (reported by [EMAIL PROTECTED])
 #
-DEFS   := ${DEFS} -DNO_MALLOC_DECL
+#DEFS  += ${DEFS} -DNO_MALLOC_DECL
 #
 CFLAGS = -O ${DEFS}

@@ -67,14 +67,13 @@
 all:   ${PROGS}

 detex: ${D_OBJ}
-       ${CC} ${CFLAGS} -o $@ ${D_OBJ} -lfl
+       ${CC} ${CFLAGS} -o $@ ${D_OBJ} -ll

 detex.c:
        sed -f states.sed detex.l > xxx.l
        ${LEX} ${LFLAGS} xxx.l
        rm -f xxx.l
        mv lex.yy.c detex.c
-       sed -i -e '1i#include<stdint.h>' -e '/\]\]/d' detex.c

 lexout.c: detex.c
        mv detex.c lexout.c



--
Uli Fahrenberg -- http://www.math.aau.dk/~uli
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to