Opened 10 years ago

Last modified 13 months ago

#46003 assigned defect

c3270 @3.3.11ga6_0: build fails with "unknown type name 'CPPFunction' "

Reported by: crypticmind@… Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: c3270

Description (last modified by larryv (Lawrence Velázquez))

(cryptic) $ sudo port install c3270
--->  Computing dependencies for c3270
--->  Building c3270
Error: org.macports.build for port c3270 returned: command execution failed
Please see the log file for port c3270 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_comms_c3270/c3270/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port c3270 failed

Attachments (2)

main.log (20.6 KB) - added by crypticmind@… 10 years ago.
install log
c3270.c.patch (349 bytes) - added by skissane@… 9 years ago.
patch to c3270 source code that fixes the compilation error

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by larryv (Lawrence Velázquez)

Owner: changed from macports-tickets@… to jking@…
Port: c3270 added

This log is not complete. Please clean c3270, try installing again, and attach the new log.

comment:2 Changed 10 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)

Changed 10 years ago by crypticmind@…

Attachment: main.log added

install log

comment:3 in reply to:  1 ; Changed 10 years ago by crypticmind@…

Replying to larryv@…:

This log is not complete. Please clean c3270, try installing again, and attach the new log.

Ran clean. Attempted install again. Attached updated log.

comment:4 in reply to:  3 Changed 10 years ago by larryv (Lawrence Velázquez)

Summary: c3270 compile errorc3270 @3.3.11ga6_0: build fails with "unknown type name 'CPPFunction' "
:info:build /usr/bin/clang -pipe -Os -arch x86_64 -I. -DLIBX3270DIR=\"/opt/local/etc/x3270\"   -no-cpp-precomp -I/opt/local/include    -c -o c3270.o c3270.c
:info:build c3270.c:102:8: error: unknown type name 'CPPFunction'
:info:build static CPPFunction attempted_completion;
:info:build        ^

comment:5 Changed 10 years ago by skissane@…

This is caused by a change in readline library. Older versions of readline provided CPPFunction, in new version it is gone. Solution is to edit c3270.c line 102 and replace CPPFunction with rl_completion_func_t, then it will compile and install fine.

Last edited 9 years ago by skissane@… (previous) (diff)

Changed 9 years ago by skissane@…

Attachment: c3270.c.patch added

patch to c3270 source code that fixes the compilation error

comment:6 Changed 7 years ago by mf2k (Frank Schima)

Owner: jking@… deleted
Status: newassigned

See #54369.

comment:7 Changed 13 months ago by sinskinner (Willian)

Since this is an old issue, I guess that it is resolved now. I updated the port to the latest available version.

Note: See TracTickets for help on using tickets.