Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Koffice os x build help

Koffice os x build help
Thread Tools
Junior Member
Join Date: Jul 2003
Location: Redlands
Status: Offline
Reply With Quote
Apr 25, 2006, 08:09 PM
 
Hi all,
I'm new to trying things with unix and wanted to test out koffice. I sucessfully installed the developer tools from apple and Darwinports with the update. Next I ran a sudo port install koffice and here's what happened:

"---> Building koffice with target all
Error: Target com.apple.build returned: shell command "cd /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwi nports.org_dpupdate_dports_kde_koffice/work/koffice-1.5.0-rc1 && ./CompileScript.sh" returned error 1
Command output: ld: warning multiple definitions of symbol __ZN13KProtocolInfo15isKnownProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo15isKnownProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo15isKnownProtocolERK7QString
ld: warning multiple definitions of symbol __ZN13KProtocolInfo16isFilterProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo16isFilterProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo16isFilterProtocolERK7QString
ld: warning multiple definitions of symbol __ZN13KProtocolInfo16isHelperProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo16isHelperProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo16isHelperProtocolERK7QString
ld: Undefined symbols:
_XCreateGC
_XFreeGC
_XScreenOfDisplay
_XAllocColor
_XAllocColorCells
_XCreateColormap
_XCreateImage
_XFlush
_XFree
_XFreeColors
_XGetVisualInfo
_XGetWindowAttributes
_XPutImage
_XQueryColors
_XScreenNumberOfScreen
_XSetBackground
_XSetForeground
/usr/bin/libtool: internal link edit command failed
Error creating ./karbon/libkarboncommon.la. Exit status 1.
koffice-1.5.0-0 make-build failed!

Error: /opt/local/bin/port: Status 1 encountered during processing."

Do I need to install something else, or what do I do to fix this? Any help would be greatly appreciated. Thanks!
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 25, 2006, 08:24 PM
 
It looks like you need to install the X11 support with the dev tools.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
pbook28  (op)
Junior Member
Join Date: Jul 2003
Location: Redlands
Status: Offline
Reply With Quote
Apr 25, 2006, 11:41 PM
 
Well, I tried installing the developer tools again and got the same result. Is there a seperate install for the x11 tools? I have the most recent version of xcode and x11 already installed.

Thanks
     
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Apr 26, 2006, 03:58 AM
 
I think the X11 SDK is a custom install option with the dev tools. That's my recollection.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
pbook28  (op)
Junior Member
Join Date: Jul 2003
Location: Redlands
Status: Offline
Reply With Quote
Apr 26, 2006, 03:29 PM
 
Thank you for your help, but this did not solve the problem. I still get the same error. Any other suggestions?
     
Fresh-Faced Recruit
Join Date: Dec 2005
Location: Australia
Status: Offline
Reply With Quote
May 10, 2006, 09:39 AM
 
Originally Posted by pbook28
Thank you for your help, but this did not solve the problem. I still get the same error. Any other suggestions?
Welcome to the frustrating world of X11 : )

I would like a cent for every time I have had such error messages. It's happened to me again within the past half hour. Basically, X11 is very finicky, compared to installing a mac-native [aqua] program. If you don't have a program that is needed for the new program to run on top of, the whole process will just stop and give you such a cryptic message. These pre-requesite programs are called dependecies [I think - CMIIW]

All you can do is keep trying new ways of getting the system to do what you want it to do. I'd suggest you try installing something a little simpler than koffice, which has a lot of dependencies, until you work it out. I have quite a comprehensive environment in X11, established with lots of failures and error messages, but I'm still having problems trying to install the latest koffice.

Good luck: it's a little masochistic, but an interesting challenge.

Peter
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
May 11, 2006, 04:41 AM
 
Check the library path used by the makefile and make sure it includes the real position for the X11 libraries. If it doesn't, either add the actual library path to path used by the makefile or make a symlink between where the makefile thinks the libs are and where they really.
     
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
May 12, 2006, 10:55 AM
 
Originally Posted by pbook28
Hi all,
I'm new to trying things with unix and wanted to test out koffice. I sucessfully installed the developer tools from apple and Darwinports with the update. Next I ran a sudo port install koffice and here's what happened:

"---> Building koffice with target all
Error: Target com.apple.build returned: shell command "cd /opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwi nports.org_dpupdate_dports_kde_koffice/work/koffice-1.5.0-rc1 && ./CompileScript.sh" returned error 1
Command output: ld: warning multiple definitions of symbol __ZN13KProtocolInfo15isKnownProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo15isKnownProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo15isKnownProtocolERK7QString
ld: warning multiple definitions of symbol __ZN13KProtocolInfo16isFilterProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo16isFilterProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo16isFilterProtocolERK7QString
ld: warning multiple definitions of symbol __ZN13KProtocolInfo16isHelperProtocolERK7QString
/opt/local/lib/libkdecore.dylib(single module) definition of __ZN13KProtocolInfo16isHelperProtocolERK7QString
/opt/local/lib/libkio.dylib(single module) definition of __ZN13KProtocolInfo16isHelperProtocolERK7QString
ld: Undefined symbols:
_XCreateGC
_XFreeGC
_XScreenOfDisplay
_XAllocColor
_XAllocColorCells
_XCreateColormap
_XCreateImage
_XFlush
_XFree
_XFreeColors
_XGetVisualInfo
_XGetWindowAttributes
_XPutImage
_XQueryColors
_XScreenNumberOfScreen
_XSetBackground
_XSetForeground
/usr/bin/libtool: internal link edit command failed
Error creating ./karbon/libkarboncommon.la. Exit status 1.
koffice-1.5.0-0 make-build failed!

Error: /opt/local/bin/port: Status 1 encountered during processing."

Do I need to install something else, or what do I do to fix this? Any help would be greatly appreciated. Thanks!


After pulling my hair out on this one, I finally got it to build by changing one of the make files.

cd here:

/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwi nports.org_dpupdate_dports_kde_koffice/work/koffice-1.5.0-rc1/karbon

sudo vi Makefile.am

add a \
at the end of this line:

$(LIBFREETYPE_LIBS)

and add this at the end:

$(LIB_X11)

so the last 4 lines of this particular code block looks looks like this:

$(LIBFONTCONFIG_LIBS) \
$(LIBMAGICK_LIBS) \
$(LIBFREETYPE_LIBS) \
$(LIB_X11)

That fixed it for me. Running on a MacBook pro.. 10.4.6

Hope that helps someone out there.
(Last edited by super_collider; May 14, 2006 at 08:46 PM. )
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2