Opened 4 years ago

Closed 4 years ago

#61235 closed defect (fixed)

detex @2.8_1 error: implicit declaration of function 'BeginEnv', 'EndEnv' and 'SeparateList' ... is invalid in C99

Reported by: nasyxx (Nasy) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: Cc: drkp (Dan Ports), hnarayanan (Harish Narayanan), neilt (Neil Tiffin)
Port: detex

Description

I was trying to install texlive+full, but detex stopped it.

There are many errors like this:

:info:build make: Entering directory `/Users/Nasy/.macports/var/macports/build/_Users_Nasy_.macports_macports-ports_tex_detex/detex/work/detex-2.8'
:info:build sed -f states.sed detex.l > xxx.l
:info:build lex  xxx.l
:info:build rm -f xxx.l
:info:build mv lex.yy.c detex.c
:info:build /usr/bin/clang -arch x86_64 -O  -DNO_MALLOC_DECL -Wno-return-type   -c -o detex.o detex.c
:info:build xxx.l:132:9: error: implicit declaration of function 'BeginEnv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build {   if (BeginEnv("verbatim"))
:info:build         ^
:info:build xxx.l:144:13: error: implicit declaration of function 'BeginEnv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build                                                   if (BeginEnv("minpage"))
:info:build                                                       ^
:info:build xxx.l:151:9: error: implicit declaration of function 'BeginEnv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build {   if (BeginEnv(yytext))
:info:build         ^
:info:build xxx.l:164:31: error: implicit declaration of function 'EndEnv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build /* end environment */   {   if (EndEnv(yytext))

Attachments (1)

main.log (13.6 KB) - added by nasyxx (Nasy) 4 years ago.

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by nasyxx (Nasy)

Attachment: main.log added

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Status: newaccepted

Implicit declaration of function errors are new in Xcode 12. We should fix them, but until we do, if you want to avoid these kinds of problems, downgrade to Xcode 11 and/or the Xcode 11 version of the command line tools.

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

In 62eee532fd920d8c4a7acb686347ad307bd30055/macports-ports (master):

opendetex: New port, version 2.8.8

See: #61235

comment:3 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: drkp added
Summary: detex@2.8_1 error: implicit declaration of function 'BeginEnv', 'EndEnv' and 'SeparateList' ... is invalid in C99detex @2.8_1 error: implicit declaration of function 'BeginEnv', 'EndEnv' and 'SeparateList' ... is invalid in C99

detex isn't developed anymore, but there is a fork called opendetex which is. I've added it to MacPorts now. Does that work as a replacement? If so, we can mark detex replaced_by opendetex and we can change the detex dependency in texlive-bin-extra to opendetex.

comment:4 in reply to:  1 Changed 4 years ago by nasyxx (Nasy)

Replying to ryandesign:

Implicit declaration of function errors are new in Xcode 12. We should fix them, but until we do, if you want to avoid these kinds of problems, downgrade to Xcode 11 and/or the Xcode 11 version of the command line tools.

Replying to ryandesign:

detex isn't developed anymore, but there is a fork called opendetex which is. I've added it to MacPorts now. Does that work as a replacement? If so, we can mark detex replaced_by opendetex and we can change the detex dependency in texlive-bin-extra to opendetex.

Thanks! I'll try opendetex first(I guess it will work!)

comment:5 in reply to:  3 Changed 4 years ago by drkp (Dan Ports)

Replying to ryandesign:

If so, we can mark detex replaced_by opendetex and we can change the detex dependency in texlive-bin-extra to opendetex.

Yes, I think we should do this. I hadn't noticed before, but upstream texlive is already shipping opendetex as detex.

comment:6 in reply to:  3 Changed 4 years ago by nasyxx (Nasy)

Replying to ryandesign:

Does that work as a replacement? If so, we can mark detex replaced_by opendetex and we can change the detex dependency in texlive-bin-extra to opendetex.

Yeah! I didn't feel any difference after using it these days. I think it can be replaced.

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: hnarayanan neilt added

Has duplicate #61470.

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: acceptedclosed

In a373d2d36ac16136a4ca341426e9c3414d8fa1bb/macports-ports (master):

detex: Replaced by opendetex

Closes: #61235

Note: See TracTickets for help on using tickets.