Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#30065 closed defect (fixed)

heimdal @1.3.3 Build error using llvm-gcc

Reported by: christopher.owen@… Owned by: landonf (Landon Fuller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: llvm-gcc-4.2 haspatch Cc: adam_timmons@…, gleirsch@…
Port: heimdal

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Attachments (1)

heimdal-1.3.3-sqlite3-gcc-llvm.patch (381 bytes) - added by christopher.owen@… 13 years ago.
heimdal-1.3.3 patch to compile with gcc-llvm

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by christopher.owen@…

heimdal-1.3.3 patch to compile with gcc-llvm

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

Description: modified (diff)
Owner: changed from macports-tickets@… to landonf@…

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

Cc: adam_timmons@… added

Has duplicate #31266.

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

Cc: gleirsch@… added
Summary: heimdal @1.3.3 Build error using gcc-llvmheimdal @1.3.3 Build error using llvm-gcc

Has duplicate #31785.

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

Keywords: llvm-gcc-4.2 haspatch added; lion llvm gcc-llvm xcode4.2 removed
Resolution: fixed
Status: newclosed

Thanks for the patch. Committed in r86462. On Snow Leopard with Xcode 3.2.6, I verified the issue with llvm-gcc-4.2, and verified that after applying the patch, I could build the port with llvm-gcc-4.2 and clang. I filed #31786 for the request to update the port to a newer version.

comment:5 Changed 13 years ago by gleirsch@…

Patch worked for me too (Xcode 4.0.2, llvm-gcc-4.2, 10.6.8), thanks for including it in the port.

Note: See TracTickets for help on using tickets.