Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#31999 closed defect (fixed)

indi: conflicting types for 'closeDome'

Reported by: ferran.casarramona@… Owned by: jtomshine@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: indi

Description (last modified by ryandesign (Ryan Schmidt))

Trying to install indi port in a 10.7.2 OSX the following compiling error is logged:

:info:build /opt/local/var/macports/build/_Users_Alnair_ports_science_indi08/indi/work/libindi-0.8/examples/tutorial_dome.c:185:6: error: conflicting types for 'closeDome'

Complete log file is attached.

Attachments (1)

main.log (306.2 KB) - added by ferran.casarramona@… 7 years ago.
Complete log file

Download all attachments as: .zip

Change History (15)

comment:1 in reply to:  description Changed 7 years ago by ferran.casarramona@…

Another user has experienced the same bug in indi mailing list. Same 10.7.2 OSX version, and XCode just installed from AppStore.

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to jtomshine@…
Summary: tutorial_dome.c don't compileindi: conflicting types for 'closeDome'

The log you attached is incomplete (clean and try again to generate a complete log) but it looks like you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

Somebody should file a bug report with the indi project: http://sourceforge.net/tracker/?group_id=90275&atid=593019

comment:3 in reply to:  2 Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

The log you attached is incomplete (clean and try again to generate a complete log) but it looks like you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

Somebody should file a bug report with the indi project: http://sourceforge.net/tracker/?group_id=90275&atid=593019

There are other users with OSX 10.7.2 than could compile without problems. I will check with them.

comment:4 in reply to:  2 Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

The log you attached is incomplete (clean and try again to generate a complete log) but it looks like you're using clang. Have you tried llvm-gcc-4.2 instead? See wiki:ProblemHotlist#compiler.

Good, with llvm-gcc-4.2 compiles ok.

Can you change port file in order to configure llvm-gcc-4.2 as compiler?

Thanks.

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

Resolution: fixed
Status: newclosed

comment:6 in reply to:  5 Changed 7 years ago by ferran.casarramona@…

Resolution: fixed
Status: closedreopened

Replying to ryandesign@…:

r87076.

You missed the '=' in:

configure.compiler=llvm-gcc-4.2

Thanks

comment:7 Changed 7 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Resolution: fixed
Status: reopenedclosed

One does not use an "=" in Tcl when setting a variable. The block I inserted into the portfile is copied directly from wiki:PortfileRecipes#compiler and works correctly.

comment:8 in reply to:  7 ; Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

One does not use an "=" in Tcl when setting a variable. The block I inserted into the portfile is copied directly from wiki:PortfileRecipes#compiler and works correctly.

Ok, but it doesn't work to me. The same error when compiling. However if I do "sudo port install indi configure.compiler=llvm-gcc-4.2" it works fine.

By the way, the user who can install with 10.7.2 hase XCode 4.1 installed, not 4.2

comment:9 in reply to:  8 ; Changed 7 years ago by ryandesign (Ryan Schmidt)

Replying to ferran.casarramona@…:

Ok, but it doesn't work to me. The same error when compiling. However if I do "sudo port install indi configure.compiler=llvm-gcc-4.2" it works fine.

Did you "sudo port selfupdate" and "sudo port clean indi"?

By the way, the user who can install with 10.7.2 hase XCode 4.1 installed, not 4.2

Yes, the default compiler MacPorts chooses for Xcode 4.0 and 4.1 is llvm-gcc-4.2, and for Xcode 4.2 it's clang.

comment:10 in reply to:  9 Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

Replying to ferran.casarramona@…:

Ok, but it doesn't work to me. The same error when compiling. However if I do "sudo port install indi configure.compiler=llvm-gcc-4.2" it works fine.

Did you "sudo port selfupdate" and "sudo port clean indi"?

Yes, I did.

Also I verified the new code was in my local port tree.

comment:11 Changed 7 years ago by ryandesign (Ryan Schmidt)

Hmm, I can't explain that. Can you selfupdate and clean and try again one more time, and attach the new main.log?

Changed 7 years ago by ferran.casarramona@…

Attachment: main.log added

Complete log file

comment:12 in reply to:  11 Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

Hmm, I can't explain that. Can you selfupdate and clean and try again one more time, and attach the new main.log?

I replaced the main.log file for a new one.

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

I think you have a local copy of the old indi portfile in /Users/Alnair/ports/science/indi08.

comment:14 in reply to:  13 Changed 7 years ago by ferran.casarramona@…

Replying to ryandesign@…:

I think you have a local copy of the old indi portfile in /Users/Alnair/ports/science/indi08.

That's it. I apologize.

Thanks.

Note: See TracTickets for help on using tickets.