Opened 15 years ago

Closed 15 years ago

#5078 closed defect (fixed)

BUG: netpbm will not build: parse error in /usr/include/netinet/in.h

Reported by: nburrell@… Owned by: yves@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: hparker@…
Port:

Description

The netpbm port will not build. The error appears to be in an Apple header file /usr/include/netinet/in.h:

[...] gcc-3.3 -no-cpp-precomp -c -I/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_netpbm/work/netpbm-10.29/converter/other/cameratopam -I. -DNDEBUG \

-O3 -I/opt/local/include -o camera.o camera.c

In file included from camera.c:7: /usr/include/netinet/in.h:255: error: parse error before "in_addr_t" /usr/include/netinet/in.h:312: error: parse error before "u_char" /usr/include/netinet/in.h:314: error: parse error before "sin_port" /usr/include/netinet/in.h:317: error: parse error before '}' token /usr/include/netinet/in.h:329: error: field `ip_dst' has incomplete type /usr/include/netinet/in.h:398: error: field `imr_multiaddr' has incomplete type /usr/include/netinet/in.h:399: error: field `imr_interface' has incomplete type /usr/include/netinet/in.h:315: error: storage size of `sin_addr' isn't known make[3]: * [camera.o] Error 1 make[2]: * [cameratopam/all] Error 2 make[1]: * [other/all] Error 2 make: * [converter/all] Error 2

Warning: the following items did not execute (for netpbm): com.apple.activate com.apple.build com.apple.destroot com.apple.archive com.apple.install

The complete output of port install -dv netpbm is attached.

Attachments (1)

build.log (128.7 KB) - added by nburrell@… 15 years ago.
build log for netpbm port

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by nburrell@…

Attachment: build.log added

build log for netpbm port

comment:1 Changed 15 years ago by toby@…

Owner: changed from darwinports-bugs@… to yves@…

Assign to maintainer!

comment:2 Changed 15 years ago by yves@…

Status: newassigned

comment:3 Changed 15 years ago by mww@…

Summary: netpbm will not build: parse error in /usr/include/netinet/in.hBUG: netpbm will not build: parse error in /usr/include/netinet/in.h

comment:4 Changed 15 years ago by hparker@…

Cc: hparker@… added

I got the netpbm port to build and install by editing the 2 files cameratopam.c and camera.c in directory /opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_graphics_netpbm/work/netpbm-10.29/converter/other/cameratopam as suggested in the netpbm 10.29 release notes on sourceforge at http://sourceforge.net/project/shownotes.php?group_id=5128&release_id=349291 , i.e., I added "#include <sys/types.h>" before "#include <netinet/in.h>" in both files. After each edit I typed "make".

The files then compiled without errors. The library build failed, but that worked when I did "sudo port install netpbm".

It worked!

I don't know how to patch the port itself, so somebody else will need to do that.

Also I did not get any man page or an apropos output as documented on http://netpbm.darwinports.com/ . -- Harry Parker harrylparker@…

comment:5 Changed 15 years ago by yves@…

Thank you very much, I didn't have time to look after this -- the patch will be in commited today

comment:6 Changed 15 years ago by yves@…

Resolution: fixed
Status: assignedclosed

Commited -- thanks

Note: See TracTickets for help on using tickets.