Skip to contentSkip to conversation

hamlib not compiling well

DISCUSSION [email protected] 7 participants 14 messages Jul 7, 2004 – Aug 4, 2004

lore
Share & tools
lore
#0 lore raw

Hey gang;

I am trying to write some Mandrake spec files for tlf and a few other packages. In the process I am not able to use rpm -ba to compile the spec files for hamlib.

I am running into a problem that I have not seen before. There are files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

I am sure I am just brain farting on why this is happening or much more importantly what it is I need to do to get a decent compile; but does anyone have any helpful ideas ?

TIA

Vy 73;

Bob
w9ya

#1 lore raw
Quoted 10 lines · On Wednesday 07 July 2004 07:40, [email protected] wrote:

Hey gang;

I am trying to write some Mandrake spec files for tlf and a few other packages. In the process I am not able to use rpm -ba to compile the spec files for hamlib.

I am running into a problem that I have not seen before. There are files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

After installing libs one needs to use 'ldconfig' to configure dynamic linker run time bindings, as show in the manual page of ldconfig.
I presume this is your problem.

Quoted 11 lines

I am sure I am just brain farting on why this is happening or much more importantly what it is I need to do to get a decent compile; but does anyone have any helpful ideas ?

TIA

Vy 73;

Bob
w9ya

Signature · 7 lines
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/
#2 lore raw
Quoted 7 lines · On Wednesday 07 July 2004 07:40, [email protected] wrote:
Quoted 6 lines

Hey gang;

I am trying to write some Mandrake spec files for tlf and a few other packages. In the process I am not able to use rpm -ba to compile the spec files for hamlib.

Quoted 8 lines
Quoted 4 lines

I am running into a problem that I have not seen before. There are files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

After installing libs one needs to use 'ldconfig' to configure dynamic linker run time bindings, as show in the manual page of ldconfig. I presume this is your problem.

Um, perhaps I was not clear about this. If that is my fault, I am sorry.

This is prior to installing the libs.

Bob
w9ya

Quoted 26 lines
Quoted 6 lines

I am sure I am just brain farting on why this is happening or much more importantly what it is I need to do to get a decent compile; but does anyone have any helpful ideas ?

Quoted 6 lines

TIA

Vy 73;

Bob
w9ya

--
If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

Just installed RedHat 9

Hello,

I just installed RedHat 9, and am trying to recompile the kernel to include support for amateur radio. I get a message telling me that the kernel is to big to be able to make a boot disk. Can anyone tell me what sort of things I can safely leave out when I configure the kernel to make it smaller. It's probably obvious but I'm a newbie at linux.

John / KC4TXC

#4 lore raw

Re: Just installed RedHat 9

Quoted 7 lines · John Montanez

Hello,

I just installed RedHat 9, and am trying to recompile the kernel to include support for amateur radio. I get a message telling me that the kernel is to big to be able to make a boot disk. Can anyone tell me what sort of things I can safely leave out when I configure the kernel to make it smaller. It's probably obvious but I'm a newbie at linux.

Does not redhat 9 already have ax25 support then, i know redhat 8 had it as default so why would version 9 not have it.???

To answer you question about what and what not to compile would need a very long answer.
Take a quick look at my web page, its old but should give you some hints.

Quoted 2 lines

John / KC4TXC

Signature · 7 lines
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/
#5 lore raw

Re: Just installed RedHat 9

First I would like to thank everyone who has taken the trouble to respond. Thank you all.

Quoted 1 line

Does not redhat 9 already have ax25 support then, i know redhat 8 had it

as

Quoted 1 line

default so why would version 9 not have it.???

I don't think so because when I tried to install the FBB bulletin board program I got a message telling me ax25 support was needed. Thanks I will check out your website. I still can't seem to get this kernal thing right. I compiled it but can't get it to load. Looks like I'll be working on this for a while till I learn more about linux.

John / KC4TXC

----- Original Message -----
From: "pa3gcu" <[email protected]>
To: "John Montanez" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, July 08, 2004 4:15 PM
Subject: Re: Just installed RedHat 9

Quoted 4 lines · John Montanez
Quoted 3 lines

Hello,

I just installed RedHat 9, and am trying to recompile the kernel to

include

Quoted 1 line
Quoted 1 line

support for amateur radio. I get a message telling me that the kernel

is

Quoted 5 lines
Quoted 3 lines

to big to be able to make a boot disk. Can anyone tell me what sort of things I can safely leave out when I configure the kernel to make it smaller. It's probably obvious but I'm a newbie at linux.

Does not redhat 9 already have ax25 support then, i know redhat 8 had it

as

Quoted 3 lines

default so why would version 9 not have it.???

To answer you question about what and what not to compile would need a

very

Quoted 3 lines

long answer.
Take a quick look at my web page, its old but should give you some hints.

#6 lore raw

Re: Just installed RedHat 9

RH9 does have ax25 support, but only for the soundcard modem. If you intend to use KISS, you will need to rebuild the kernel. Be warned that one of the ax25.h files fails to include another necessary header and can cause configure to fail if it attempts to test for the presence of ax25. A lot of if's here, but this can and does happen. Case in point, ax25 support in Xastir will fail on RH9 because of this omission. On my system, they are found at:

/usr/include/linux/ax25.h
/usr/include/netax25/ax25.h <-- this one has the required includes

If you have not done so already, make sure you get all the current ax25 tarballs off of Sourceforge and install them. Even though you may not think you need them:

libax25
ax25-tools
ax25-apps

The apps can be useful to troubleshoot your setup. For example, I often use the listen and call binaries to check my setup.

If you need to rebuild the kernel, be sure you copy the appropriate config file from the configs directory to the root of the source tree (be sure that it is named '.config' on the copy). The configs directory is found in the root of the source tree. Do *NOT* do a 'make mrproper' as this will completely wipe out the '.config' file. After doing this, the only changes that you will need to make to the config is to set the correct processor (i686 covers a lot of territory...) and select the serial port kiss driver to be loaded as a module. Doing this will preserve all the configuration settings and features that were with the distribution. If you don't, a lot of stuff in X will break.

If you are using the latest rpms from Red Hat (they still have them on their site), be advised that after the RH manuals were completed, RH changed how the upgrade patches to the kernel were applied (for building from the source). After downloading the src rpm, you will need to install/build by doing the following:

rpm -Uvh kernel*.src.rpm
cd /usr/src/redhat/SPECS
rpmbuild -bp kernel-2.4.spec <-- this will take awhile
cd /usr/src/redhat/BUILD/kernel*/linux*
cp configs/kernel-2.4.20-i686.config ./.config <-- or whatever
vi Makefile <-- change EXTRAVERSION to something unique for you
make menuconfig <-- selections as discussed above make dep clean bzImage modules modules_install install

If you want grub to use your new kernel as the default, you will need to edit grub.conf in /boot/grub. Suggest you make this change *after* you have tested the new kernel.

Non-kernel rpms should be installed using the '-Fvh' option.

Hope this helps.

73, John
n4xi

Quoted 45 lines · John Montanez

First I would like to thank everyone who has taken the trouble to respond. Thank you all.

Quoted 1 line

Does not redhat 9 already have ax25 support then, i know redhat 8 had it

as

Quoted 1 line

default so why would version 9 not have it.???

I don't think so because when I tried to install the FBB bulletin board program I got a message telling me ax25 support was needed. Thanks I will check out your website. I still can't seem to get this kernal thing right. I compiled it but can't get it to load. Looks like I'll be working on this for a while till I learn more about linux.

John / KC4TXC

----- Original Message -----
From: "pa3gcu" <[email protected]>
To: "John Montanez" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, July 08, 2004 4:15 PM
Subject: Re: Just installed RedHat 9

Quoted 4 lines · John Montanez
Quoted 3 lines

Hello,

I just installed RedHat 9, and am trying to recompile the kernel to

include

Quoted 1 line
Quoted 1 line

support for amateur radio. I get a message telling me that the kernel

is

Quoted 5 lines
Quoted 3 lines

to big to be able to make a boot disk. Can anyone tell me what sort of things I can safely leave out when I configure the kernel to make it smaller. It's probably obvious but I'm a newbie at linux.

Does not redhat 9 already have ax25 support then, i know redhat 8 had it

as

Quoted 3 lines

default so why would version 9 not have it.???

To answer you question about what and what not to compile would need a

very

Quoted 3 lines

long answer.
Take a quick look at my web page, its old but should give you some hints.

Quoted 4 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

John Bennett
Evansville, IN
Amateur Radio Web: http://home.insightbb.com/~n4xi
Where am I? http://www.findu.com/cgi-bin/find.cgi?N4XI
Bike Racing Web: http://home.insightbb.com/~xibike

#7 lore raw

Re: Just installed RedHat 9

In reply to John Montanez

Again I would like to say thanks to everyone who has taken the trouble to respond to my request for help. Thank you all.

I finally managed to build a custom kernel. I resorted to reading the instructions in the documentation. Just like they say, "If all else fails read the instructions". I followed the instructions step by step, added the amateur radio features that I wanted in the config file using xconfig, followed the remaining steps in the instructions and everything else was automatic.

If I had done this to begin with, even a dummy like me would have had absolutely no problem customizing the RedHat 9 kernel.

John / KC4TXC

#8 lore raw

Re: Just installed RedHat 9

In reply to John Montanez
Quoted 6 lines · John Montanez

Hello,

I just installed RedHat 9, and am trying to recompile the kernel to include support for amateur radio. I get a message telling me that the kernel is to big to be able to make a boot disk. Can anyone tell me what sort of things I can safely leave out when I configure the kernel to make it smaller. It's

Anything you don't need. :-) Don't include drivers for hardware you don't have. But I suspect it may be hard to fit on a floppy.

I suspect that you need to do 'make bzdisk', in case you are trying to use 'make zdisk'.

#9 lore raw

Re: Just installed RedHat 9

In reply to John Montanez
Quoted 4 lines

I just installed RedHat 9, and am trying to recompile the kernel to include support for amateur radio. I get a message telling me that the kernel is to big to be able to make a boot disk.

Unless you are planning to boot off a floppy, I suggest you ignore that message. Just build the kernel and use it.

Most modern distros come with a kernel that is already AX25-enabled. Mdk and SuSE do. Are you *sure* you need to re-compile?

Wilbert, ZL2BSJ

#10 lore raw

Re: Just installed RedHat 9

I had to do the same things with RH9. I think ax25 is there by default, but mkiss support isn't.

After you've done your "make config" and "make dep" use "make bzImage" and you may end up with a kernel small enough to fit on a floppy if you haven't turned on too many features during the config process. Look for a file called bzImage in /usr/src/linux/arch/i386/boot. If you're gutsy, you can just edit the .config file manually and turn on mkiss support there rather than going through the "make config" process. It does the same thing and you don't have to answer the config questions for 15 minutes.

73,
Jeff
N0WJP

----- Original Message -----
From: "Wilbert Knol" <[email protected]>
To: <[email protected]>
Sent: Tuesday, August 03, 2004 9:53 PM
Subject: Re: Just installed RedHat 9

Quoted 16 lines
Quoted 4 lines

I just installed RedHat 9, and am trying to recompile the kernel to include support for amateur radio. I get a message telling me that the kernel is to big to be able to make a boot disk.

Unless you are planning to boot off a floppy, I suggest you ignore that message. Just build the kernel and use it.

Most modern distros come with a kernel that is already AX25-enabled. Mdk and SuSE do. Are you *sure* you need to re-compile?

Wilbert, ZL2BSJ
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
In reply to [email protected]
Quoted 5 lines · On Wednesday 07 July 2004 17:59, [email protected] wrote:
Quoted 5 lines
Quoted 4 lines

I am running into a problem that I have not seen before. There are files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

Quoted 7 lines
Quoted 3 lines

After installing libs one needs to use 'ldconfig' to configure dynamic linker  run time bindings, as show in the manual page of ldconfig. I presume this is your problem.

Um, perhaps I was not clear about this. If that is my fault, I am sorry.

This is prior to installing the libs.

Whatever, but i have just retrived hamlib-1.1.4.tar.bz2 decompressed it and simply did;

./configure
make
make install

Things look ok to me. .so files do get created in subdirs, make install installs everything in /usr/local/lib and seeminly links things as well.

Quoted 2 lines

Bob
w9ya

Signature · 12 lines
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#12 lore raw
Quoted 18 lines · On Wednesday 07 July 2004 17:59, [email protected] wrote:
Quoted 5 lines
Quoted 1 line
Quoted 1 line

I am running into a problem that I have not seen before. There are

files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

After installing libs one needs to use 'ldconfig' to configure

dynamic linker run time bindings, as show in the manual page of ldconfig. I presume this is your problem.

Um, perhaps I was not clear about this. If that is my fault, I am sorry.

This is prior to installing the libs.

Whatever, but i have just retrived hamlib-1.1.4.tar.bz2 decompressed it and simply did;

Quoted 6 lines

./configure
make
make install

Things look ok to me. .so files do get created in subdirs, make install installs everything in /usr/local/lib and seeminly links things as well.

Hey Richard;

And well they might seem o.k. for you.

I was making rpms for Mandrake, which entails a different approach.

1 - /usr/local is off limits.
2 - File permissions and ownership issues may be present.
3 - Extraneous files may have to noticed and removed.
4 - ALL files must be accounted for.
5 - Various other distribution specific issues in many other areas often need to be attended to. (And these can be many.)

But I definitely can say this; even with your approach, if you had tried to do a simple compile on a Mandrake 10.0 Official machine you would have run into the same problems I had.

BTW I reported the fix yesterday or the day before for this, so the problem is solved; it appears to be a versioning issue with libtool/libtldl.

Finally IMHO it is a really bad idea to just compile, even into /usr/local, on a system (like mandrake, debian, red hat, suse, and many other "distros") that uses a file tracking package management system. You run the risk of system instability or worse.

Thanks for the concerns es vy 73;

Bob
w9ya

Quoted 17 lines
Quoted 3 lines

Bob
w9ya

--
If the Linux community is a bunch of thieves because they try to imitate windows programs, then the Windows community is built on organized crime.

Regards Richard
[email protected]
http://people.zeelandnet.nl/pa3gcu/

-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#13 lore raw
In reply to [email protected]

Hey again gang;

I added this to the top of the spec file to get libtool to NOT libtoolize:

%define __libtoolize /bin/true

Apparently there is a libtool version mismatch somewhere ? (Just a guess.) Mandrake uses this:

libtool-1.4.3-10mdk

Anyways, I am not sure these files actually work (grin)....but at least they exist correctly and in the right places.

I tested this fix with the spec file that came with hamlib 1.2.0.src.rpm btw, although this problem existed also with 1.1.4 as well.

Vy 73;

Bob
w9ya

Quoted 21 lines

Hey gang;

I am trying to write some Mandrake spec files for tlf and a few other packages. In the process I am not able to use rpm -ba to compile the spec files for hamlib.

I am running into a problem that I have not seen before. There are files being created but they are without the ".so"in the file name, I tried adding "--enable-shared" to the configure, but this did not work, nor have I ever required this.

I am sure I am just brain farting on why this is happening or much more importantly what it is I need to do to get a decent compile; but does anyone have any helpful ideas ?

TIA

Vy 73;

Bob
w9ya