Opened 13 years ago

Last modified 13 years ago

#30065 closed defect

heimdal @1.3.3 Build error using gcc-llvm — at Initial Version

Reported by: christopher.owen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: llvm-gcc-4.2 haspatch Cc:
Port: heimdal

Description

I have verified that this defect exists in trunk.

steps to reproduce:

1) install gcc-llvm (available from many places but also in the Xcode 4.2 beta)

2) sudo port install heimdal

the build for heimdal will exit with many errors in sqlite3.c.

:info:build sqlite3.c:63492: error: initializer element is not constant

:info:build sqlite3.c:63492: error: (near initialization for 'aBuiltinFunc[5].pUserData')

The exact problem I am seeing was written about including a solution in a japanese blog in 2008.

Original page: http://tribelet.blogspot.com/2008/09/blog-post_08.html

Google translation of page: http://translate.google.ca/translate?hl=en&sl=ja&u=http://tribelet.blogspot.com/2008/09/blog-post_08.html&ei=rQ4VTrSqL4PUiAKTsp2JDw&sa=X&oi=translate&ct=result&resnum=1&ved=0CBwQ7gEwAA&prev=/search%3Fq%3Dsqlite3%2Berror:%2B(near%2Binitialization%2Bfor%2B%2527aDateTimeFuncs%255B0%255D.pUserData%2527)%26hl%3Den%26client%3Dsafari%26rls%3Den%26prmd%3Divns

With this one line change in sqlite3.c, the build completes (although with some warnings.)

It may be worth noting here that a newer version of heimdal (1.4) exists that what is included in the ports tree. Included in its changelog is a line item of 'bug fixes'. However, I could not get it to compile easily and was happy with this patch.

The patch applied is included.

Change History (1)

Changed 13 years ago by christopher.owen@…

heimdal-1.3.3 patch to compile with gcc-llvm

Note: See TracTickets for help on using tickets.