Opened 13 years ago

Closed 13 years ago

#28786 closed defect (fixed)

benchmarks/polygraph @4.3.1 build failure

Reported by: pixilla (Bradley Giesbrecht) Owned by: fclaire@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: polygraph

Description

Build errors with:

../../src/xstd/Select.h: In member function 'bool FD_Set::isSet(int) const':
../../src/xstd/Select.h:29: error: invalid conversion from 'const fd_set*' to 'fd_set*'
../../src/xstd/Select.h:29: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
../../src/xstd/Select.h: In member function 'bool FD_Set::isReady(int) const':
../../src/xstd/Select.h:30: error: invalid conversion from 'const fd_set*' to 'fd_set*'
../../src/xstd/Select.h:30: error:   initializing argument 2 of 'int __darwin_fd_isset(int, fd_set*)'
mv -f .deps/Rnd.Tpo .deps/Rnd.Po
/usr/bin/g++-4.0 -DHAVE_CONFIG_H   -I../.. -I../../src -I../.. -I../../src -I/opt/macports-test/include -I/usr/include  -pipe -O2 -arch i386 -MT Size.o -MD -MP -MF .deps/Size.Tpo -c -o Size.o Size.cc
make[3]: *** [Select.o] Error 1

Port log attached.

Attachments (3)

main.log (29.6 KB) - added by pixilla (Bradley Giesbrecht) 13 years ago.
port log
patch-src-xstd-Select.h.diff (365 bytes) - added by pixilla (Bradley Giesbrecht) 13 years ago.
patch-Portfile.diff (410 bytes) - added by pixilla (Bradley Giesbrecht) 13 years ago.

Download all attachments as: .zip

Change History (10)

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Attachment: main.log added

port log

comment:1 Changed 13 years ago by fclaire@…

Could you please try to install polygraph port with root privileges ?

comment:2 in reply to:  1 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Replying to fclaire@…:

Could you please try to install polygraph port with root privileges ?

I'm not sure what you mean. I originally ran "sudo port install polygraph" which runs the port command as root, right?
If I issue "sudo -s" and then "port install polygraph" I get the same result.

comment:3 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Cc: fclaire@… removed
Owner: changed from macports-tickets@… to fclaire@…

comment:4 Changed 13 years ago by fclaire@…

In your log there is messages "Privilege de-escalation not attempted as not running as root" and I don't have them in mine. I was a bit confused.

I'm using gcc 4.2 to compile and it works well. You're using 4.0. Header files must differ as well. I only have 10.6 Macs, you're trying to install the port on 10.5. I'll try to write a patch for your version but I'll be unable to test it.

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

Cc: ryandesign@… added

Please check if you still see the problem with 4.3.2 which was just committed.

comment:6 Changed 13 years ago by pixilla (Bradley Giesbrecht)

4.3.2 still fails to build on ppc 10.5.x with the same error (Select.h).

I patched Select.h changing "fd_set theSet;" to "mutable fd_set theSet;" and "fd_set theReadySet;" to "mutable fd_set theReadySet;".

Now 4.3.2 builds on ppc 10.5.x and continues to build on intel 10.6.x. I will test functionality if someone can provide me the method.

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Changed 13 years ago by pixilla (Bradley Giesbrecht)

Attachment: patch-Portfile.diff added

comment:7 Changed 13 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

Fixed r80067

Note: See TracTickets for help on using tickets.