Opened 15 years ago

Closed 13 years ago

#21961 closed defect (fixed)

toppler build breaks on snow leopard

Reported by: bumens@… Owned by: jmpp@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: snowleopard haspatch Cc: ryandesign (Ryan Carsten Schmidt)
Port: toppler

Description

vb@bayhorse:~ % sudo port install toppler
--->  Computing dependencies for toppler
--->  Fetching toppler
--->  Attempting to fetch toppler-1.1.1.tar.gz from http://switch.dl.sourceforge.net/toppler
--->  Verifying checksum(s) for toppler
--->  Extracting toppler
--->  Configuring toppler
--->  Building toppler
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_games_toppler/work/toppler-1.1.1" && /usr/bin/make -j2 all LDFLAGS="-lintl -L/opt/local/lib -bind_at_load" " returned error 2
Command output:                  from archi.cc:19:
/opt/local/include/SDL/SDL_config.h:82:1: warning: this is the location of the previous definition
In file included from sound.h:22,
                 from bonus.cc:26:
config.h:42:1: warning: "HAVE_MALLOC" redefined
In file included from /opt/local/include/SDL/SDL_stdinc.h:30,
                 from /opt/local/include/SDL/SDL_types.h:28,
                 from keyb.h:24,
                 from bonus.cc:20:
/opt/local/include/SDL/SDL_config.h:82:1: warning: this is the location of the previous definition
bonus.cc:51: error: 'Sint32 time' redeclared as different kind of symbol
/usr/include/time.h:133: error: previous declaration of 'time_t time(time_t*)'
bonus.cc: In function 'void show()':
bonus.cc:65: error: ISO C++ forbids comparison between pointer and integer
bonus.cc:66: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator*'
bonus.cc:68: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator*'
bonus.cc:78: error: invalid operands of types 'time_t ()(time_t*)' and 'int' to binary 'operator%'
bonus.cc: In function 'bool bns_game()':
bonus.cc:140: error: assignment of function 'time_t time(time_t*)'
bonus.cc:140: error: cannot convert 'int' to 'time_t ()(time_t*)' in assignment
bonus.cc:257: error: ISO C++ forbids comparison between pointer and integer
bonus.cc:263: error: ISO C++ forbids comparison between pointer and integer
bonus.cc:269: error: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*)'
bonus.cc:269: error: lvalue required as increment operand
bonus.cc:272: error: pointer to a function used in arithmetic
bonus.cc:272: error: invalid operands of types 'time_t (*)(time_t*)' and 'int' to binary 'operator&'
make[2]: *** [bonus.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.
vb@bayhorse:~ % 

Attachments (1)

toppler-1.1.4.diff (823 bytes) - added by jmroot (Joshua Root) 13 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Keywords: toppler build break removed
Owner: changed from macports-tickets@… to jmpp@…
Summary: toppler build breaks on snowleopardtoppler build breaks on snow leopard

Changed 13 years ago by jmroot (Joshua Root)

Attachment: toppler-1.1.4.diff added

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Patch to version 1.1.4 attached. It builds, but then crashes at launch.

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

Cc: ryandesign@… added
Keywords: haspatch added
Resolution: fixed
Status: newclosed

For me, on Snow Leopard 10.6.8 with Xcode 3.2.6, toppler 1.1.4 and 1.1.5 exit with:

The application with bundle ID (null) is running setugid(), which is not allowed.

This appears to be because they're trying to implement some kind of global high score feature, where any user running the app can write to the same high score file. This is apparently not allowed on OS X anymore.

Fixed this and updated to 1.1.5 in r84135. It runs for me on Snow Leopard.

Note: See TracTickets for help on using tickets.