Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#13947 closed defect (duplicate)

plib 1.8.4 doesn't build in Leopard

Reported by: rzilibowitz@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_plib/work/plib-1.8.4" && make all " returned error 2
Command output: ssgLoadFLT.cxx: In function 'int GeomChunks(ubyte*, ubyte*, fltState*, ssgEntity**, int, int)':
ssgLoadFLT.cxx:1192: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:1270: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx:1459: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx: In function 'ssgEntity* PostClean(ssgEntity*, fltNodeAttr*)':
ssgLoadFLT.cxx:1842: error: 'struct fltNodeAttr' has no member named 'mask_words'
ssgLoadFLT.cxx: In function 'int AttrChunks(ubyte*, ubyte*, fltNodeAttr**)':
ssgLoadFLT.cxx:1937: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx: In function 'ssgEntity* HierChunks(ubyte*, ubyte*, fltState*)':
ssgLoadFLT.cxx:2063: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:2134: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx:2202: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx:2212: error: 'struct fltNodeAttr' has no member named 'mask_words'
ssgLoadFLT.cxx:2212: error: expected type-specifier before 'uint'
ssgLoadFLT.cxx:2212: error: expected `;' before 'uint'
ssgLoadFLT.cxx:2213: error: 'struct fltNodeAttr' has no member named 'mask_words'
ssgLoadFLT.cxx: In function 'int VertexTable(ubyte*, ubyte*, fltState*)':
ssgLoadFLT.cxx:2334: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:2337: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx: In function 'int TableChunks(ubyte*, ubyte*, fltState*)':
ssgLoadFLT.cxx:2435: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:2480: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx:2543: error: 'get32u' was not declared in this scope
ssgLoadFLT.cxx: In function 'int CheckHeader(ubyte*, ubyte*, fltState*)':
ssgLoadFLT.cxx:2604: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:2608: error: 'get16u' was not declared in this scope
ssgLoadFLT.cxx:2613: error: 'get32u' was not declared in this scope
make[2]: *** [ssgLoadFLT.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Error: Status 1 encountered during processing.

Change History (4)

comment:1 Changed 16 years ago by jmpp@…

Milestone: Port Bugs

comment:2 Changed 16 years ago by devernay (Frédéric Devernay)

adding #include <sys/types.h> at the top of src/ssg/ssgLoadFLT.cxx fixes this (sorry, didn't have time to make the corresponding patch file). quick fix: after building fails, do: sudo open -a textedit \ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_plib/work/plib-1.8.4/src/ssg/ssgLoadFLT.cxx

add the following line at the top of the file: #include <sys/types.h>

save it re-install the port, building should be fine:

sudo port upgrade plib

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #13625.

comment:4 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.