DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th May 2009
Dazhelpwiz Dazhelpwiz is offline
Port Guard
 
Join Date: May 2008
Location: Townsville, Australia
Posts: 34
Default AMP + pecl-mailparse.

Hi Guys and Girls,

Been a while since Ive posted here, been busy busy. Anyway Im in need of your expertise and advice.

Ive updated to OBSD4.5 and have apache/php5/mysql all working happily together, with GD+freetype/imap/mbstring extensions.

I need pecl-mailparse php5 extension to work as so that I can parse mime mail etc. However, when compiling from ports, all is going swimmingly until....

Code:
===>  Building for gtk+-1.2.10p7
make  all-recursive
Making all in po
Making all in gdk
/usr/local/bin/libtool  --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\"           -I..                    -DGTK_NO_CHECK_CASTS            -DUSE_XIM                                       -I/usr/local/include/glib-1.2 -D_REENTRANT -D_THREAD_SAFE                        -I/usr/X11R6/include  -I/usr/local/include  -O2 -pipe -Wall -c gdk.c
mkdir .libs
 cc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Gdk\" -I.. -DGTK_NO_CHECK_CASTS -DUSE_XIM -I/usr/local/include/glib-1.2 -D_REENTRANT -D_THREAD_SAFE -I/usr/X11R6/include -I/usr/local/include -O2 -pipe -Wall -c gdk.c  -fPIC -DPIC -o .libs/gdk.o
gdk.c:41:23: X11/Xatom.h: No such file or directory
gdk.c:42:22: X11/Xlib.h: No such file or directory
gdk.c:43:21: X11/Xos.h: No such file or directory
gdk.c:44:23: X11/Xutil.h: No such file or directory
gdk.c:45:28: X11/cursorfont.h: No such file or directory
In file included from gdk.c:47:
gdkprivate.h:31:22: X11/Xlib.h: No such file or directory
gdkprivate.h:32:23: X11/Xutil.h: No such file or directory
In file included from gdk.c:47:
gdkprivate.h:64: error: syntax error before "Window"
gdkprivate.h:87: error: syntax error before "XImage"
gdkprivate.h:105: error: syntax error before "GC"
gdkprivate.h:123: error: syntax error before "Colormap"
gdkprivate.h:138: error: syntax error before "Visual"
gdkprivate.h:147: error: syntax error before "Display"
gdkprivate.h:156: error: syntax error before "Cursor"
gdkprivate.h:161: error: syntax error before "Cursor"
gdkprivate.h:177: error: syntax error before "Window"
gdkprivate.h:183: error: syntax error before "Window"
gdkprivate.h:205: error: syntax error before "XIC"
gdkprivate.h:215: error: syntax error before "Display"
gdkprivate.h:222: error: syntax error before "Region"
gdkprivate.h:241: error: syntax error before "xcolormap"
gdkprivate.h:242: error: syntax error before '*' token
gdkprivate.h:247: error: syntax error before '*' token
gdkprivate.h:249: error: syntax error before "xid"
gdkprivate.h:250: error: syntax error before "xid"
gdkprivate.h:252: error: syntax error before "window"
gdkprivate.h:266: error: syntax error before "gdk_window_xid_at"
gdkprivate.h:266: error: syntax error before "base"
gdkprivate.h:266: warning: type defaults to `int' in declaration of `gdk_window_xid_at'
gdkprivate.h:266: warning: data definition has no type or storage class
gdkprivate.h:267: error: syntax error before "gdk_window_xid_at_coords"
gdkprivate.h:267: warning: type defaults to `int' in declaration of `gdk_window_xid_at_coords'
gdkprivate.h:267: warning: data definition has no type or storage class
gdkprivate.h:274: error: syntax error before '*' token
gdkprivate.h:274: warning: type defaults to `int' in declaration of `gdk_display'
gdkprivate.h:274: warning: data definition has no type or storage class
gdkprivate.h:276: error: syntax error before "gdk_root_window"
gdkprivate.h:276: warning: type defaults to `int' in declaration of `gdk_root_window'
gdkprivate.h:276: warning: data definition has no type or storage class
gdkprivate.h:277: error: syntax error before "gdk_leader_window"
gdkprivate.h:277: warning: type defaults to `int' in declaration of `gdk_leader_window'
gdkprivate.h:277: warning: data definition has no type or storage class
gdkprivate.h:279: error: syntax error before "gdk_wm_delete_window"
gdkprivate.h:279: warning: type defaults to `int' in declaration of `gdk_wm_delete_window'
gdkprivate.h:279: warning: data definition has no type or storage class
gdkprivate.h:280: error: syntax error before "gdk_wm_take_focus"
gdkprivate.h:280: warning: type defaults to `int' in declaration of `gdk_wm_take_focus'
gdkprivate.h:280: warning: data definition has no type or storage class
gdkprivate.h:281: error: syntax error before "gdk_wm_protocols"
gdkprivate.h:281: warning: type defaults to `int' in declaration of `gdk_wm_protocols'
gdkprivate.h:281: warning: data definition has no type or storage class
gdkprivate.h:282: error: syntax error before "gdk_wm_window_protocols"
gdkprivate.h:282: warning: type defaults to `int' in declaration of `gdk_wm_window_protocols'
gdkprivate.h:282: warning: data definition has no type or storage class
gdkprivate.h:283: error: syntax error before "gdk_selection_property"
gdkprivate.h:283: warning: type defaults to `int' in declaration of `gdk_selection_property'
gdkprivate.h:283: warning: data definition has no type or storage class
In file included from gdk.c:48:
gdkinput.h:31:35: X11/extensions/XInput.h: No such file or directory
In file included from gdk.c:48:
gdkinput.h:67: error: syntax error before '*' token
gdkinput.h:68: error: syntax error before '*' token
gdkinput.h:69: error: syntax error before "XEvent"
gdkinput.h:72: error: syntax error before "XEvent"
gdkinput.h:107: error: syntax error before "XDevice"
In file included from gdk.c:49:
gdkx.h:53: error: syntax error before "xvisualid"
gdkx.h:56: error: syntax error before "xcolormap"
gdkx.h:59: error: syntax error before "gdk_get_client_window"
gdkx.h:59: error: syntax error before '*' token
gdkx.h:60: warning: type defaults to `int' in declaration of `gdk_get_client_window'
gdkx.h:60: warning: data definition has no type or storage class
gdk.c:85: error: syntax error before '*' token
gdk.c:87: error: syntax error before '*' token
gdk.c: In function `gdk_init_check':
gdk.c:195: error: syntax error before "keyboard_state"
gdk.c:198: error: `XClassHint' undeclared (first use in this function)
gdk.c:198: error: (Each undeclared identifier is reported only once
gdk.c:198: error: for each function it appears in.)
gdk.c:198: error: `class_hint' undeclared (first use in this function)
gdk.c:223: warning: implicit declaration of function `XSetErrorHandler'
gdk.c:224: warning: implicit declaration of function `XSetIOErrorHandler'
gdk.c:412: warning: implicit declaration of function `XOpenDisplay'
gdk.c:412: warning: assignment makes pointer from integer without a cast
gdk.c:417: warning: implicit declaration of function `XSynchronize'
gdk.c:417: error: `True' undeclared (first use in this function)
gdk.c:419: warning: implicit declaration of function `DefaultScreen'
gdk.c:420: warning: implicit declaration of function `RootWindow'
gdk.c:422: warning: implicit declaration of function `XCreateSimpleWindow'
gdk.c:424: warning: implicit declaration of function `XAllocClassHint'
gdk.c:432: warning: implicit declaration of function `XmbSetWMProperties'
gdk.c:435: warning: implicit declaration of function `XFree'
gdk.c:441: warning: implicit declaration of function `XInternAtom'
gdk.c:441: error: `False' undeclared (first use in this function)
gdk.c:448: warning: implicit declaration of function `XGetKeyboardControl'
gdk.c:448: error: `keyboard_state' undeclared (first use in this function)
gdk.c: In function `gdk_pointer_grab':
gdk.c:665: error: syntax error before "xwindow"
gdk.c:676: error: `xwindow' undeclared (first use in this function)
gdk.c:676: error: structure has no member named `xwindow'
gdk.c:679: error: `xconfine_to' undeclared (first use in this function)
gdk.c:679: error: `None' undeclared (first use in this function)
gdk.c:681: error: structure has no member named `xwindow'
gdk.c:684: error: `xcursor' undeclared (first use in this function)
gdk.c:686: error: structure has no member named `xcursor'
gdk.c:703: error: `Success' undeclared (first use in this function)
gdk.c:708: warning: implicit declaration of function `XGrabPointer'
gdk.c:708: error: structure has no member named `xdisplay'
gdk.c:712: error: `GrabModeAsync' undeclared (first use in this function)
gdk.c:717: error: `AlreadyGrabbed' undeclared (first use in this function)
gdk.c:720: error: `GrabSuccess' undeclared (first use in this function)
gdk.c: In function `gdk_pointer_ungrab':
gdk.c:747: warning: implicit declaration of function `XUngrabPointer'
gdk.c: In function `gdk_keyboard_grab':
gdk.c:798: error: syntax error before "xwindow"
gdk.c:803: error: `xwindow' undeclared (first use in this function)
gdk.c:803: error: structure has no member named `xwindow'
gdk.c:806: warning: implicit declaration of function `XGrabKeyboard'
gdk.c:806: error: structure has no member named `xdisplay'
gdk.c:809: error: `GrabModeAsync' undeclared (first use in this function)
gdk.c:812: error: `AlreadyGrabbed' undeclared (first use in this function)
gdk.c: In function `gdk_keyboard_ungrab':
gdk.c:833: warning: implicit declaration of function `XUngrabKeyboard'
gdk.c: In function `gdk_screen_width':
gdk.c:856: warning: implicit declaration of function `DisplayWidth'
gdk.c: In function `gdk_screen_height':
gdk.c:881: warning: implicit declaration of function `DisplayHeight'
gdk.c: In function `gdk_screen_width_mm':
gdk.c:906: warning: implicit declaration of function `DisplayWidthMM'
gdk.c: In function `gdk_screen_height_mm':
gdk.c:931: warning: implicit declaration of function `DisplayHeightMM'
gdk.c: In function `gdk_set_sm_client_id':
gdk.c:963: warning: implicit declaration of function `XChangeProperty'
gdk.c:965: error: `XA_STRING' undeclared (first use in this function)
gdk.c:965: error: `PropModeReplace' undeclared (first use in this function)
gdk.c:969: warning: implicit declaration of function `XDeleteProperty'
gdk.c: In function `gdk_key_repeat_disable':
gdk.c:976: warning: implicit declaration of function `XAutoRepeatOff'
gdk.c: In function `gdk_key_repeat_restore':
gdk.c:983: warning: implicit declaration of function `XAutoRepeatOn'
gdk.c: In function `gdk_beep':
gdk.c:992: warning: implicit declaration of function `XBell'
gdk.c: In function `gdk_exit_func':
gdk.c:1036: warning: implicit declaration of function `XCloseDisplay'
gdk.c: At top level:
gdk.c:1064: error: syntax error before '*' token
gdk.c: In function `gdk_x_error':
gdk.c:1067: error: `error' undeclared (first use in this function)
gdk.c:1073: warning: implicit declaration of function `XGetErrorText'
gdk.c:1073: error: `display' undeclared (first use in this function)
gdk.c: At top level:
gdk.c:1119: error: syntax error before '*' token
gdk.c: In function `gdk_x_io_error':
gdk.c:1129: warning: implicit declaration of function `DisplayString'
gdk.c:1129: warning: pointer/integer type mismatch in conditional expression
gdk.c:1135: warning: pointer/integer type mismatch in conditional expression
gdk.c: In function `gdk_get_display':
gdk.c:1147: warning: implicit declaration of function `XDisplayName'
gdk.c: At top level:
gdk.c:1222: error: syntax error before "window"
gdk.c: In function `gdk_send_xevent':
gdk.c:1225: error: syntax error before "result"
gdk.c:1231: error: `result' undeclared (first use in this function)
gdk.c:1231: warning: implicit declaration of function `XSendEvent'
gdk.c:1231: error: `window' undeclared (first use in this function)
gdk.c:1231: error: `propagate' undeclared (first use in this function)
gdk.c:1231: error: `event_mask' undeclared (first use in this function)
gdk.c:1231: error: `event_send' undeclared (first use in this function)
gdk.c:1232: warning: implicit declaration of function `XSync'
gdk.c:1232: error: `False' undeclared (first use in this function)
gdk.c: In function `gdk_keyval_name':
gdk.c:1373: warning: implicit declaration of function `XKeysymToString'
gdk.c:1373: warning: return makes pointer from integer without a cast
gdk.c: In function `gdk_keyval_from_name':
gdk.c:1381: warning: implicit declaration of function `XStringToKeysym'
gdk.c: In function `gdk_keyval_to_upper':
gdk.c:1389: error: syntax error before "lower_val"
gdk.c:1392: warning: implicit declaration of function `XConvertCase'
gdk.c:1392: error: `lower_val' undeclared (first use in this function)
gdk.c:1392: error: `upper_val' undeclared (first use in this function)
gdk.c: In function `gdk_keyval_to_lower':
gdk.c:1403: error: syntax error before "lower_val"
gdk.c:1406: error: `lower_val' undeclared (first use in this function)
gdk.c:1406: error: `upper_val' undeclared (first use in this function)
gdk.c: In function `gdk_keyval_is_upper':
gdk.c:1417: error: syntax error before "lower_val"
gdk.c:1420: error: `lower_val' undeclared (first use in this function)
gdk.c:1420: error: `upper_val' undeclared (first use in this function)
gdk.c: In function `gdk_keyval_is_lower':
gdk.c:1431: error: syntax error before "lower_val"
gdk.c:1434: error: `lower_val' undeclared (first use in this function)
gdk.c:1434: error: `upper_val' undeclared (first use in this function)
gdk.c: At top level:
gdkprivate.h:282: warning: array `gdk_wm_window_protocols' assumed to have one element
*** Error code 1

Stop in /usr/ports/x11/gtk+/w-gtk+-1.2.10p7/gtk+-1.2.10/gdk (line 266 of Makefile).
*** Error code 1

Stop in /usr/ports/x11/gtk+/w-gtk+-1.2.10p7/gtk+-1.2.10 (line 301 of Makefile).
*** Error code 1

Stop in /usr/ports/x11/gtk+/w-gtk+-1.2.10p7/gtk+-1.2.10 (line 451 of Makefile).
*** Error code 1

Stop in /usr/ports/x11/gtk+ (line 2177 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/gtk+ (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/gtk+ (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/x11/gtk+ (line 1462 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/iodbc (line 1609 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/iodbc (line 2006 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/iodbc (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/iodbc (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/databases/iodbc (line 1462 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/www/php5/extensions (line 1609 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/pecl-mailparse (line 1609 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/pecl-mailparse (line 2006 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/pecl-mailparse (line 1432 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/pecl-mailparse (line 1972 of /usr/ports/infrastructure/mk/bsd.port.mk).
*** Error code 1

Stop in /usr/ports/mail/pecl-mailparse (line 1462 of /usr/ports/infrastructure/mk/bsd.port.mk).
#
Any advice, tips to help get this 1 extension to work in php on OpenBSD would be greatly appreciated.

I did notice this extension was only added to ports very recently. So in hope Im going to continue searching these here tubes while also hoping someone smarter then I responds lol.

Thanks all,
Daz.
Reply With Quote
  #2   (View Single Post)  
Old 18th May 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Looks like you're trying to build GTK on a system without X, that won't work.. for obvious reasons.
Reply With Quote
  #3   (View Single Post)  
Old 18th May 2009
Dazhelpwiz Dazhelpwiz is offline
Port Guard
 
Join Date: May 2008
Location: Townsville, Australia
Posts: 34
Default

hrmm, fair enough, dont want X to be honest. This is just a webserver. I have Xbase installed for some lib files but thats it.

guess I'll go install X and see how that goes.

Thank you for your response.
Reply With Quote
  #4   (View Single Post)  
Old 18th May 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Dazhelpwiz View Post
I need pecl-mailparse php5 extension to work...
According to CVS, pecl-mailparse was committed on 28 April:

http://www.openbsd.org/cgi-bin/cvswe...parse/Makefile

...which means that this application is only available to 4.5-current. If you only updated to 4.5-release, you are dealing with a mismatched ports tree as is described in Section 15.4.1:

http://openbsd.org/faq/faq15.html#NoFun

If you get this to work, great, but this is unsupported.
Reply With Quote
  #5   (View Single Post)  
Old 18th May 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

The building of ports without X libraries and headers installed is not supported by the OpenBSD Project.

If you don't want X installed on that computer, you must build your package(s) on a different machine of the same architecture, where xbase45.tgz is installed.
Reply With Quote
  #6   (View Single Post)  
Old 19th May 2009
Dazhelpwiz Dazhelpwiz is offline
Port Guard
 
Join Date: May 2008
Location: Townsville, Australia
Posts: 34
Default

thank you ocicat and jggimi. I thought I may have overlooked something.

I do have X installed now, althought not running at all. I did manage to successfully build the port, but of course, as you have both pointed out, it was a massive fail.

I'll keep toiling away at it for a bit, I may have some luck, or worst case, my boss will just have to deal with waiting for another 6mths to have what he wants.

Thank you both again. If I have any success I will advise.

I guess I could always try compiling everything from scratch as a last resort....dependancy nightmare? possibly.
Reply With Quote
  #7   (View Single Post)  
Old 19th May 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

If you need that php extension, and you need OpenBSD, the only supported method is to run -current. "Upgrading" to -current is less difficult than the port building you are attempting.
Reply With Quote
  #8   (View Single Post)  
Old 19th May 2009
Dazhelpwiz Dazhelpwiz is offline
Port Guard
 
Join Date: May 2008
Location: Townsville, Australia
Posts: 34
Default

its ok, I got it all working under 4.5-release =) using the ports, with php5.2.9 + extensions etc. Thanks for the help guys.

Last edited by Dazhelpwiz; 19th May 2009 at 05:43 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting 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

Forum Jump


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick