Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-25-2002, 01:44 PM   #1
Mi And
Prospect
 
Join Date: Jan 2002
Posts: 39
Fink & Sources

Hi,

I'm trying to install from source using Fink and I'm running into problems left and right.

(Yes, I read the FAQ & yes, I installed the developer tools to have the right compiler.)

Package names for example:

mc (lib slang 1.4.4 won't download, because the new one is 1.4.5.; got me the old version somewhere else, but the compiling process stops with some missing include)

mad (output follows:

make
make all-recursive
Making all in intl
cc -c -DLOCALEDIR=\"/sw/share/locale\" -DGNULOCALEDIR=\"/sw/share/locale\" -DLOCALE_ALIAS_PATH=\"/sw/share/locale:.\" -DHAVE_CONFIG_H -I.. -I. -I../intl -I../lib -I/sw/include -Wall -g -O2 intl-compat.c
libgettext.h:33: header file 'sys/types.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[2]: *** [intl-compat.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### make failed, exit code 2
Failed: compiling mad-0.14.0b-1 failed )

Thanks for your kind support.

-Mi
Mi And is offline   Reply With Quote
Old 02-25-2002, 07:41 PM   #2
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
For your slang problem, Download: slang-1.4.4.tar.gz from here:

http://www.sunfreeware.com/solaris_2.5_list.html

Download: slang-1.4.4.tar.gz

Then, cd to wherever you have the file.

Then, cp slang-1.4.4.tar.gz /sw/src

Finally, run again "fink install mc"

Fink will recognize the file from /sw/src

Please, more information:

Fink version, XFree86 version

Cheers...
sao is offline   Reply With Quote
Old 02-25-2002, 10:02 PM   #3
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
There are problems with the package mc.

Please, if you have problems installing, post the errors here.

What version of gettext you have installed?

You may try:

"fink rebuild gettext"

and then, again:

"fink install mad"

Cheers...

Last edited by sao; 02-25-2002 at 11:38 PM.
sao is offline   Reply With Quote
Old 02-26-2002, 06:12 AM   #4
Mi And
Prospect
 
Join Date: Jan 2002
Posts: 39
Quote:
Originally posted by sao
[B]There are problems with the package mc.

Please, if you have problems installing, post the errors here.

What version of gettext you have installed?

None. I hadn't installed it before. What does it do?

Quote:
You may try:

"fink rebuild gettext"

I did that. Here's the output starting with make:

make
make all-recursive
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in intl
/bin/sh ../libtool --mode=compile cc -c -DLOCALEDIR=\"/sw/share/locale\" -DLOCALE_ALIAS_PATH=\"/sw/share/locale\" -DLIBDIR=\"/sw/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl -no-cpp-precomp -I/sw/include -g -O2 intl-compat.c
mkdir .libs
cc -c -DLOCALEDIR=\"/sw/share/locale\" -DLOCALE_ALIAS_PATH=\"/sw/share/locale\" -DLIBDIR=\"/sw/lib\" -DHAVE_CONFIG_H -I.. -I. -I../intl -no-cpp-precomp -I/sw/include -g -O2 intl-compat.c -fno-common -DPIC -o .libs/intl-compat.lo
In file included from intl-compat.c:24:
libgnuintl.h:22: locale.h: No such file or directory
In file included from intl-compat.c:25:
gettextP.h:23: stddef.h: No such file or directory
make[2]: *** [intl-compat.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2
### make failed, exit code 2
Failed: compiling gettext-0.10.40-2 failed

I use Fink Distribution version 0.3.2a, package manager 0.9.7. My XFree is 4.2.0. I use XDarwin to start it up.

Thanks!!

-Mi
Mi And is offline   Reply With Quote
Old 02-26-2002, 06:24 AM   #5
Mi And
Prospect
 
Join Date: Jan 2002
Posts: 39
Quote:
Originally posted by sao
For your slang problem, Download: slang-1.4.4.tar.gz from here:

http://www.sunfreeware.com/solaris_2.5_list.html

Download: slang-1.4.4.tar.gz

That's exactly where I got it before! :-)

Quote:

Then, cd to wherever you have the file.

Then, cp slang-1.4.4.tar.gz /sw/src

Finally, run again "fink install mc"

Yep. That's what I did before. I did it again now and here's the output, beginning with make:

cd src; make all
mkdir /sw/src/slang-1.4.4-4/slang-1.4.4/src/objs
cp sysconf.h config.h
cd /sw/src/slang-1.4.4-4/slang-1.4.4/src/objs; cc -c -I/sw/include -fno-strength-reduce -Dunix -DSLANG /sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slinclud.h:7: header file 'stdio.h' not found
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slinclud.h:8: header file 'string.h' not found
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slang.h:89: header file 'stdio.h' not found
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slang.h:92: header file 'stddef.h' not found
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slang.h:475: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slang.h:476: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/slang.h:968: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:94: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:96: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:135: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:148: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:160: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:180: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:194: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:204: undefined type, found `FILE'
/sw/src/slang-1.4.4-4/slang-1.4.4/src/sltermin.c:236: undefined type, found `FILE'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make[1]: *** [/sw/src/slang-1.4.4-4/slang-1.4.4/src/objs/sltermin.o] Error 1
make: *** [all] Error 2
### failed, exit code 2
Failed: compiling slang-1.4.4-4 failed

Quote:

Please, more information:

Fink version, XFree86 version

See within my other reply.

Did you get it to run on your system? I hardly ever got any compile from source done using Fink - I always took the binaries via atp-get.

Thanks (again),

-Mi.
Mi And is offline   Reply With Quote
Old 02-26-2002, 09:21 AM   #6
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Ok, let's start again.

It looks like you're missing header files.

MacOS X version ?

Did you installed the "December" Developer Tools ?

Cheers...
sao is offline   Reply With Quote
Old 02-26-2002, 02:47 PM   #7
Mi And
Prospect
 
Join Date: Jan 2002
Posts: 39
I reinstalled DeveloperToolsDec2001, hadn't done every single part, I guess.

I got OS 10.1.3.

Now I can compile mc and mad. Works fine. (With mc though I can't use the f10 key on my iBook - do you know any workaround?)

One thing that happened after reinstalling DevTools:

When trying to "mount -smbfs" (Samba) I get an:

smbfs: can't set locale ''

Any idea about this? Mounting works fine, it seems, though.
Mi And is offline   Reply With Quote
Old 02-26-2002, 08:12 PM   #8
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
That's why I asked. Fink needs the December Developer Tools properly installed to function.

mc is used as the gnome file manager, but it doesn't actually seem to be needed by most of the gnome packages, I had similar problems when building mc, so I installed most packages without it.

I don't know of a workaround for the F10 key(quit), let me know if you find one. Mine works, but I have trouble with other function keys.

I also installed "mad" without any problem.

About "smbfs: can't set locale '':

I can't be of much help here. But...

A call to setlocale will fail if the requested locale's support files cannot be found or accessed.

The simplest way to specify what locale to use is to set the LANG environment variable.

1-Check your ~/.cshrc or ~/.tcshrc file.

or track down any missing locale files and install restore them or patch them up with links.

or track down where LANG is defined and change it.

(Remember that X has its own locale information.)

Also, can you run "which make" and let me know the result.

Cheers...

Last edited by sao; 02-26-2002 at 08:15 PM.
sao is offline   Reply With Quote
Old 02-26-2002, 08:38 PM   #9
Mi And
Prospect
 
Join Date: Jan 2002
Posts: 39
Thanks again for the DecDevTool-Help!

Quote:
About "smbfs: can't set locale '':

I can't be of much help here. But...

A call to setlocale will fail if the requested locale's support files cannot be found or accessed.

The simplest way to specify what locale to use is to set the LANG environment variable.

LANG is set

Quote:
1-Check your ~/.cshrc or ~/.tcshrc file.

I got an ~/.cshrc. It only contains "source /sw/bin/init.csh"

Quote:
or track down any missing locale files and install restore them or patch them up with links.

or track down where LANG is defined and change it.

(Remember that X has its own locale information.)

I don't really know how to do that :-) The strange thing about all of this is: Since I installed the DecDevTools, I have that behaviour within Samba. Do you think it could help to just reinstall that? I didn't do it using Fink, but by way of the binary from xamba.sourceforge.net.

Any idea what could happen if that err message stays on?

Quote:
Also, can you run "which make" and let me know the result.

/usr/bin/make

-Mi

PS: Please excuse some of my sillyness - I'm a newbie to compiling & all that.
Mi And is offline   Reply With Quote
Old 02-26-2002, 10:26 PM   #10
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
as i understood it, those 'locale' messages are warnings and should be ignored.
mervTormel is offline   Reply With Quote
Old 02-27-2002, 12:08 AM   #11
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Sorry, can't help you more, as I don't know much about samba.

But, as MervTormel says, if they are just warnings, maybe can be ignored.

Cheers...
sao is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 -5. The time now is 02:03 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.